cbcvebase.
CVE-2023-41039
published 2023-08-30

CVE-2023-41039: RestrictedPython is a restricted execution environment for Python to run untrusted code. Python's "format" functionality allows someone controlling the format…

PriorityP343high7.7CVSS 3.1
AVNACLPRLUINSCCHINAN
EPSS
0.64%
45.9th percentile
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

12 ranges
VendorProductVersion rangeFixed in
debianrestrictedpython< restrictedpython 6.2-1 (forky)restrictedpython 6.2-1 (forky)
zoperestrictedpython< 5.45.4
zoperestrictedpython>= 6.0 < 6.26.2
zopefoundationrestrictedpython< 5.45.4
zopefoundationrestrictedpython
zopefoundationrestrictedpython>= 0 < 6.2-16.2-1
zopefoundationrestrictedpython>= 0 < 6.2-16.2-1
zopefoundationrestrictedpython>= 0 < 5.45.4
zopefoundationrestrictedpython>= 0 < 4.0~b3-2ubuntu0.1~esm14.0~b3-2ubuntu0.1~esm1
zopefoundationrestrictedpython>= 0 < 4.0~b3-3ubuntu0.1~esm14.0~b3-3ubuntu0.1~esm1
zopefoundationrestrictedpython>= 0 < 6.2-1ubuntu0.24.04.1~esm16.2-1ubuntu0.24.04.1~esm1
zopefoundationrestrictedpython>= 6.0 < 6.26.2

CVSS provenance

nvdv3.17.7HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
osv9.9CRITICAL
vendor_ubuntu8.4HIGH
vendor_debian8.3HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.