CVE-2019-9942
Twig Sandbox Information Disclosure
Reported by mitre · Published March 23, 2019
twig/twig is fixed in 2.7.0 and 1.38.0 (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| twig/twig | Packagist | 2.7.0, 1.38.0 |
| twig | symfony | 2.7.0, 1.38.0 |
| twig | Ubuntu:Pro:16.04:LTS | 1.23.1-1ubuntu4+esm1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| twig | twig | 0, 2.0.0 |
| n/a | n/a | * |
Timeline
- Mar 23, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (3 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Sep 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-9942
vulnetix vdb fixes CVE-2019-9942
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-9942/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- DSA-4419 vendor-advisoryx_refsource_DEBIAN
- 20190331 [SECURITY] [DSA 4419-1] twig security update mailing-listx_refsource_BUGTRAQ
- https://nvd.nist.gov/vuln/detail/CVE-2019-9942 advisory