CVE-2026-55830

RestrictedPython guard hooks can be shadowed via positional-only arguments

State
Published
Severity
8.3 High
Published
Jul 8, 2026
Updated
Jul 9, 2026
Reserved
Jun 17, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.3 HighCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:LGitHub_M

Weaknesses

  • CWE-184 Incomplete List of Disallowed Inputs

Affected Products

ProductVersions
RestrictedPythonzopefoundation
  • < 8.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.