UBUNTU-CVE-2025-22153

Source
https://ubuntu.com/security/CVE-2025-22153
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22153.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-22153
Related
Published
2025-01-23T18:15:00Z
Modified
2025-04-23T15:16:35Z
Summary
[none]
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.

References

Affected packages

Ubuntu:24.10 / restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython@6.2-1ubuntu0.24.10.1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.2-1ubuntu0.24.10.1

Affected versions

6.*

6.2-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "6.2-1ubuntu0.24.10.1",
            "binary_name": "python3-restrictedpython"
        }
    ]
}

Ubuntu:24.04:LTS / restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython@6.2-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.0~b3-3

6.*

6.2-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:24.04:LTS / restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython@6.2-1ubuntu0.24.04.1~esm1?arch=source&distro=esm-apps/noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.2-1ubuntu0.24.04.1~esm1

Affected versions

4.*

4.0~b3-3

6.*

6.2-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "6.2-1ubuntu0.24.04.1~esm1",
            "binary_name": "python3-restrictedpython"
        }
    ]
}

Ubuntu:25.04 / restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython@8.0-1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.0-1

Affected versions

6.*

6.2-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "8.0-1",
            "binary_name": "python3-restrictedpython"
        }
    ]
}