pysec-2023-159
Vulnerability from pysec
RestrictedPython is a restricted execution environment for Python to run untrusted code. Python's "format" functionality allows someone controlling the format string to "read" all objects accessible through recursive attribute lookup and subscription from objects he can access. This can lead to critical information disclosure. With RestrictedPython
, the format functionality is available via the format
and format_map
methods of str
(and unicode
) (accessed either via the class or its instances) and via string.Formatter
. All known versions of RestrictedPython
are vulnerable. This issue has been addressed in commit 4134aedcff1
which has been included in the 5.4 and 6.2 releases. Users are advised to upgrade. There are no known workarounds for this vulnerability.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "restrictedpython", "purl": "pkg:pypi/restrictedpython" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "4134aedcff17c977da7717693ed89ce56d54c120" } ], "repo": "https://github.com/zopefoundation/RestrictedPython", "type": "GIT" }, { "events": [ { "introduced": "6.0" }, { "fixed": "6.2" }, { "introduced": "0" }, { "fixed": "5.4" } ], "type": "ECOSYSTEM" } ], "versions": [ "3.4.2", "3.4.3", "3.5.0", "3.5.1", "3.5.2", "3.6.0", "3.6.0a1", "4.0", "4.0a1", "4.0a2", "4.0a3", "4.0b1", "4.0b2", "4.0b3", "4.0b4", "4.0b5", "4.0b6", "4.0b7", "4.0b8", "5.0", "5.1", "5.2", "5.2a1.dev0", "5.3", "5.3a1.dev0", "6.0", "6.1" ] } ], "aliases": [ "CVE-2023-41039", "GHSA-xjw2-6jm9-rf67" ], "details": "RestrictedPython is a restricted execution environment for Python to run untrusted code. Python\u0027s \"format\" functionality allows someone controlling the format string to \"read\" all objects accessible through recursive attribute lookup and subscription from objects he can access. This can lead to critical information disclosure. With `RestrictedPython`, the format functionality is available via the `format` and `format_map` methods of `str` (and `unicode`) (accessed either via the class or its instances) and via `string.Formatter`. All known versions of `RestrictedPython` are vulnerable. This issue has been addressed in commit `4134aedcff1` which has been included in the 5.4 and 6.2 releases. Users are advised to upgrade. There are no known workarounds for this vulnerability.\n\n", "id": "PYSEC-2023-159", "modified": "2023-09-05T16:32:17.658660+00:00", "published": "2023-08-30T18:15:00+00:00", "references": [ { "type": "ADVISORY", "url": "https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-xjw2-6jm9-rf67" }, { "type": "FIX", "url": "https://github.com/zopefoundation/RestrictedPython/commit/4134aedcff17c977da7717693ed89ce56d54c120" } ], "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N", "type": "CVSS_V3" } ] }
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.