Overview
- Description
- 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.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 7.7
- Impact score
- 4
- Exploitability score
- 3.1
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Severity
- HIGH
Weaknesses
- security-advisories@github.com
- CWE-74
Social media
- Hype score
- Not currently trending
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "674AE8A0-A0AB-428D-9C94-A7A9CBC74B42", "versionEndExcluding": "5.4" }, { "criteria": "cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "012A84D4-106D-4E27-8076-C46D700A779E", "versionEndExcluding": "6.2", "versionStartIncluding": "6.0" } ], "operator": "OR" } ] } ]