CVE-2024-51755
published low CVSS 3.1 · 2.2Unguarded calls to __isset() and to array-accesses when the sandbox is enabled in Twig
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| twigphp | — | Twig< 3.11.2 · >= 3.12.0, < 3.14.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 2.2 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| twigphp | Twig | < 3.11.2 (affected)>= 3.12.0, < 3.14.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-668 CWE-668: Exposure of Resource to Wrong Sphere
References
2Provider assertions
2GitHub_M · cna
Unguarded calls to __isset() and to array-accesses when the sandbox is enabled in Twig
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5204a83ba333ad52790304c21d56ee79ac2bfe8a73b6046ae3bd94ea6d5916bb
- Ingested
- 23 Sep 2026, 08:30:23 UTC
- Source record
- Official CVE record