CVE-2023-41050
Python vulnerability analysis and mitigation

Overview

CVE-2023-41050 affects AccessControl, a general security framework used in Zope. The vulnerability was disclosed on September 6, 2023, and impacts versions prior to 4.4, 5.0-5.8, and 6.0-6.2. The issue relates to Python's format functionality, specifically the unsafe implementation of str.format_map (GitHub Advisory).

Technical details

The vulnerability stems from Python's format functionality allowing users who control the format string to read objects accessible through attribute access and subscription from accessible objects. While AccessControl provides safe variants for str.format and blocks access to string.Formatter, the str.format_map remained unsafe. The attribute accesses and subscriptions use Python's full getattr and getitem instead of AccessControl's policy-restricted _getattr_ and _getitem_ variants (GitHub Advisory).

Impact

This vulnerability can lead to critical information disclosure in systems where untrusted users are allowed to create and execute AccessControl-controlled Python code. The CVSS v3.1 base score is 7.7 HIGH according to NVD, with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N, indicating high confidentiality impact (NVD).

Mitigation and workarounds

The vulnerability has been fixed in AccessControl versions 4.4, 5.8, and 6.2. Users are strongly advised to upgrade to these patched versions as there are no known workarounds for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management