Live threats

All CVEs / zopefoundation

CVE-2026-76825zopefoundation RestrictedPython

High 8.4

Priority
50
CVSS 3.1
8.4
EPSS
—
Auth required
Yes
Published
Sep 16, 2026
Updated
Sep 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200, CWE-470, CWE-680, CWE-693
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for RestrictedPython.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI restrictedpython < 8.4 8.4 pip install "restrictedpython>=8.4"
PyPI restrictedpython < 8.4 8.4 pip install "restrictedpython>=8.4"

Per OSV / GitHub Advisories (GHSA-hp3v-5vw7-fx9w, PYSEC-2026-4161). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.