CVE catalog

CVE-2026-76825

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 cu

[CVE catalog]

Severity
High · CVSS 8.4CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.62% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianrestrictedpythonsid8.4-1fixed
Debianrestrictedpythonforky8.4-1fixed
Debianrestrictedpythontrixie8.0-1vulnerable
Debianrestrictedpythonbookworm4.0~b3-3vulnerable
PipRestrictedPythonNot reported8.4fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianrestrictedpythonsourcesid8.4-1not yet assignedNot reportedNot reported
Debianrestrictedpythonsourceforky8.4-1not yet assignedNot reportedNot reported
Debianrestrictedpythonsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianrestrictedpythonsourcebookworm(unfixed)not yet assignedNot reportedNot reported
PipRestrictedPythonpipNot reported8.4Not reportedGHSA-HP3V-5VW7-FX9WNot reported

Notes

[trixie] restrictedpython: Minor issue [bookworm] restrictedpython: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [restrictedpython]

    Details (2)
    • 4.0~b3-3 · all · bookworm

      Affected

      nvd · restrictedpython · debian · bookworm; nvd · restrictedpython · debian · 12

    • 4.0~b3-3 · all · bookworm

      Affected

      nvd · restrictedpython · debian · bookworm; nvd · restrictedpython · debian · 12

[Debian 13 (Trixie)]

  • Source package: [restrictedpython]

    Details (2)
    • 8.0-1 · all · trixie

      Affected

      nvd · restrictedpython · debian · 13

    • 8.0-1 · all · trixie

      Affected

      nvd · restrictedpython · debian · 13

Observed:

References