Arbitrary Code Injection Affecting restrictedpython package, versions <6.2-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.07% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN13-RESTRICTEDPYTHON-5876514
  • published31 Aug 2023
  • disclosed30 Aug 2023

Introduced: 30 Aug 2023

CVE-2023-41039  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade Debian:13 restrictedpython to version 6.2-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream restrictedpython package and not the restrictedpython package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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.

CVSS Scores

version 3.1