CVE-2019-9942Symfony Twig
Low 3.7 No auth needed
Follow: this CVE · Symfony · Symfony Twig We alert you by email or Slack (account required).
- Priority
- 37
- CVSS 3.1
- 3.7
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Mar 23, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Twig.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | twig/twig |
< 1.38.0 |
1.38.0 |
composer require "twig/twig:^1.38.0" |
| Packagist | twig/twig |
≥ 2.0.0 < 2.7.0 |
2.7.0 |
composer require "twig/twig:^2.7.0" |
Per OSV / GitHub Advisories (GHSA-vxrc-68xx-x48g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| symfony | twig | < 1.38.0 |
| symfony | twig | ≥ 2.0.0 < 2.7.0 |
| debian | debian_linux | 9.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- symfony.com Patch Vendor Advisory
- www.debian.org Third Party Advisory