CVE-2019-9942

NameCVE-2019-9942
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-4419-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
twig (PTS)buster2.6.2-2fixed
buster (security)2.6.2-2+deb10u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
twigsourceexperimental2.7.1-1
twigsourcestretch1.24.0-2+deb9u1DSA-4419-1
twigsource(unstable)2.6.2-2

Notes

[jessie] - twig <no-dsa> (low priority, sandbox disabled by default)
https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077
https://symfony.com/blog/twig-sandbox-information-disclosure

Search for package or bug name: Reporting problems