Zope AccessControl vulnerable to information disclosure through Python string `format` and `format_map` functionsGHSA-pq59-9fq7-m886
MEDIUMFix: zopefoundation/AccessControl@f980450GHSA-pq59-9fq7-m886 is a medium-severity (CVSS 6.8) CWE-693 vulnerability in accesscontrol. A fix is available for accesscontrol — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-pq59-9fq7-m886.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
accesscontrolReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | accesscontrol | all versions | 7.4pip install --upgrade 'accesscontrol==7.4' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for accesscontrol, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update accesscontrol to 7.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-pq59-9fq7-m886 is resolved across your whole dependency graph.
Workarounds
Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.
Frequently Asked Questions
Is GHSA-pq59-9fq7-m886 in your dependencies?
Find it across PyPI, including transitive dependencies.