CVE-2019-9942
LOW 3.7CVSS 3.1Twig Sandbox Information Disclosure
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.
- Published
- 23 Mar 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-200
- Also known as
- GHSA-vxrc-68xx-x48g
- Sources
- NVDJSONOSV GHSA-vxrc-68xx-x48gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | symfony | twigcpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
< 1.38.0 | 1.38.0 |
| NVD | symfony | twigcpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.7.0 | 2.7.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | Packagist | twig/twig | < 1.38.0 | 1.38.0 |
| OSV | Packagist | twig/twig | >= 2.0.0, < 2.7.0 | 2.7.0 |
References
- https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077 · Patch, Third Party Advisory, WEB
- https://seclists.org/bugtraq/2019/Mar/60 · Mailing List, Third Party Advisory, WEB
- https://symfony.com/blog/twig-sandbox-information-disclosure · Patch, Vendor Advisory, WEB
- https://www.debian.org/security/2019/dsa-4419 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-9942 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2019-9942.yaml · WEB
- https://github.com/twigphp/Twig · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 23 Mar 2019)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 26 Mar 2022)