Lucene search
K

CVE-2026-46640 Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation

🗓️ 14 Jul 2026 21:22:57Reported by GitHub_MType 
cvelist
 cvelist
🔗 www.cve.org👁 8 Views

Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.() and import-alias dynamic attribute syntax can concatenate an attacker-controlled string into a MacroReferenceExpression name without identifier validation, causing raw PHP to ...

Related
Affected
Refs
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2026-46640
14 Jul 202621:22
attackerkb
Chainguard
CVE-2026-46640 vulnerabilities
23 May 202601:17
cgr
Circl
CVE-2026-46640
20 May 202610:32
circl
CVE
CVE-2026-46640
14 Jul 202621:22
cve
Debian
[SECURITY] [DSA 6311-1] php-twig security update
29 May 202618:34
debian
Debian CVE
CVE-2026-46640
20 May 202608:00
debiancve
Tenable Nessus
Debian dsa-6311 : php-twig - security update
30 May 202600:00
nessus
Tenable Nessus
Linux Distros Unpatched Vulnerability : CVE-2026-46640
21 May 202600:00
nessus
EUVD
EUVD-2026-44569
14 Jul 202621:22
euvd
Friends Of PHP
Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation
20 May 202608:00
friendsofphp
Rows per page
[
  {
    "vendor": "twigphp",
    "product": "Twig",
    "versions": [
      {
        "version": ">= 3.15.0, < 3.26.0",
        "status": "affected"
      }
    ]
  }
]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Jul 2026 21:22Current
CVSS 48.7
EPSS0.00056
8