CVE-2019-9942
LOW3.7EPSS 0.42%twig - security update
Published: 3/26/2022Modified: 3/9/2026
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.
Affected packages (2)
- Debian/twigfrom 0, < 1.24.0-2+deb9u1
- Packagist/twig/twigfrom 0, < 1.38.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2019-9942
- PATCHhttps://github.com/twigphp/Twig
- WEBhttps://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2019-9942.yaml
- WEBhttps://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077
- WEBhttps://seclists.org/bugtraq/2019/Mar/60
- WEBhttps://symfony.com/blog/twig-sandbox-information-disclosure
- WEBhttps://www.debian.org/security/2019/dsa-4419