CVE-2023-41050Zope Accesscontrol
High 7.7
Follow: this CVE · Zope · Zope Accesscontrol We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 3.1
- 7.7
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 51
- Auth required
- Yes
- Published
- Sep 6, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Accesscontrol.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | accesscontrol |
< 4.4 |
4.4 |
pip install "accesscontrol>=4.4" |
| PyPI | accesscontrol |
≥ 5.0 < 5.8 |
5.8 |
pip install "accesscontrol>=5.8" |
| PyPI | accesscontrol |
≥ 6.0 < 6.2 |
6.2 |
pip install "accesscontrol>=6.2" |
| PyPI | accesscontrol |
< 4.4 |
4.4 |
pip install "accesscontrol>=4.4" |
| PyPI | accesscontrol |
≥ 5.0 < 5.8 |
5.8 |
pip install "accesscontrol>=5.8" |
| PyPI | accesscontrol |
≥ 6.0 < 6.2 |
6.2 |
pip install "accesscontrol>=6.2" |
| PyPI | zope |
< 4.8.9 |
4.8.9 |
pip install "zope>=4.8.9" |
| PyPI | zope |
≥ 5.0.0 < 5.8.4 |
5.8.4 |
pip install "zope>=5.8.4" |
| PyPI | zope |
< 4.8.9 |
4.8.9 |
pip install "zope>=4.8.9" |
| PyPI | zope |
≥ 5.0.0 < 5.8.4 |
5.8.4 |
pip install "zope>=5.8.4" |
Per OSV / GitHub Advisories (GHSA-8xv7-89vj-q48c, PYSEC-2026-2325, PYSEC-2026-2075). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| zope | accesscontrol | < 4.4 |
| zope | accesscontrol | ≥ 5.0 < 5.8 |
| zope | accesscontrol | ≥ 6.0 < 6.2 |
| zope | zope | < 4.8.9 |
| zope | zope | ≥ 5.0 < 5.8.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Vendor Advisory