Live threats

All CVEs / Symfony

CVE-2019-9942Symfony Twig

Low 3.7 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Twig.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
symfonytwig< 1.38.0
symfonytwig≥ 2.0.0 < 2.7.0
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.