CVE-2019-9942
mediumpriority · track · 15EPSS 0.014 · 72 %ileEURUUSEPSS · scored 2026-10-28
A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it is possible to call the __toString() method on an object even if not allowed by the security policy in place.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.4–4.3
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (10)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-vxrc-68xx-x48gTwig Sandbox Information Disclosure2022-03-26ghsa · osvUS
A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it is possible to call the `__toString()` method on an object even if not allowed by the security policy in place.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- http://www.debian.org/security/2019/dsa-4419cnnvd
- https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2019-9942cnnvd
- https://packetstormsecurity.com/files/152317/Debian-Security-Advisory-4419-1.htmlcnnvd
- https://seclists.org/bugtraq/2019/Mar/60cnnvd
- https://symfony.com/blog/twig-sandbox-information-disclosurecnnvd
- https://www.auscert.org.au/bulletins/78118cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.1537cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan