Skip to content

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

HighCVSS 8.3 EPSS 0.29%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 2 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/restrictedpython(Debian 12) = 4.0~b3-3; = 6.2-1; = 8.0-1; = 8.1-1 +2 more No fix listed No fix yet
debian/restrictedpython(Debian 13) = 8.0-1; = 8.1-1; = 8.4-1; All versions No fix listed No fix yet
ubuntu/restrictedpython(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/restrictedpython(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/restrictedpython(Ubuntu 26.04) All versions No fix listed No fix yet
debian/restrictedpython(Debian 14) < 8.4-1; = 8.0-1; = 8.1-1 8.4-1 Fixed
pypi restrictedpython(PyPI) < 8.3; <= 8.2; = 3.4.2; = 3.4.3 +42 more 8.3 Fixed
zopefoundation RestrictedPython = < 8.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi restrictedpython(PyPI) < 8.3 8.3
pypi restrictedpython(PyPI) = 3.4.2 No fix listed
pypi restrictedpython(PyPI) = 3.4.3 No fix listed
pypi restrictedpython(PyPI) = 3.5.0 No fix listed
pypi restrictedpython(PyPI) = 3.5.1 No fix listed
pypi restrictedpython(PyPI) = 3.5.2 No fix listed
pypi restrictedpython(PyPI) = 3.6.0 No fix listed
pypi restrictedpython(PyPI) = 3.6.0a1 No fix listed
pypi restrictedpython(PyPI) = 4.0 No fix listed
pypi restrictedpython(PyPI) = 4.0a1 No fix listed
pypi restrictedpython(PyPI) = 4.0a2 No fix listed
pypi restrictedpython(PyPI) = 4.0a3 No fix listed
pypi restrictedpython(PyPI) = 4.0b1 No fix listed
pypi restrictedpython(PyPI) = 4.0b2 No fix listed
pypi restrictedpython(PyPI) = 4.0b3 No fix listed
pypi restrictedpython(PyPI) = 4.0b4 No fix listed
pypi restrictedpython(PyPI) = 4.0b5 No fix listed
pypi restrictedpython(PyPI) = 4.0b6 No fix listed
pypi restrictedpython(PyPI) = 4.0b7 No fix listed
pypi restrictedpython(PyPI) = 4.0b8 No fix listed
pypi restrictedpython(PyPI) = 5.0 No fix listed
pypi restrictedpython(PyPI) = 5.1 No fix listed
pypi restrictedpython(PyPI) = 5.2 No fix listed
pypi restrictedpython(PyPI) = 5.2a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 5.3 No fix listed
Show 38 more
ProductAffected versionsFixed in
pypi restrictedpython(PyPI) = 5.3a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 5.4 No fix listed
pypi restrictedpython(PyPI) = 6.0 No fix listed
pypi restrictedpython(PyPI) = 6.0a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 6.1 No fix listed
pypi restrictedpython(PyPI) = 6.2 No fix listed
pypi restrictedpython(PyPI) = 7.0 No fix listed
pypi restrictedpython(PyPI) = 7.0a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 7.0a1.dev1 No fix listed
pypi restrictedpython(PyPI) = 7.0a2.dev0 No fix listed
pypi restrictedpython(PyPI) = 7.1 No fix listed
pypi restrictedpython(PyPI) = 7.2 No fix listed
pypi restrictedpython(PyPI) = 7.2a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 7.3 No fix listed
pypi restrictedpython(PyPI) = 7.4 No fix listed
pypi restrictedpython(PyPI) = 8.0 No fix listed
pypi restrictedpython(PyPI) = 8.1 No fix listed
pypi restrictedpython(PyPI) = 8.1a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 8.2 No fix listed
pypi restrictedpython(PyPI) = 8.3a1.dev0 No fix listed
zopefoundation RestrictedPython = < 8.3 No fix listed
pypi restrictedpython(PyPI) <= 8.2 No fix listed
debian/restrictedpython(Debian:12) All versions No fix listed
debian/restrictedpython(Debian:12) = 4.0~b3-3 No fix listed
debian/restrictedpython(Debian:12) = 6.2-1 No fix listed
debian/restrictedpython(Debian:12) = 8.0-1 No fix listed
debian/restrictedpython(Debian:12) = 8.1-1 No fix listed
debian/restrictedpython(Debian:12) = 8.4-1 No fix listed
debian/restrictedpython(Debian:13) All versions No fix listed
debian/restrictedpython(Debian:13) = 8.0-1 No fix listed
debian/restrictedpython(Debian:13) = 8.1-1 No fix listed
debian/restrictedpython(Debian:13) = 8.4-1 No fix listed
debian/restrictedpython(Debian:14) < 8.4-1 8.4-1
debian/restrictedpython(Debian:14) = 8.0-1 No fix listed
debian/restrictedpython(Debian:14) = 8.1-1 No fix listed
ubuntu/restrictedpython(Ubuntu:22.04) All versions No fix listed
ubuntu/restrictedpython(Ubuntu:24.04) All versions No fix listed
ubuntu/restrictedpython(Ubuntu:26.04) All versions No fix listed

References