p PatchFirst

CVE-2023-41050

CVE-2023-41050 · Information disclosure through Python's "format" functionality in Zope AccessControl

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 6.8 · Medium · EPSS 0.6% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • accesscontrol

    Versions
    • AccessControl: < 4.4: Affected
    • AccessControl: >= 5.0, < 5.8: Affected
    • AccessControl: >= 6.0, < 6.2: Affected
    • Zope: < 4.8.9: Affected
    • Zope: >= 5.0.0, < 5.8.4: Affected

    No fix published

  • accesscontrol PyPI

    Versions
    • 2.13.0
    • 2.13.1
    • 2.13.10
    • 2.13.11
    • 2.13.12
    • 2.13.13
    • 2.13.14
    • 2.13.15
    • 2.13.16
    • 2.13.2
    • 2.13.3
    • 2.13.4
    • 2.13.5
    • 2.13.6
    • 2.13.7
    • 2.13.8
    • 2.13.9
    • 3.0
    • 3.0.1
    • 3.0.10
    • 3.0.11
    • 3.0.12
    • 3.0.13
    • 3.0.14
    • 3.0.2
    • 3.0.3
    • 3.0.4
    • 3.0.5
    • 3.0.6
    • 3.0.7
    • 3.0.8
    • 3.0.9
    • 4.0
    • 4.0a1
    • 4.0a2
    • 4.0a3
    • 4.0a4
    • 4.0a5
    • 4.0a6
    • 4.0a7
    • 4.0b1
    • 4.0b2
    • 4.0b3
    • 4.0b4
    • 4.0b5
    • 4.0b6
    • 4.0b7
    • 4.1
    • 4.2
    • 4.3
    Affected ranges
    • ECOSYSTEM: < 4.4

    Update to 4.4

  • zope PyPI

    Versions
    • 4.0
    • 4.0b1
    • 4.0b10
    • 4.0b2
    • 4.0b3
    • 4.0b4
    • 4.0b5
    • 4.0b6
    • 4.0b7
    • 4.0b8
    • 4.0b9
    • 4.1
    • 4.1.1
    • 4.1.2
    • 4.1.3
    • 4.2
    • 4.2.1
    • 4.3
    • 4.4
    • 4.4.1
    • 4.4.2
    • 4.4.3
    • 4.4.4
    • 4.5
    • 4.5.1
    • 4.5.2
    • 4.5.3
    • 4.5.4
    • 4.5.5
    • 4.6
    • 4.6.1
    • 4.6.2
    • 4.6.3
    • 4.7
    • 4.8
    • 4.8.1
    • 4.8.2
    • 4.8.3
    • 4.8.4
    • 4.8.5
    • 4.8.6
    • 4.8.7
    • 4.8.8
    Affected ranges
    • ECOSYSTEM: < 4.8.9

    Update to 4.8.9

  • accesscontrol PyPI

    Versions
    • 5.0
    • 5.1
    • 5.2
    • 5.3
    • 5.3.1
    • 5.4
    • 5.5
    • 5.6
    • 5.7
    Affected ranges
    • ECOSYSTEM: ≥ 5.0, < 5.8

    Update to 5.8

  • accesscontrol PyPI

    Versions
    • 6.0
    • 6.1
    Affected ranges
    • ECOSYSTEM: ≥ 6.0, < 6.2

    Update to 6.2

  • zope PyPI

    Versions
    • 5.0
    • 5.1
    • 5.1.1
    • 5.1.2
    • 5.2
    • 5.2.1
    • 5.3
    • 5.4
    • 5.5
    • 5.5.1
    • 5.5.2
    • 5.6
    • 5.7
    • 5.7.1
    • 5.7.2
    • 5.7.3
    • 5.8
    • 5.8.1
    • 5.8.2
    • 5.8.3
    Affected ranges
    • ECOSYSTEM: ≥ 5.0.0, < 5.8.4

    Update to 5.8.4

  • zope PyPI

    Versions
    • 4.0
    • 4.0b1
    • 4.0b10
    • 4.0b2
    • 4.0b3
    • 4.0b4
    • 4.0b5
    • 4.0b6
    • 4.0b7
    • 4.0b8
    • 4.0b9
    • 4.1
    • 4.1.1
    • 4.1.2
    • 4.1.3
    • 4.2
    • 4.2.1
    • 4.3
    • 4.4
    • 4.4.1
    • 4.4.2
    • 4.4.3
    • 4.4.4
    • 4.5
    • 4.5.1
    • 4.5.2
    • 4.5.3
    • 4.5.4
    • 4.5.5
    • 4.6
    • 4.6.1
    • 4.6.2
    • 4.6.3
    • 4.7
    • 4.8
    • 4.8.1
    • 4.8.2
    • 4.8.3
    • 4.8.4
    • 4.8.5
    • 4.8.6
    • 4.8.7
    • 4.8.8
    • 5.0
    • 5.1
    • 5.1.1
    • 5.1.2
    • 5.2
    • 5.2.1
    • 5.3
    • 5.4
    • 5.5
    • 5.5.1
    • 5.5.2
    • 5.6
    • 5.7
    • 5.7.1
    • 5.7.2
    • 5.7.3
    • 5.8
    • 5.8.1
    • 5.8.2
    • 5.8.3
    Affected ranges
    • ECOSYSTEM: < 4.8.9 ∪ ≥ 5.0.0, < 5.8.4

    Update to 4.8.9; Update to 5.8.4

  • accesscontrol PyPI

    Versions
    • 2.13.0
    • 2.13.1
    • 2.13.10
    • 2.13.11
    • 2.13.12
    • 2.13.13
    • 2.13.14
    • 2.13.15
    • 2.13.16
    • 2.13.2
    • 2.13.3
    • 2.13.4
    • 2.13.5
    • 2.13.6
    • 2.13.7
    • 2.13.8
    • 2.13.9
    • 3.0
    • 3.0.1
    • 3.0.10
    • 3.0.11
    • 3.0.12
    • 3.0.13
    • 3.0.14
    • 3.0.2
    • 3.0.3
    • 3.0.4
    • 3.0.5
    • 3.0.6
    • 3.0.7
    • 3.0.8
    • 3.0.9
    • 4.0
    • 4.0a1
    • 4.0a2
    • 4.0a3
    • 4.0a4
    • 4.0a5
    • 4.0a6
    • 4.0a7
    • 4.0b1
    • 4.0b2
    • 4.0b3
    • 4.0b4
    • 4.0b5
    • 4.0b6
    • 4.0b7
    • 4.1
    • 4.2
    • 4.3
    • 5.0
    • 5.1
    • 5.2
    • 5.3
    • 5.3.1
    • 5.4
    • 5.5
    • 5.6
    • 5.7
    • 6.0
    • 6.1
    Affected ranges
    • ECOSYSTEM: < 4.4 ∪ ≥ 5.0, < 5.8 ∪ ≥ 6.0, < 6.2

    Update to 4.4; Update to 5.8; Update to 6.2

Original sources

Check your server →