VDB

CVE-2019-9942

CVE-2019-9942 PUBLISHED CVSS 3.700000047683716 LOW

Twig Sandbox Information Disclosure

Reported by mitre · Published March 23, 2019

twig/twig is fixed in 2.7.0 and 1.38.0 (Packagist)

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 versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
twig/twigPackagist2.7.0, 1.38.0
twigsymfony2.7.0, 1.38.0
twigUbuntu:Pro:16.04:LTS1.23.1-1ubuntu4+esm1

Risk scores

CVSS 3.0
3.700000047683716
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected products

VendorProductVersions
n/an/an/a
twigtwig0, 2.0.0
n/an/a*

Timeline

  • Mar 23, 2019 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (3 in total, the first dated here)
  • Jun 17, 2026 CVE Updated
  • Sep 7, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2019-9942
vulnetix vdb fixes CVE-2019-9942

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-9942/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›