{"id":"CVE-2026-77401","aliases":["CVE-2026-77401","GHSA-pq59-9fq7-m886","PYSEC-2026-4022"],"related":[],"kind":"vulnerability","state":"published","title":"Zope AccessControl: Information disclosure through Python string `format` and `format_map` functions","summary":"Zope AccessControl provides a general security framework for use in Zope. Prior to 7.4, applications that allow untrusted users to create and execute AccessControl-controlled Python code do not safely guard str.format and str.format_map when those methods are reached through a str subclass. In both ImplPython.py and cAccessControl.c, Python formatting can recursively access attributes and subscriptions using unrestricted getattr and getitem behavior instead of the policy-restricted getattr and getitem operations. A controlled format string can therefore disclose objects reachable from values available to the formatting operation. This issue is fixed in version 7.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Zope AccessControl provides a general security framework for use in Zope. Prior to 7.4, applications that allow untrusted users to create and execute AccessControl-controlled Python code do not safely guard str.format and str.format_map when those methods are reached through a str subclass. In both ImplPython.py and cAccessControl.c, Python formatting can recursively access attributes and subscriptions using unrestricted getattr and getitem behavior instead of the policy-restricted getattr and getitem operations. A controlled format string can therefore disclose objects reachable from values available to the formatting operation. This issue is fixed in version 7.4.","source":"cvelist"},{"lang":"en","text":"### Impact\nPython's string `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\nThe `AccessControl` package already guards against direct access to the formatting functions on string instances, but these mitigations did not cover subclasses of `str`.\n\nAffected are all users who allow untrusted users to create AccessControl controlled Python code and execute it.\n\n### Patches\nA fix was published with version 7.4.\n\n### Workarounds\nThere is no workaround.","format":"markdown","source":"ghsa"}],"published":"2026-09-16T14:28:01.186Z","modified":"2026-10-01T17:56:05.701Z","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":"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-693"],"affected":[{"ranges":[{"version":"< 7.4","status":"affected"}],"vendor":"zopefoundation","product":"AccessControl","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.4"}],"ecosystem":"PyPI","package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.4"}],"ecosystem":"PyPI","package":"accesscontrol","purl":"pkg:pypi/accesscontrol","source":"pysec"}],"references":[{"url":"https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-pq59-9fq7-m886","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/zopefoundation/AccessControl/commit/f980450eea416718be62847f34dfd51822938e43","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/zopefoundation/AccessControl/releases/tag/7.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77401","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/zopefoundation/AccessControl","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/accesscontrol","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-pq59-9fq7-m886","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-16T18:18:37.466Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77401","url":"https://www.cve.org/CVERecord?id=CVE-2026-77401","licence":"CVE Terms of Use","modified":"2026-09-16T18:35:46.823Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pq59-9fq7-m886","url":"https://github.com/advisories/GHSA-pq59-9fq7-m886","licence":"CC-BY-4.0","modified":"2026-10-01T17:56:05.701Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77401","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77401","licence":"Public domain","modified":"2026-09-30T17:43:24.057Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4022","url":"https://osv.dev/vulnerability/PYSEC-2026-4022","licence":"CC-BY-4.0","modified":"2026-10-01T17:45:03.127Z"}],"updatedAt":"2026-11-25T22:59:39.057Z","epss":{"score":0.00368,"percentile":0.32683,"date":"2026-12-01T12:00:22.000Z"}}