CVE-2023-41050
Information disclosure through Python's "format" functionality in Zope AccessControl
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
AccessControl proporciona un marco de seguridad general para su uso en Zope. La funcionalidad "format" de Python permite que alguien que controle la cadena de formato "lea" objetos accesibles (recursivamente) mediante acceso a atributos y suscripción desde objetos accesibles. Esos accesos a atributos y suscripciones utilizan las variantes `getattr` y `getitem` completas de Python, no las variantes `_getattr_` y `_getitem_` restringidas por políticas de `AccessControl`. Esto puede conducir a la divulgación de información crítica. `AccessControl` ya proporciona una variante segura para `str.format` y niega el acceso a `string.Formatter`. Sin embargo, `str.format_map` todavía no es seguro. Los afectados son todos los usuarios que permiten a usuarios no confiables crear código Python controlado por `AccessControl` y ejecutarlo. Se ha introducido una solución en las versiones 4.4, 5.8 y 6.2. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.
CVSS Scores
SSVC
- Decision:Track
Timeline
- 2023-08-22 CVE Reserved
- 2023-09-06 CVE Published
- 2024-09-12 EPSS Updated
- 2024-09-26 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
CAPEC
References (2)
URL | Tag | Source |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/zopefoundation/AccessControl/commit/6bc32692e0d4b8d5cf64eae3d19de987c7375bc9 | 2023-09-13 |
URL | Date | SRC |
---|---|---|
https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-8xv7-89vj-q48c | 2023-09-13 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Zope Search vendor "Zope" | Accesscontrol Search vendor "Zope" for product "Accesscontrol" | < 4.4 Search vendor "Zope" for product "Accesscontrol" and version " < 4.4" | - |
Affected
| ||||||
Zope Search vendor "Zope" | Accesscontrol Search vendor "Zope" for product "Accesscontrol" | >= 5.0 < 5.8 Search vendor "Zope" for product "Accesscontrol" and version " >= 5.0 < 5.8" | - |
Affected
| ||||||
Zope Search vendor "Zope" | Accesscontrol Search vendor "Zope" for product "Accesscontrol" | >= 6.0 < 6.2 Search vendor "Zope" for product "Accesscontrol" and version " >= 6.0 < 6.2" | - |
Affected
| ||||||
Zope Search vendor "Zope" | Zope Search vendor "Zope" for product "Zope" | < 4.8.9 Search vendor "Zope" for product "Zope" and version " < 4.8.9" | - |
Affected
| ||||||
Zope Search vendor "Zope" | Zope Search vendor "Zope" for product "Zope" | >= 5.0 < 5.8.4 Search vendor "Zope" for product "Zope" and version " >= 5.0 < 5.8.4" | - |
Affected
|