UBUNTU-CVE-2026-76825

Source
https://ubuntu.com/security/CVE-2026-76825
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76825.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-76825
Upstream
Published
2026-09-16T15:17:00Z
Modified
2026-09-24T02:00:46Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

RestrictedPython is a tool that helps define a subset of the Python language for accepting program input in a trusted environment. Prior to 8.4, RestrictedPython could allow a sandbox escape when a custom import policy or globals exposed the standard library string module, the string.Formatter class, a Formatter instance, or a Formatter subclass to restricted code. The string.Formatter methods format, get_field, get_value, and vformat performed attribute and item traversal internally without passing through RestrictedPython's safer_getattr protections. Restricted code could use those live object references to reach function globals, builtins, file access, or code execution primitives, affecting confidentiality, integrity, and availability in the host environment. This issue is fixed in version 8.4.

References

Affected packages

Ubuntu:16.04:LTS
restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython?arch=source&distro=xenial

Affected ranges

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

Affected versions

3.*
3.6.0-0ubuntu4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python-restrictedpython",
            "binary_version": "3.6.0-0ubuntu4"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76825.json"
Ubuntu:18.04:LTS
restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython?arch=source&distro=bionic

Affected ranges

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

Affected versions

3.*
3.6.0-0ubuntu4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python-restrictedpython",
            "binary_version": "3.6.0-0ubuntu4"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76825.json"
Ubuntu:26.04:LTS
restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython?arch=source&distro=resolute

Affected ranges

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

Affected versions

8.*
8.0-1
8.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-restrictedpython",
            "binary_version": "8.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76825.json"
Ubuntu:Pro:20.04:LTS
restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython?arch=source&distro=esm-apps%2Ffocal

Affected ranges

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

Affected versions

4.*
4.0~b3-2
4.0~b3-2ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-restrictedpython",
            "binary_version": "4.0~b3-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76825.json"
Ubuntu:Pro:22.04:LTS
restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython?arch=source&distro=esm-apps%2Fjammy

Affected ranges

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

Affected versions

4.*
4.0~b3-2
4.0~b3-2ubuntu1
4.0~b3-3
4.0~b3-3ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-restrictedpython",
            "binary_version": "4.0~b3-3ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76825.json"
Ubuntu:Pro:24.04:LTS
restrictedpython

Package

Name
restrictedpython
Purl
pkg:deb/ubuntu/restrictedpython?arch=source&distro=esm-apps%2Fnoble

Affected ranges

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

Affected versions

4.*
4.0~b3-3
6.*
6.2-1
6.2-1ubuntu0.24.04.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-restrictedpython",
            "binary_version": "6.2-1ubuntu0.24.04.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76825.json"