CVE-2019-9942: Twig - Information Disclosure
- Cve: CVE-2019-9942
- Name: Twig - Information Disclosure
- 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.
- Impact: Attackers can retrieve sensitive information from objects, leading to information disclosure vulnerabilities.
- Remediation: Update to version 1.38.0 or 2.7.0 or later.
- Vulnerability type: template_injection
- Vulnerability impact: information_disclosure
- Requirement type: user_interaction
- Requirements: Attacker needs to control object data
- Labels source: projectdiscovery
- Severity: low
- Cvss score: 3.7
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- Epss score: 0.01405
- Epss percentile: 0.73276
- Assignee: [email protected]
- Published at: 2019-03-23T15:29:00Z
- Age in days: 2803
- Modified at: 2026-06-17T02:44:53Z
- Patch available: yes
- References total: 4
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-9942
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-noinfo | — |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://symfony.com/blog/twig-sandbox-information-disclosure | Patch, Vendor Advisory |
| https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077 | Patch, Third Party Advisory |
| https://seclists.org/bugtraq/2019/Mar/60 | Mailing List, Third Party Advisory |
| https://www.debian.org/security/2019/dsa-4419 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| symfony:twig | >= 2.0.0, < 2.7.0; < 1.38.0 | no | nvd | /v1/products/symfony/twig |
| debian:debian_linux | = 9.0 | no | nvd | /v1/products/debian/debian_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| twigphp/Twig | commit, fix, package | yes | /v1/repositories/twigphp/Twig |
Index
- Repositories: 84
- Repositories high signal: 57
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports