# restrictedpython (PyPI) vulnerabilities

6 known vulnerabilities (6 high), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Weekly downloads: 3M
- Dependents: 874
- Registry: https://pypi.org/project/restrictedpython/

## Advisories (6)

### [CVE-2026-76825](https://cve.now/CVE-2026-76825): RestrictedPython: Sandbox escape via string.Formatter field resolution

- Severity: High 8.4
- Published: Sep 16, 2026
- Affected: fixed in 8.4.

### [CVE-2026-55830](https://cve.now/CVE-2026-55830): RestrictedPython guard hooks can be shadowed via positional-only arguments

- Severity: High 8.3
- Published: Jul 8, 2026
- Affected: fixed in 8.3.

### [CVE-2025-22153](https://cve.now/CVE-2025-22153): try/except clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter

- Severity: High 7.9
- Published: Jan 23, 2025
- Affected: from 6.0, fixed in 8.0.

### [CVE-2024-47532](https://cve.now/CVE-2024-47532): RestrictedPython information leakage via \`AttributeError.obj\` and the \`string\` module

- Severity: High 8.7
- Published: Sep 30, 2024
- Affected: fixed in 7.3.

### [CVE-2023-41039](https://cve.now/CVE-2023-41039): Sandbox escape via various forms of "format" in RestrictedPython

- Severity: High 8.3
- Published: Aug 30, 2023
- Affected: fixed in 5.4; from 6.0, fixed in 6.2; from 6.0, fixed in 6.2; fixed in 5.4.

### [CVE-2023-37271](https://cve.now/CVE-2023-37271): RestrictedPython vulnerable to arbitrary code execution via stack frame sandbox escape

- Severity: High 8.4
- Published: Jul 11, 2023
- Affected: fixed in 5.3; from 6.0a1.dev0, fixed in 6.1.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/pypi/restrictedpython
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
