GHSA-pq59-9fq7-m886: Medium severity pip/AccessControl vulnerability

Published Sep 17, 2026
·
Updated

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.

Affected Software

1 affected componentFixes available
pip/AccessControl<7.4
7.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/AccessControl to a version that resolves this vulnerability.

    Fixed in 7.4
  2. Upgrade

    Upgrade AccessControl to a version that resolves this vulnerability.

    Fixed in 7.4

Event History

Sep 17, 2026
Advisory Published
via GitHub·04:30 PM
Data Sourced
via GitHub·04:30 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Users are affected if they allow untrusted users to create and execute AccessControl-controlled Python code. The issue concerns format strings on subclasses of str, where the existing protections for direct access to string formatting functions did not apply.

2

What does an attacker need to exploit it?

An attacker needs the ability to control a Python format string within AccessControl-controlled code that is executed. They can use attribute access and item subscription during formatting to read recursively accessible objects using unrestricted getattr and getitem behavior.

3

What is the impact of successful exploitation?

Successful exploitation can disclose critical information from objects reachable through the formatting operation. The disclosed data is read through attribute and subscription traversal rather than AccessControl's policy-restricted access checks.

4

How can this be remediated or mitigated?

Upgrade AccessControl to version 7.4, which includes the published fix. No workaround is available if patching cannot be performed immediately.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203