CVE-2019-9942
published 2019-03-23CVE-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()…
PriorityP412low3.7CVSS 3.1
AVNACHPRNUINSUCLINAN
EPSS
1.41%
69.2th percentile
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.
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| symfony | twig | < 1.38.0 | 1.38.0 |
| symfony | twig | >= 2.0.0 < 2.7.0 | 2.7.0 |
| twig | twig | >= 0 < 1.38.0 | 1.38.0 |
| twig | twig | >= 0 < 1.23.1-1ubuntu4+esm1 | 1.23.1-1ubuntu4+esm1 |
| twig | twig | >= 0 < 2.4.6-1ubuntu0.1~esm1 | 2.4.6-1ubuntu0.1~esm1 |
| twig | twig | >= 2.0.0 < 2.7.0 | 2.7.0 |
CVSS provenance
nvdv3.13.7LOWCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:P/I:N/A:N
osv3.7LOW
vendor_ubuntu3.7LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
php-twig, twig vulnerabilities
osv·2023-03-13·CVSS 3.7
CVE-2019-9942 [LOW] php-twig, twig vulnerabilities
php-twig, twig vulnerabilities
Fabien Potencier discovered that Twig was not properly enforcing sandbox
policies when dealing with objects automatically cast to strings by PHP.
An attacker could possibly use this issue to expose sensitive information.
This issue was only fixed in Ubuntu 16.04 ESM and Ubuntu 18.04 ESM.
(CVE-2019-9942)
Marlon Starkloff discovered that Twig was not properly enforcing closure
constraints in some of its array filtering functions. An attacker could
possibly use this issue to execute arbitrary code. This issue was only
fixed in Ubuntu 20.04 ESM. (CVE-2022-23614)
Dariusz Tytko discovered that Twig was not properly verifying input data
utilized when defining pathnames used to access files in a system. An
attacker could possibly use this issue to access unauthori
GHSA
Twig Sandbox Information Disclosure
ghsa·2022-03-26
CVE-2019-9942 [LOW] CWE-200 Twig Sandbox Information Disclosure
Twig Sandbox Information Disclosure
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.
OSV
Twig Sandbox Information Disclosure
osv·2022-03-26
CVE-2019-9942 [LOW] Twig Sandbox Information Disclosure
Twig Sandbox Information Disclosure
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.
OSV
CVE-2019-9942: A sandbox information disclosure exists in Twig before 1
osv·2019-03-23·CVSS 3.7
CVE-2019-9942 [LOW] CVE-2019-9942: A sandbox information disclosure exists in Twig before 1
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.
Ubuntu
Twig vulnerabilities
vendor_ubuntu·2023-03-13·CVSS 3.7
CVE-2019-9942 [LOW] Twig vulnerabilities
Title: Twig vulnerabilities
Summary: Several security issues were fixed in Twig.
Fabien Potencier discovered that Twig was not properly enforcing sandbox
policies when dealing with objects automatically cast to strings by PHP.
An attacker could possibly use this issue to expose sensitive information.
This issue was only fixed in Ubuntu 16.04 ESM and Ubuntu 18.04 ESM.
(CVE-2019-9942)
Marlon Starkloff discovered that Twig was not properly enforcing closure
constraints in some of its array filtering functions. An attacker could
possibly use this issue to execute arbitrary code. This issue was only
fixed in Ubuntu 20.04 ESM. (CVE-2022-23614)
Dariusz Tytko discovered that Twig was not properly verifying input data
utilized when defining pathnames used to access files in a system. An
attacke
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-9942 php-twig: sandbox information disclosure [epel-all]
bugzilla·2019-03-26·CVSS 3.7
CVE-2019-9942 [LOW] CVE-2019-9942 php-twig: sandbox information disclosure [epel-all]
CVE-2019-9942 php-twig: sandbox information disclosure [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora EPE
Bugzilla
CVE-2019-9942 php-twig: sandbox information disclosure [fedora-all]
bugzilla·2019-03-26·CVSS 3.7
CVE-2019-9942 [LOW] CVE-2019-9942 php-twig: sandbox information disclosure [fedora-all]
CVE-2019-9942 php-twig: sandbox information disclosure [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora
Bugzilla
CVE-2019-9942 php-twig: sandbox information disclosure
bugzilla·2019-03-26·CVSS 3.7
CVE-2019-9942 [LOW] CVE-2019-9942 php-twig: sandbox information disclosure
CVE-2019-9942 php-twig: sandbox information disclosure
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.
Reference:
https://symfony.com/blog/twig-sandbox-information-disclosure
Upstream commit:
https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077
Discussion:
Created php-twig tracking bugs for this issue:
Affects: epel-all [bug 1692779]
---
Created php-twig tracking bugs for this issue:
Affects: fedora-all [bug 1692780]
---
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product.
https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077https://seclists.org/bugtraq/2019/Mar/60https://symfony.com/blog/twig-sandbox-information-disclosurehttps://www.debian.org/security/2019/dsa-4419https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077https://seclists.org/bugtraq/2019/Mar/60https://symfony.com/blog/twig-sandbox-information-disclosurehttps://www.debian.org/security/2019/dsa-4419
2019-03-23
Published