# CVE-2024-47532: python3-restrictedpython: RestrictedPython is a restricted execution environment for Python to rununtrusted code

CVE-2024-47532 is fixed in 2 products on 1 platform, first by python3-restrictedpython 4.0~b3-2ubuntu0.1~esm1, released September 30, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-47532
- Priority: Routine
- CVSS: 6.5 (Medium)
- EPSS: 0.0072
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 30, 2024

## Description

RestrictedPython is a restricted execution environment for Python to rununtrusted code. A user can gain access to protected (and potentiallysensible) information indirectly via AttributeError.obj and the stringmodule. The problem will be fixed in version 7.3. As a workaround, If theapplication does not require access to the module string, it can remove itfrom RestrictedPython.Utilities.utility_builtins or otherwise do not makeit available in the restricted execution environment.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python3-restrictedpython Ubuntu 20.04 LTS (focal) | 4.0~b3-2ubuntu0.1~esm1 | [python3-restrictedpython 4.0~b3-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-restrictedpython-4.0-b3-2ubuntu0.1-esm1.md) | Sep 30, 2024 |
| Linux | python3-restrictedpython Ubuntu 22.04.1 LTS (jammy) | 4.0~b3-3ubuntu0.1~esm1 | [python3-restrictedpython 4.0~b3-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-restrictedpython-4.0-b3-3ubuntu0.1-esm1.md) | Sep 30, 2024 |
| Linux | python3-restrictedpython Ubuntu 24.04.5 LTS (noble) | 6.2-1ubuntu0.24.04.1~esm1 | [python3-restrictedpython 6.2-1ubuntu0.24.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-restrictedpython-6.2-1ubuntu0.24.04.1-esm1.md) | Jan 23, 2025 |
| Linux | python3-restrictedpython Ubuntu 24.10 (oracular) | 6.2-1ubuntu0.24.10.1 | [python3-restrictedpython 6.2-1ubuntu0.24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-python3-restrictedpython-6.2-1ubuntu0.24.10.1.md) | Jan 16, 2026 |
| Linux | restrictedpython Debian 13.5 (trixie) | 8.0-1 | [DEBIAN-CVE-2024-47532](https://patchblox.com/security/data/fix/linux/debian-cve-2024-47532.md) | Sep 30, 2024 |
| Linux | restrictedpython Debian 14 | 8.0-1 | [DEBIAN-CVE-2024-47532](https://patchblox.com/security/data/fix/linux/debian-cve-2024-47532.md) | Sep 30, 2024 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
