Loading advisory.
Loading advisory.
Sandbox escape via various forms of "format".
Python's "format" functionality allows someone controlling the format string to "read" all objects accessible through recursive attribute lookup and subscription from objects he can access. This can lead to critical information disclosure.
Published 2023-08-30 17:18 UTC · Modified 2024-10-01 18:16 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| restrictedpython | PyPI | < 5.4 >= 6.0, < 6.2 git commits in https://github.com/zopefoundation/RestrictedPython: < 4134aedcff17c977da7717693ed89ce56d54c120 versions 3.4.2, 3.4.3, 3.5.0, 3.5.1, 3.5.2, 3.6.0, 3.6.0a1, 4.0, 4.0a1, 4.0a2, 4.0a3, 4.0b1, 4.0b2, 4.0b3, 4.0b4, 4.0b5, 4.0b6, 4.0b7, 4.0b8, 5.0 and 7 more | 5.4, 6.2, 4134aedcff17c977da7717693ed89ce56d54c120 | pip install --upgrade 'restrictedpython>=5.4'pip install --upgrade 'restrictedpython>=6.2'pip install --upgrade 'restrictedpython>=4134aedcff17c977da7717693ed89ce56d54c120' |
Python's "format" functionality allows someone controlling the format string to "read" all objects accessible through recursive attribute lookup and subscription from objects he can access. This can lead to critical information disclosure.
With RestrictedPython, the format functionality is available via the format and format_map methods of str (and unicode) (accessed either via the class or its instances) and via string.Formatter.
All known versions of RestrictedPython are vulnerable.
The issue will be fixed in 5.4 and 6.2.
There are no workarounds to fix the issue without upgrading.
https://docs.python.org/3/library/stdtypes.html#str.format_map
http://lucumr.pocoo.org/2016/12/29/careful-with-str-format/
https://www.exploit-db.com/exploits/51580
If you have any questions or comments about this advisory:
Open an issue in the RestrictedPython issue tracker
Email us at security@plone.org
Thanks for analysing and reporting the go to:
Abhishek Govindarasu
Ankush Menat
Ward Theunisse
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.007 on 2026-11-24 to 0.009 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.007 | first score | v2026.06.15 |
| 2026-11-26 | 0.009 | 0.007 | v2026.06.15 |