GHSA-jjxq-ff2g-95vh
Vulnerability from github
Published
2024-11-06 19:52
Modified
2024-11-12 19:43
Severity ?
Summary
Twig has unguarded calls to `__isset()` and to array-accesses when the sandbox is enabled
Details
Description
In a sandbox, and 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.
Resolution
The sandbox mode now ensures access to array-like's properties is allowed.
The patch for this issue is available here for the 3.11.x branch, and here for the 3.x branch.
Credits
We would like to thank Jamie Schouten for reporting the issue and Nicolas Grekas for providing the fix.
{ "affected": [ { "package": { "ecosystem": "Packagist", "name": "twig/twig" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "3.11.2" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Packagist", "name": "twig/twig" }, "ranges": [ { "events": [ { "introduced": "3.12" }, { "fixed": "3.14.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-51755" ], "database_specific": { "cwe_ids": [ "CWE-668" ], "github_reviewed": true, "github_reviewed_at": "2024-11-06T19:52:55Z", "nvd_published_at": "2024-11-06T20:15:06Z", "severity": "LOW" }, "details": "### Description\n\nIn a sandbox, and attacker can access attributes of Array-like objects as they were not checked by the security policy.\nThey are now checked via the property policy and the `__isset()` method is now called after the security check.\n**This is a BC break.**\n\n### Resolution\n\nThe sandbox mode now ensures access to array-like\u0027s properties is allowed.\n\nThe patch for this issue is available [here](https://github.com/twigphp/Twig/commit/ec39a9dccc5fb4eaaba55e5d79a6f84a8dd8b69d) for the 3.11.x branch, and [here](https://github.com/twigphp/Twig/commit/b957e5a44cc0075d04ccff52f8fa9d8e6db3e3a0) for the 3.x branch.\n\n### Credits\n\nWe would like to thank Jamie Schouten for reporting the issue and Nicolas Grekas for providing the fix.\n", "id": "GHSA-jjxq-ff2g-95vh", "modified": "2024-11-12T19:43:00Z", "published": "2024-11-06T19:52:55Z", "references": [ { "type": "WEB", "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-jjxq-ff2g-95vh" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-51755" }, { "type": "WEB", "url": "https://github.com/twigphp/Twig/commit/831c148e786178e5f2fde9db67266be3bf241c21" }, { "type": "WEB", "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-51755.yaml" }, { "type": "PACKAGE", "url": "https://github.com/twigphp/Twig" }, { "type": "WEB", "url": "https://symfony.com/blog/unguarded-calls-to-__isset-and-to-array-accesses-when-the-sandbox-is-enabled" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N", "type": "CVSS_V3" }, { "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N", "type": "CVSS_V4" } ], "summary": "Twig has unguarded calls to `__isset()` and to array-accesses when the sandbox is enabled" }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.