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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| zopefoundation | RestrictedPython | < 8.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | restrictedpython | 8.4-1 | — |
| Debian 13 | restrictedpython | No fix yet | — |
| Debian 12 | restrictedpython | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | restrictedpython | No fix yet | — |
| Ubuntu 18.04 LTS | restrictedpython | No fix yet | — |
| Ubuntu 16.04 LTS | restrictedpython | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | restrictedpython | No fix yet | — |
| Ubuntu Pro 22.04 LTS | restrictedpython | No fix yet | — |
| Ubuntu Pro 20.04 LTS | restrictedpython | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | open-webui | 0.11.0-r9 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | restrictedpython | < 8.3 | 8.3 | GHSA-ffg3-p8fm-mjx2 |