CVE-2024-51755: twigphp twig Exposure of Resource to Wrong Sphere
Vulnerability summary
CVE-2024-51755 is a low (CVSS 2.2) Exposure of Resource to Wrong Sphere vulnerability in twigphp twig. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 35.4% of scored vulnerabilities.
Timeline
- 06-11-2024PublishedVulnerability first disclosed.
- 07-11-2024Last modifiedVulnerability information updated.
Description
Twig is a template language for PHP. In a sandbox, an attacker can access attributes of Array-like objects as they were not checked by the security policy. They are now checked via the property policy and the `__isset()` method is now called after the security check. This is a BC break. This issue has been patched in versions 3.11.2 and 3.14.1. All users are advised to upgrade. There are no known workarounds for this issue.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated2.2LowCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated2.2LowCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
- NVDNIST2.2LowCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
0.00 pp
From 0.43% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu2 products
- php-twigAll versions (No fix recorded)
- twigAll versions (No fix recorded)
Debian1 product
- php-twigAll versions (No fix recorded) | < 3.14.2-1
Twigphp1 product
- twig< 3.11.2 | ≥ 3.12.0, < 3.14.1
3 vendors · 4 products