CVE-2023-41050

Information disclosure through Python's "format" functionality in Zope AccessControl

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.

Category

6.8
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.24%
Vendor Advisory github.com
Affected: zopefoundation AccessControl
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-41050?
CVE-2023-41050 has been scored as a medium severity vulnerability.
How to fix CVE-2023-41050?
To fix CVE-2023-41050, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-41050 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-41050 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-41050?
CVE-2023-41050 affects zopefoundation AccessControl.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.