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% (69th 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% (69th 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-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-24425 — High (CVSS 8.8): Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface…
- CVE-2022-23614 — High (CVSS 8.8): Twig is an open source template language for PHP. When in a sandbox mode, the `arrow` parameter of the `sort` filter…
- CVE-2024-45411 — High (CVSS 8.5): Twig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows…
- CVE-2022-39261 — High (CVSS 7.5): Twig is a template language for PHP. Versions 1.x prior to 1.44.7, 2.x prior to 2.15.3, and 3.x prior to 3.4.3…
- CVE-2001-1537 — High (CVSS 7.5): The default "basic" security setting' in config.php for TWIG webmail 2.7.4 and earlier stores cleartext usernames and…