Unguarded calls to __isset() and to array-accesses when the sandbox is enabled in Twig (twigphp Twig)
En bref
- Source
- NVD
- EPSS
- EPSS 0.43 % · centile 37 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Statut NVD
- Deferred
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.
Faiblesses (CWE)
- CWE-668 — Exposition d'une ressource à la mauvaise sphère
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | LOW 2.2 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N | GitHub_M |
| CVSS 3.1 | LOW 2.2 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N | NVD · security-advisories@github.com (Secondary) |
Avis
- GHSA-jjxq-ff2g-95vh — Twig has unguarded calls to `__isset()` and to array-accesses when the sandbox is enabled
Références européennes
- ENISA EUVD · EUVD-2024-3273
- GCVE · GCVE-0-2024-51755
Avis du CERT-FR
- CERTFR-2025-AVI-0836 — Multiples vulnérabilités dans les produits Tenable · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions |
|---|---|
| twigphp · Twig | affected < 3.11.2 ; affected >= 3.12.0, < 3.14.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |