Skip to content

← Public intelligence

PyPI package

accesscontrol

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

5 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.8PyPIAmendedPublished

    Zope AccessControl vulnerable to information disclosure through Python string format and format_map functions

    CVE-2026-77401 · GHSA-pq59-9fq7-m886

    Affected
    • PyPI accesscontrol < 7.4
    Fixed in
    7.4· Vendor fix available
    Issue
    Impact Python'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. The AccessControl package already guards against direct access to the formatting functions on string instances, but these mitigations did not cover subclasses of str. Affected are all users who allow untrusted users to create AccessControl controlled Python code and execute it. Patches A fix was published with version 7.4. Workarounds There is no workaround.

    Recommended action: Upgrade to 7.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.com (1)osv.dev (2)Source checked Evidence →
  2. Medium, CVSS 6.6PyPIAmendedPublished

    Access control vulnerable to user data deletion by anonynmous users

    CVE-2024-51734 · GHSA-g5vw-3h65-2q3v

    Affected
    • PyPI accesscontrol < 7.2
    Fixed in
    7.2· Vendor fix available
    Issue
    Impact Anonymous users can delete the user data maintained by an AccessControl.userfolder.UserFolder which may prevent any privileged access. Patches The problem is fixed in version 7.2. Workarounds The problem can be fixed by adding dataroles = () to AccessControl.userfolder.UserFolder. References https://github.com/zopefoundation/AccessControl/issues/159

    Recommended action: Upgrade to 7.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 6.8PyPIAmendedPublished

    Information disclosure in AccessControl

    CVE-2023-41050 · GHSA-8xv7-89vj-q48c

    Affected
    • PyPI accesscontrol < 4.4; >= 5.0, < 5.8; >= 6.0, < 6.2
    Fixed in
    5.86.24.4· Vendor fix available
    Issue
    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.formatmap 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.

    Recommended action: Upgrade to 6.2, 5.8 or 4.4 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 5.9PyPIAmendedPublished

    Remote Code Execution via unsafe classes in otherwise permitted modules

    CVE-2021-32807 · GHSA-qcx9-j53g-ccgf

    Affected
    • PyPI accesscontrol >= 4.0, < 4.3; >= 5.0, < 5.2
    Fixed in
    5.24.3· Vendor fix available
    Issue
    Impact The module AccessControl defines security policies for Python code used in restricted code within Zope applications. Restricted code is any code that resides in Zope's object database, such as the contents of Script (Python) objects. The policies defined in AccessControl severely restrict access to Python modules and only exempt a few that are deemed safe, such as Python's string module. However, full access to the string module also allows access to the class Formatter, which can be overridden and extended within Script (Python) in a way that provides access to other unsafe Python libraries. Those unsafe Python libraries can be used for remote code execution. By default, you need to have the admin-level Zope "Manager" role to add or edit Script (Python) objects through the web. Only sites that allow untrusted users to add/edit these scripts through the web - which would be a very unusual configuration to begin with - are at risk. Patches The problem has been fixed in…

    Recommended action: Upgrade to 5.2 or 4.3 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. High, CVSS 7.7PyPIAmendedPublished

    Remote Code Execution via Script (Python) objects under Python 3

    CVE-2021-32811 · GHSA-g4gq-j4p2-j8fr

    Affected
    • PyPI accesscontrol >= 4.0, < 4.3; >= 5.0, < 5.2
    Fixed in
    4.35.2· Vendor fix available
    Issue
    Impact Background: The optional add-on package Products.PythonScripts adds Script (Python) to the list of content items a user can add to the Zope object database. Inside these scripts users can write Python code that is executed when rendered through the web. The code environment in these script objects is limited, it relies on the RestrictedPython package to provide a "safe" subset of Python instructions as well as the AccessControl package that defines security policies for execution in the context of a Zope application. Recently the AccessControl package was updated to fix a remote code execution security issue. A link to the security advisory is provided in the References section below. The bug tightens the AccessControl security policies for Zope by blocking access to unsafe classes inside the Python string module. You are only affected if the following are true: - You use Python 3 for your Zope deployment (Zope 4 on Python 2 is not affected) - You run Zope 4 below version…

    Recommended action: Upgrade to 5.2 or 4.3 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →