Skip to content
OpenAdvisories
Low · 3.7 CVE-2019-9942 EUVD-2022-1558GHSA-vxrc-68xx-x48g

Twig Sandbox Information Disclosure

Published Mar 23, 2019 · Updated Aug 4, 2024 · Assigned by mitre

Description

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 in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 9 twig 1.24.0-2+deb9u1 DSA-4419-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS php-twig 3.3.8-2ubuntu4+esm1 USN-5947-1
Ubuntu Pro 20.04 LTS php-twig 2.12.5-1ubuntu0.1~esm1 USN-5947-1
Ubuntu Pro 18.04 LTS twig 2.4.6-1ubuntu0.1~esm1 USN-5947-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS twig 1.23.1-1ubuntu4+esm1 USN-5947-1

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist twig/twig < 1.38.0 1.38.0 GHSA-vxrc-68xx-x48g
Packagist twig/twig >= 2.0.0, < 2.7.0 2.7.0 GHSA-vxrc-68xx-x48g

Advisories 2

References