Uncaught Exception Affecting restrictedpython package, versions [,7.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (21st 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 Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-RESTRICTEDPYTHON-8132100
  • published30 Sept 2024
  • disclosed30 Sept 2024
  • creditQuasar0147, dronex7070

Introduced: 30 Sep 2024

CVE-2024-47532  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade RestrictedPython to version 7.3 or higher.

Overview

RestrictedPython is a RestrictedPython is a defined subset of the Python language which allows to provide a program input into a trusted environment.

Affected versions of this package are vulnerable to Uncaught Exception in _AttributeDelegator, which allows attackers to expose string data associated with an AttributeError.obj.

Workaround

This vulnerability can be avoided by removing the string module from RestrictedPython.Utilities.utility_builtins.

References

CVSS Scores

version 4.0
version 3.1