RestrictedPython guard hooks can be shadowed via positional-only arguments (zopefoundation RestrictedPython)

CVE-2026-55830
HIGH 8.3

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

VersionScoreVectorScored by
CVSS 3.1HIGH 8.3CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:LGitHub_M
CVSS 3.1HIGH 8.3CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:LNVD · security-advisories@github.com (Secondary)

Advisories

European references

CERT-FR advisories

Affected products

ProductAffected versions
zopefoundation · RestrictedPython
affected : < 8.3

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD