Security mailing lists by PureSourceCode

CVE-2026-46639

HIGH 7.1CVSS 4.0

Twig: Sandbox property and method bypass via object-destructuring assignment

Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. This issue is fixed in version 3.26.0.

Published
14 Jul 2026
Last modified
24 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-693
Also known as
GHSA-mm6w-gr99-p3jj
Sources
NVDJSONOSV GHSA-mm6w-gr99-p3jjJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 7.1 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD symfony twig
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
>= 3.24.0, < 3.26.0 3.26.0
OSV Packagist twig/twig >= 3.24.0, < 3.26.0 3.26.0

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 14 Jul 2026)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 21 May 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.