USN-7355-1

Type: Security
Severity: Medium
Published: 2025-03-18
Ubuntu 20.04 LTS (Focal Fossa)
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 24.04 LTS (Noble Numbat)

Nakul Choudhary and Robert Xiao discovered that RestrictedPython did not properly sanitize certain inputs. An attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2023-37271) Abhishek Govindarasu, Ankush Menat and Ward Theunisse discovered that RestrictedPython did not correctly handle certain format strings. An attacker could possibly use this issue to leak sensitive information. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2023-41039) It was discovered that RestrictedPython did not correctly restrict access to certain fields. An attacker could possibly use this issue to leak sensitive information. (CVE-2024-47532) It was discovered that RestrictedPython contained a type confusion vulnerability. An attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2025-22153) Update Instructions: Run `sudo pro fix USN-7355-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: python3-restrictedpython - 4.0~b3-2ubuntu0.1~esm1 Available with Ubuntu Pro: https://ubuntu.com/pro

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T00:47:41.838Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T00:47:41.838Z UTC. Last updated 2025-11-26T08:45:11.197Z UTC.

Upstream Advisory

Affected Packages

  • python3-restrictedpython 4.0~b3-2ubuntu0.1~esm1-4.0~b3-2ubuntu0.1~esm1

  • python3-restrictedpython 4.0~b3-3ubuntu0.1~esm1-4.0~b3-3ubuntu0.1~esm1

  • python3-restrictedpython 6.2-1ubuntu0.24.04.1~esm1-6.2-1ubuntu0.24.04.1~esm1

Interested in being alerted when there are new versions of python3-restrictedpython and the other packages? Set up an alert.
USN-7355-1: RestrictedPython vulnerabilities | Package Alert