Advisory

DRUPAL-CORE-2022-016

Also known as: BIT-drupal-2022-39261, CVE-2022-39261, GHSA-52m2-vc4m-jj33

Summary

The record has no summary.

Details

Drupal uses the Twig third-party library for content templating and sanitization. Twig has released a security update that affects Drupal. Twig has rated the vulnerability as high severity.

Drupal core's code extending Twig has also been updated to mitigate a related vulnerability.

Multiple vulnerabilities are possible if an untrusted user has access to write Twig code, including potential unauthorized read access to private files, the contents of other files on the server, or database credentials.

The vulnerability is mitigated by the fact that an exploit is only possible in Drupal core with a restricted access administrative permission. Additional exploit paths for the same vulnerability may exist with contributed or custom code that allows users to write Twig templates.

Severity

Not rated by the source.

Dates

Published
2022-09-28 16:24 UTC
Modified
2026-09-19 18:18 UTC

Affected packages and fixes

drupal/core

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 9.3.22 (ecosystem)
  • introduced 9.4.0, fixed 9.4.7 (ecosystem)

Fixed versions

9.3.22, 9.4.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Drupal Advisory Database · MIT

Sources & licences