CVE-2019-9942
PHP packages · CVE-2019-9942
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.405% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:27.005Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:00.377Z | OSV |
| affected | verified | 2026-11-19T12:55:21.965Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:21.965Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://symfony.com/blog/twig-sandbox-information-disclosure",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2019/dsa-4419",
"name": "DSA-4419",
"tags": [
"vendor-advisory",
"x_refsource_DEBIAN",
"x_transferred"
]
},
{
"url": "https://seclists.org/bugtraq/2019/Mar/60",
"name": "20190331 [SECURITY] [DSA 4419-1] twig security update",
"tags": [
"mailing-list",
"x_refsource_BUGTRAQ",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-04T22:10:08.258Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-vxrc-68xx-x48g",
"aliases": [
"CVE-2019-9942"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.38.0"
}
]
}
],
"package": {
"name": "twig/twig",
"purl": "pkg:composer/twig/twig",
"ecosystem": "Packagist"
},
"versions": [
"1.3.0",
"1.4.0",
"1.5.0",
"1.5.1",
"1.6.0",
"1.6.1",
"1.6.2",
"1.6.3",
"1.6.4",
"1.6.5",
"v1.10.0",
"v1.10.1",
"v1.10.2",
"v1.10.3",
"v1.11.0",
"v1.11.1",
"v1.12.0",
"v1.12.0-RC1",
"v1.12.1",
"v1.12.2",
"v1.12.3",
"v1.13.0",
"v1.13.1",
"v1.13.2",
"v1.14.0",
"v1.14.1",
"v1.14.2",
"v1.15.0",
"v1.15.1",
"v1.16.0",
"v1.16.1",
"v1.16.2",
"v1.16.3",
"v1.17.0",
"v1.18.0",
"v1.18.1",
"v1.18.2",
"v1.19.0",
"v1.20.0",
"v1.21.0",
"v1.21.1",
"v1.21.2",
"v1.22.0",
"v1.22.1",
"v1.22.2",
"v1.22.3",
"v1.23.0",
"v1.23.1",
"v1.23.2",
"v1.23.3",
"v1.24.0",
"v1.24.1",
"v1.24.2",
"v1.25.0",
"v1.26.0",
"v1.26.1",
"v1.27.0",
"v1.28.0",
"v1.28.1",
"v1.28.2",
"v1.29.0",
"v1.30.0",
"v1.31.0",
"v1.32.0",
"v1.33.0",
"v1.33.1",
"v1.33.2",
"v1.34.0",
"v1.34.1",
"v1.34.2",
"v1.34.3",
"v1.34.4",
"v1.35.0",
"v1.35.1",
"v1.35.2",
"v1.35.3",
"v1.35.4",
"v1.36.0",
"v1.37.0",
"v1.37.1",
"v1.7.0",
"v1.8.0",
"v1.8.1",
"v1.8.2",
"v1.8.3",
"v1.9.0",
"v1.9.1",
"v1.9.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-vxrc-68xx-x48g/GHSA-vxrc-68xx-x48g.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.7.0"
}
]
}
],
"package": {
"name": "twig/twig",
"purl": "pkg:composer/twig/twig",
"ecosystem": "Packagist"
},
"versions": [
"v2.0.0",
"v2.1.0",
"v2.2.0",
"v2.3.0",
"v2.3.1",
"v2.3.2",
"v2.4.0",
"v2.4.1",
"v2.4.2",
"v2.4.3",
"v2.4.4",
"v2.4.5",
"v2.4.6",
"v2.4.7",
"v2.4.8",
"v2.5.0",
"v2.6.0",
"v2.6.1",
"v2.6.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-vxrc-68xx-x48g/GHSA-vxrc-68xx-x48g.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-9942",
"type": "ADVISORY"
},
{
"url": "https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2019-9942.yaml",
"type": "WEB"
},
{
"url": "https://github.com/twigphp/Twig",
"type": "PACKAGE"
},
{
"url": "https://seclists.org/bugtraq/2019/Mar/60",
"type": "WEB"
},
{
"url": "https://symfony.com/blog/twig-sandbox-information-disclosure",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2019/dsa-4419",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-200"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2019-03-23T15:29:00Z",
"github_reviewed_at": "2022-03-26T00:25:25Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Packagist / package | twig/twig | Not a distribution channel | 1.38.0 | Official record |
| ecosystem-boundary | Packagist / package | twig/twig | Not a distribution channel | 2.7.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:00.377ZArchived source JSON
Source publication: 2022-03-26T00:25:25.000Z
Source modification: 2024-02-16T08:12:09.652ZDocument fingerprint
9d87e41124382950f450b202fcbb05735441198a5cd145f7a5b8d54e448b5017 - CVE ProgramConsulted: 2026-11-19T12:55:21.965ZArchived source JSON
Source publication: 2019-03-23T14:31:53.000Z
Source modification: 2024-08-04T22:10:08.258ZDocument fingerprint
393fb7583450ab7728e8655704b631c070911c0f32f8bd1c5e39f225f664a922 - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:27.005ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
858db2c83df2d905ad48c2bac0706aac41b0e6986caf78680945042c2b623f2c
Official status history
- UNKNOWN → PUBLISHED · · evidence