# CVE-2023-41050: Information disclosure through Python's "format" functionality in Zope AccessControl

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Published: 2023-09-06T17:58:10.510Z
- Modified: 2026-07-13T16:43:49.162Z
- Also known as: GHSA-8xv7-89vj-q48c, PYSEC-2026-2075, PYSEC-2026-2325
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- zopefoundation AccessControl: AccessControl: < 4.4; AccessControl: >= 5.0, < 5.8; AccessControl: >= 6.0, < 6.2; Zope:  < 4.8.9; Zope:  >= 5.0.0, < 5.8.4
- accesscontrol (PyPI): before 4.4; from 5.0 before 5.8; from 6.0 before 6.2
- zope (PyPI): before 4.8.9; from 5.0.0 before 5.8.4
- zope accesscontrol: before 4.4; from 5.0 before 5.8; from 6.0 before 6.2
- zope zope: before 4.8.9; from 5.0 before 5.8.4

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-8xv7-89vj-q48c> (vendor-advisory, web)
- <https://github.com/zopefoundation/AccessControl/commit/6bc32692e0d4b8d5cf64eae3d19de987c7375bc9> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-41050> (advisory)
- <https://github.com/zopefoundation/AccessControl> (package)
- <https://pypi.org/project/zope> (package)
- <https://github.com/advisories/GHSA-8xv7-89vj-q48c> (advisory)
- <https://pypi.org/project/accesscontrol> (package)

## Sources

- CVE List: [CVE-2023-41050](https://www.cve.org/CVERecord?id=CVE-2023-41050), CVE Terms of Use, modified 2024-09-26
- GitHub Advisory Database: [GHSA-8xv7-89vj-q48c](https://github.com/advisories/GHSA-8xv7-89vj-q48c), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2023-41050](https://nvd.nist.gov/vuln/detail/CVE-2023-41050), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2075](https://osv.dev/vulnerability/PYSEC-2026-2075), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-2325](https://osv.dev/vulnerability/PYSEC-2026-2325), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2023-41050 · Whole record: https://cve.day/CVE-2023-41050.json · Rebuilt by cve.day 2026-11-25T22:58:27.733Z
