Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS04eHY3LTg5dmotcTQ4Y84AA1v6
Information disclosure in AccessControl
Impact
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.
Patches
A fix will be introduced in the versions 4.4, 5.8 and 6.2.
Workarounds
There are no workarounds.
References
https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-xjw2-6jm9-rf67 describes the corresponding problem for RestrictedPython
.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04eHY3LTg5dmotcTQ4Y84AA1v6
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 1 year ago
Updated: about 1 year ago
CVSS Score: 6.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Identifiers: GHSA-8xv7-89vj-q48c, CVE-2023-41050
References:
- https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-8xv7-89vj-q48c
- https://nvd.nist.gov/vuln/detail/CVE-2023-41050
- https://github.com/zopefoundation/AccessControl/commit/6bc32692e0d4b8d5cf64eae3d19de987c7375bc9
- https://github.com/advisories/GHSA-8xv7-89vj-q48c
Blast Radius: 14.0
Affected Packages
pypi:Zope
Dependent packages: 12Dependent repositories: 113
Downloads: 1,441,713 last month
Affected Version Ranges: >= 5.0.0, < 5.8.4, < 4.8.9
Fixed in: 5.8.4, 4.8.9
All affected versions: 4.1.1, 4.1.2, 4.1.3, 4.2.1, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.5.1, 4.5.2, 4.5.3, 4.5.4, 4.5.5, 4.6.1, 4.6.2, 4.6.3, 4.8.1, 4.8.2, 4.8.3, 4.8.4, 4.8.5, 4.8.6, 4.8.7, 4.8.8, 5.1.1, 5.1.2, 5.2.1, 5.5.1, 5.5.2, 5.7.1, 5.7.2, 5.7.3, 5.8.1, 5.8.2, 5.8.3
All unaffected versions: 4.8.9, 4.8.10, 4.8.11, 5.8.4, 5.8.5, 5.8.6, 5.11.1
pypi:AccessControl
Dependent packages: 5Dependent repositories: 12
Downloads: 982,880 last month
Affected Version Ranges: >= 6.0, < 6.2, >= 5.0, < 5.8, < 4.4
Fixed in: 6.2, 5.8, 4.4
All affected versions: 2.13.0, 2.13.1, 2.13.2, 2.13.3, 2.13.4, 2.13.5, 2.13.6, 2.13.7, 2.13.8, 2.13.9, 2.13.10, 2.13.11, 2.13.12, 2.13.13, 2.13.14, 2.13.15, 2.13.16, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.0.11, 3.0.12, 3.0.13, 3.0.14, 5.3.1
All unaffected versions: