CVE-2019-9942
CVE-2019-9942 is a low-severity vulnerability in Symfony Twig with a CVSS 3.x base score of 3.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low.
Key facts
- Severity: Low (CVSS 3.x base score 3.7)
- CVSS v2: 4.3
- EPSS exploit prediction: 1% (71st percentile)
- Actively exploited: Not listed in CISA KEV
- Affected product: Symfony Twig
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2019-9942?
- 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.
- How severe is CVE-2019-9942?
- CVE-2019-9942 has a CVSS 3.x base score of 3.7, rated low severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability none.
- Is CVE-2019-9942 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (71st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2019-9942?
- CVE-2019-9942 primarily affects Symfony Twig. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2019-9942?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2019-9942 published?
- CVE-2019-9942 was published on 2019-03-23 and last updated on 2026-06-17.
References
- https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077
- https://seclists.org/bugtraq/2019/Mar/60
- https://symfony.com/blog/twig-sandbox-information-disclosure
- https://www.debian.org/security/2019/dsa-4419
Affected products (2)
- cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
More vulnerabilities in Symfony Twig
- CVE-2026-46634 — Critical (CVSS 9.8): Twig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() compiles an inner template under a…
- CVE-2026-46633 — Critical (CVSS 9.8): Twig is a template language for PHP. Prior to 3.26.0, Compiler::string() does not escape single quotes when a template…
- CVE-2018-13818 — Critical (CVSS 9.8): Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. NOTE: the vendor…
- CVE-2026-48807 — Critical (CVSS 9.1): Twig is a template language for PHP. Prior to 3.27.0, the sandbox __toString() checks do not fully cover Traversable…
- CVE-2026-48806 — Critical (CVSS 9.1): Twig is a template language for PHP. Prior to 3.27.0, ArrayExpression does not guard dynamic mapping keys that are…
- CVE-2026-48805 — Critical (CVSS 9.1): Twig is a template language for PHP. Prior to 3.27.0, deprecated internal wrappers in src/Resources/core.php do not…