{"api_version":"1","generated_at":"2026-04-23T09:37:48+00:00","cve":"CVE-2019-9942","urls":{"html":"https://cve.report/CVE-2019-9942","api":"https://cve.report/api/cve/CVE-2019-9942.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-9942","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-9942"},"summary":{"title":"CVE-2019-9942","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-03-23 15:29:00","updated_at":"2022-04-05 20:10:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://www.debian.org/security/2019/dsa-4419","name":"DSA-4419","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-4419-1 twig","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://symfony.com/blog/twig-sandbox-information-disclosure","name":"https://symfony.com/blog/twig-sandbox-information-disclosure","refsource":"MISC","tags":["Vendor Advisory"],"title":"Twig: Sandbox Information Disclosure (Symfony Blog)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077","name":"https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"fixed security issue in the sandbox · twigphp/Twig@eac5422 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://seclists.org/bugtraq/2019/Mar/60","name":"20190331 [SECURITY] [DSA 4419-1] twig security update","refsource":"BUGTRAQ","tags":[],"title":"Bugtraq: [SECURITY] [DSA 4419-1] twig security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-9942","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-9942","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"9942","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"9942","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"symfony","cpe5":"twig","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"9942","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"symfony","cpe5":"twig","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2019-9942","qid":"199472","title":"Ubuntu Security Notification for Twig Vulnerabilities (USN-5947-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-9942","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://symfony.com/blog/twig-sandbox-information-disclosure","refsource":"MISC","name":"https://symfony.com/blog/twig-sandbox-information-disclosure"},{"url":"https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077","refsource":"MISC","name":"https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077"},{"refsource":"DEBIAN","name":"DSA-4419","url":"https://www.debian.org/security/2019/dsa-4419"},{"refsource":"BUGTRAQ","name":"20190331 [SECURITY] [DSA 4419-1] twig security update","url":"https://seclists.org/bugtraq/2019/Mar/60"}]}},"nvd":{"publishedDate":"2019-03-23 15:29:00","lastModifiedDate":"2022-04-05 20:10:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW"},"exploitabilityScore":2.2,"impactScore":1.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*","versionEndExcluding":"1.38.0","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.7.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"9942","Ordinal":"148155","Title":"CVE-2019-9942","CVE":"CVE-2019-9942","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"9942","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"9942","Ordinal":"2","NoteData":"2019-03-23","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"9942","Ordinal":"3","NoteData":"2019-04-01","Type":"Other","Title":"Modified"}]}}}