Kurz gesagt
- CVE-2026-77401 ist eine Schwachstelle (MITTEL (CVSS 6.8)) in accesscontrol.
- Wahrscheinlichkeit einer Ausnutzung in den nächsten 30 Tagen (EPSS): 0.47%, höher als bei 40.6% aller Schwachstellen.
- Abhilfe: auf 7.4 oder neuer aktualisieren.
| Package | Affected versions | Patched versions |
|---|
| accesscontrol PyPI | < 7.4
| 7.4
|
Description
Impact
Python's string format functionality allows someone controlling the format string to "read" objects accessible (recursively) via attribute access and subscription from accessible objects. Those attribute accesses and subscriptions use Python's full blown getattr and getitem, not the policy restricted AccessControl variants _getattr_ and _getitem_. This can lead to critical information disclosure.
The AccessControl package already guards against direct access to the formatting functions on string instances, but these mitigations did not cover subclasses of str.
Affected are all users who allow untrusted users to create AccessControl controlled Python code and execute it.
Patches
A fix was published with version 7.4.
Workarounds
There is no workaround.
NVD description
Zope AccessControl provides a general security framework for use in Zope. Prior to 7.4, applications that allow untrusted users to create and execute AccessControl-controlled Python code do not safely guard str.format and str.format_map when those methods are reached through a str subclass. In both ImplPython.py and cAccessControl.c, Python formatting can recursively access attributes and subscriptions using unrestricted getattr and getitem behavior instead of the policy-restricted getattr and getitem operations. A controlled format string can therefore disclose objects reachable from values available to the formatting operation. This issue is fixed in version 7.4.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free