Advisory

DEBIAN-CVE-2025-22153

Also known as: CVE-2025-22153

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.9, vector CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L

Dates

Published
2025-01-23 18:15 UTC
Modified
2026-09-01 20:05 UTC

Affected packages and fixes

restrictedpython

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 8.0-1 (ecosystem)

Fixed versions

8.0-1

Fix

  • Fixed version 8.0-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

restrictedpython

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 8.0-1 (ecosystem)

Fixed versions

8.0-1

Fix

  • Fixed version 8.0-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences