SecurityContext

CVE-2026-46639: Twig - Template Injection

  • Cve: CVE-2026-46639
  • Name: Twig - Template Injection
  • Description: 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.
  • Impact: Attackers with write access to sandboxed templates can read object properties or invoke getters, potentially exposing sensitive data.
  • Remediation: Update to version 3.26.0 or later.
  • Vulnerability type: template_injection
  • Vulnerability impact: information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker needs write access to sandboxed Twig templates
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00394
  • Epss percentile: 0.34382
  • Assignee: [email protected]
  • Published at: 2026-07-14T22:16:56Z
  • Age in days: 133
  • Modified at: 2026-10-24T22:10:00Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-46639
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-693Protection Mechanism Failure

References

UrlSourceTags
https://github.com/twigphp/Twig/security/advisories/GHSA-mm6w-gr99-p3jjnvdVendor Advisory
https://github.com/twigphp/Twig/releases/tag/v3.26.0nvdRelease Notes

Products

ProductAffectedPlatform boundSourcesUrl
symfony:twig>= 3.24.0, < 3.26.0nonvd/v1/products/symfony/twig

Projects

RepositoryLink kindsIndexedUrl
twigphp/Twigpackage, releases, security_advisoryyes/v1/repositories/twigphp/Twig

Index

  • Repositories: 3
  • Repositories high signal: 1
  • Packages: 1

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts