RestrictedPython guard hooks can be shadowed via positional-only arguments (zopefoundation RestrictedPython)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.29 % · percentile 23 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- Affected products
- zopefoundation · RestrictedPython
- NVD status
- Deferred
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.
Weaknesses (CWE)
- CWE-184 — Incomplete List of Disallowed Inputs
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L | GitHub_M |
| CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-ffg3-p8fm-mjx2 — RestrictedPython guard hooks can be shadowed via positional-only arguments
- PYSEC-2026-3917 — RestrictedPython guard hooks can be shadowed via positional-only arguments
European references
- ENISA EUVD · EUVD-2026-42434
- GCVE · GCVE-0-2026-55830
CERT-FR advisories
- CERTFR-2026-AVI-1486 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| zopefoundation · RestrictedPython | affected : < 8.3 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |