CVE-2023-41050: Information disclosure through Python's "format" functionality in Zope AccessControl
Vulnerability summary
CVE-2023-41050 is a high (CVSS 7.7) vulnerability in zope accesscontrol. EPSS estimates a 0.64% chance of exploitation in the next 30 days, higher than 50.7% of scored vulnerabilities.
Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 06-09-2023PublishedVulnerability first disclosed.
- 26-09-2024Last modifiedVulnerability information updated.
Description
AccessControl provides a general security framework for use in Zope. Python's "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. `AccessControl` already provides a safe variant for `str.format` and denies access to `string.Formatter`. However, `str.format_map` is still unsafe. Affected are all users who allow untrusted users to create `AccessControl` controlled Python code and execute it. A fix has been introduced in versions 4.4, 5.8 and 6.2. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA6.8MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:NDiffers
- OSV · PypiEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:NDiffers
EPSS trend
Probability
0.64%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.64% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
PyPI2 products
- accesscontrol< 4.4 | ≥ 5.0, < 5.8 | ≥ 6.0, < 6.2
- zope< 4.8.9 | ≥ 5.0.0, < 5.8.4
Zope2 products
- accesscontrol< 4.4 | ≥ 5.0, < 5.8 | ≥ 6.0, < 6.2
- zope< 4.8.9 | ≥ 5.0, < 5.8.4
Zopefoundation1 product
- accesscontrolAccessControl: < 4.4 | AccessControl: >= 5.0, < 5.8 | AccessControl: >= 6.0, < 6.2 | Zope: < 4.8.9 | Zope: >= 5.0.0, < 5.8.4
3 vendors · 5 products
References
7 links- github.com/zopefoundation/AccessControl/security/advisories/GHSA-8xv7-89vj-q48cX Refsource CONFIRMWEBVendor Advisory
- github.com/zopefoundation/AccessControl/commit/6bc32692e0d4b8d5cf64eae3d19de987c7375bc9X Refsource MISCWEBPatch
- pypi.org/project/zopePACKAGE