CVE-2023-41050 json
Information disclosure through Python's "format" functionality in Zope AccessControl
published 3y ago modified 4mo ago also GHSA-8xv7-89vj-q48c , PYSEC-2026-2075 , PYSEC-2026-2325 , EUVD-2023-2467
- cvss
- 6.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi accesscontrol 4.4, 5.8, 6.2
- pypi zope 4.8.9, 5.8.4
- zope accesscontrol 4.4, 5.8, 6.2
- zope zope 4.8.9, 5.8.4
Is CVE-2023-41050 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
| NVD | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| OSV | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | accesscontrol | <4.4 >=5.0, <5.8 >=6.0, <6.2 |
4.4 5.8 6.2 |
| pypi | zope | <4.8.9 >=5.0.0, <5.8.4 |
4.8.9 5.8.4 |
Affected products
- zopefoundation AccessControl
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
-
github.com
/zopefoundation/AccessControl/commit/6bc32692e0d4b8d5cf64eae3d19de987c7375bc9
web, patch
-
github.com
/zopefoundation/AccessControl/security/advisories/GHSA-8xv7-89vj-q48c
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-41050
advisory
-
github.com
/zopefoundation/AccessControl
package
-
pypi.org
/project/accesscontrol
package
-
github.com
/advisories/GHSA-8xv7-89vj-q48c
advisory
-
pypi.org
/project/zope
package
Sources
- CVE List CVE-2023-41050
- GitHub Advisory GHSA-8xv7-89vj-q48c
- NVD CVE-2023-41050
- OSV PYSEC-2026-2325
- OSV PYSEC-2026-2075
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.