{"answers":{"affected":"12 open source packages ship an affected version, including accesscontrol, AccessControl and Zope. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-41050 in the wild and no public exploit code.","fix":"Upgrade accesscontrol to a fixed version for your release line: 4.4, 5.8 or 6.2.","what":"CVE-2023-41050 is a medium-severity vulnerability in zopefoundation AccessControl, published on 6 Sep 2023. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-41050 and fix it if it is affected.\n\nWhat it is: CVE-2023-41050 is a medium-severity vulnerability in zopefoundation AccessControl, published on 6 Sep 2023. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-41050 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- accesscontrol (PyPI): affected all versions; fixed in 4.4, 5.8, 6.2\n- accesscontrol (PyPI): affected all versions; fixed in 4.4\n- accesscontrol (PyPI): affected from 5.0; fixed in 5.8\n- accesscontrol (PyPI): affected from 6.0; fixed in 6.2\n- AccessControl (PyPI): affected all versions; fixed in 4.4\n- AccessControl (PyPI): affected from 5.0; fixed in 5.8\n- AccessControl (PyPI): affected from 6.0; fixed in 6.2\n- Zope (PyPI): affected all versions; fixed in 4.8.9\n- Zope (PyPI): affected from 5.0.0; fixed in 5.8.4\n- zope (PyPI): affected all versions; fixed in 4.8.9, 5.8.4\n- zope (PyPI): affected all versions; fixed in 4.8.9\n- zope (PyPI): affected from 5.0.0; fixed in 5.8.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-41050/ (Markdown: https://insights.sbomify.com/CVE-2023-41050/index.md)","id":"CVE-2023-41050","markdown":"https://insights.sbomify.com/CVE-2023-41050/index.md","name":"CVE-2023-41050","record":{"aliases":["GHSA-8xv7-89vj-q48c","PYSEC-2026-2075","PYSEC-2026-2325"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Zope AccessControl library","requires_auth":"high_privilege","summary":"Attackers can read sensitive object attributes via unsafe str.format_map usage in Zope AccessControl, leading to information disclosure.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"accesscontrol","vendor":"zope"},{"product":"zope","vendor":"zope"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Information disclosure through Python's \"format\" functionality in Zope AccessControl","id":"CVE-2023-41050","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":12,"n_references":2,"next":{"headline":"Default functions in VolatileMemory trait lack bounds checks in vm-memory","id":"CVE-2023-41051"},"packages":[{"ecosystem":"PyPI","fixed":["4.4"],"introduced":["0"],"last_affected":[],"package":"AccessControl","purl":null,"source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["5.8"],"introduced":["5.0"],"last_affected":[],"package":"AccessControl","purl":null,"source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["6.2"],"introduced":["6.0"],"last_affected":[],"package":"AccessControl","purl":null,"source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["4.8.9"],"introduced":["0"],"last_affected":[],"package":"Zope","purl":null,"source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["5.8.4"],"introduced":["5.0.0"],"last_affected":[],"package":"Zope","purl":null,"source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["4.4","5.8","6.2"],"introduced":["0","5.0","6.0"],"last_affected":[],"package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"PYSEC-2026-2325"},{"ecosystem":"PyPI","fixed":["4.4"],"introduced":["0"],"last_affected":[],"package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["5.8"],"introduced":["5.0"],"last_affected":[],"package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["6.2"],"introduced":["6.0"],"last_affected":[],"package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["4.8.9","5.8.4"],"introduced":["0","5.0.0"],"last_affected":[],"package":"zope","purl":"pkg:pypi/zope","source":"PYSEC-2026-2075"},{"ecosystem":"PyPI","fixed":["4.8.9"],"introduced":["0"],"last_affected":[],"package":"zope","purl":"pkg:pypi/zope","source":"GHSA-8xv7-89vj-q48c"},{"ecosystem":"PyPI","fixed":["5.8.4"],"introduced":["5.0.0"],"last_affected":[],"package":"zope","purl":"pkg:pypi/zope","source":"GHSA-8xv7-89vj-q48c"}],"prev":{"headline":"Improper Neutralization of Script in Attributes in @dcl/single-sign-on-client","id":"CVE-2023-41049"},"products":["AccessControl"],"published":"2023-09-06","related":[{"cvss_score":7.5,"headline":"Remote Code Execution via Script (Python) objects under Python 3","id":"CVE-2021-32811","kev_date_added":null,"published":"2021-08-02"},{"cvss_score":4.4,"headline":"Remote Code Execution via unsafe classes in otherwise permitted modules","id":"CVE-2021-32807","kev_date_added":null,"published":"2021-07-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-26","vendors":["zopefoundation"]},"summary":"Attackers can read sensitive object attributes via unsafe str.format_map usage in Zope AccessControl, leading to information disclosure.","url":"https://insights.sbomify.com/CVE-2023-41050/"}