{"id":"CVE-2023-41050","aliases":["CVE-2023-41050","GHSA-8xv7-89vj-q48c","PYSEC-2026-2075","PYSEC-2026-2325"],"related":[],"kind":"vulnerability","state":"published","title":"Information disclosure through Python's \"format\" functionality in Zope AccessControl","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nPython'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.\n\n`AccessControl` already provides a safe variant for `str.format` and denies access to `string.Formatter`. However, `str.format_map` is still unsafe.\n\nAffected are all users who allow untrusted users to create `AccessControl` controlled Python code and execute it.\n\n### Patches\nA fix will be introduced in the versions 4.4, 5.8 and 6.2.\n\n### Workarounds\nThere are no workarounds.\n\n### References\nhttps://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-xjw2-6jm9-rf67 describes the corresponding problem for `RestrictedPython`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2023-09-06T17:58:10.510Z","modified":"2026-07-13T16:43:49.162Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":7.7,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"AccessControl: < 4.4","status":"affected"},{"version":"AccessControl: >= 5.0, < 5.8","status":"affected"},{"version":"AccessControl: >= 6.0, < 6.2","status":"affected"},{"version":"Zope:  < 4.8.9","status":"affected"},{"version":"Zope:  >= 5.0.0, < 5.8.4","status":"affected"}],"vendor":"zopefoundation","product":"AccessControl","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.4"}],"ecosystem":"PyPI","package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.8.9"}],"ecosystem":"PyPI","package":"zope","purl":"pkg:pypi/zope","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.8"}],"ecosystem":"PyPI","package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0","status":"affected","fixed":"6.2"}],"ecosystem":"PyPI","package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.8.4"}],"ecosystem":"PyPI","package":"zope","purl":"pkg:pypi/zope","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.4"},{"status":"affected","introduced":"5.0","fixed":"5.8"},{"status":"affected","introduced":"6.0","fixed":"6.2"}],"vendor":"zope","product":"accesscontrol","cpe":"cpe:2.3:a:zope:accesscontrol:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"4.8.9"},{"status":"affected","introduced":"5.0","fixed":"5.8.4"}],"vendor":"zope","product":"zope","cpe":"cpe:2.3:a:zope:zope:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.8.9"},{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.8.4"}],"ecosystem":"PyPI","package":"zope","purl":"pkg:pypi/zope","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.4"},{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.8"},{"type":"ecosystem","introduced":"6.0","status":"affected","fixed":"6.2"}],"ecosystem":"PyPI","package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"pysec"}],"references":[{"url":"https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-8xv7-89vj-q48c","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/zopefoundation/AccessControl/commit/6bc32692e0d4b8d5cf64eae3d19de987c7375bc9","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41050","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/zopefoundation/AccessControl","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/zope","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8xv7-89vj-q48c","tags":["advisory"],"sources":["pysec"]},{"url":"https://pypi.org/project/accesscontrol","tags":["package"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-26T14:47:49.544Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-41050","url":"https://www.cve.org/CVERecord?id=CVE-2023-41050","licence":"CVE Terms of Use","modified":"2024-09-26T15:19:50.945Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xv7-89vj-q48c","url":"https://github.com/advisories/GHSA-8xv7-89vj-q48c","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:49.162Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-41050","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41050","licence":"Public domain","modified":"2026-06-17T06:20:18.200Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2075","url":"https://osv.dev/vulnerability/PYSEC-2026-2075","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:49.162Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2325","url":"https://osv.dev/vulnerability/PYSEC-2026-2325","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:49.162Z"}],"updatedAt":"2026-11-25T22:58:27.733Z","epss":{"score":0.00641,"percentile":0.52011,"date":"2026-12-01T12:00:22.000Z"}}