Skip to main content
VulnerabilityPublished Updated

CVE-2025-22153: RestrictedPython is a tool that helps to define a subset of the Python language which allows to

Affects restrictedpythonSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.9 High : upgrade to 6.2-1ubuntu0.24.04.1~esm1 soon.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
7.9High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 34% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.2-1ubuntu0.24.04.1~esm1
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jan 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu restrictedpython package to 6.2-1ubuntu0.24.04.1~esm1.

Affected software

ProductAffectedFixed in
Ubuntu Pro 24.04 LTSrestrictedpythonpkg:deb/ubuntu/restrictedpython?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <6.2-1ubuntu0.24.04.1~esm1
Fixed in
  • 6.2-1ubuntu0.24.04.1~esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

RestrictedPython is a tool that helps to define a subset of the Python language which allows to provide a program input into a trusted environment. Via a type confusion bug in versions of the CPython interpreter starting in 3.11 and prior to 3.13.2 when using `try/except*`, RestrictedPython starting in version 6.0 and prior to version 8.0 could be bypassed. The issue is patched in version 8.0 of RestrictedPython by removing support for `try/except*` clauses. No known workarounds are available.

References

Community reviews

Loading reviews…