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, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-4419-1
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
twig (PTS)jessie (security), jessie1.16.2-1+deb8u1vulnerable
stretch (security), stretch1.24.0-2+deb9u1fixed
buster2.6.2-2fixed

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

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

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