Skip to content

Update Windows builds to use latest zlib #111239

Closed

Description

@SharpMan

Bug report

Bug description:

A new version of zlib is out: 1.3 - https://zlib.net/

zlib 1.2.13 has CVE-2023-45853
https://www.openwall.com/lists/oss-security/2023/10/20/9

minizip is part of the contrib directory in zlib, but we do not appear to use this API. The CVSS v3 score is 9.8.

We would rather patch Python to use the latest library because people will ask us about that CVE.

CPython versions tested on:

3.11, 3.12, 3.13

Operating systems tested on:

Linux, Windows

Linked PRs

Activity

  1. zware commented on Oct 24, 2023

    @zware
    Member

    There is not a release with a fix for CVE-2023-45853 yet, and we aren't using the affected API anyway. We should probably update 3.13 to 1.3.1 when it becomes available, and probably update 3.11-3.12 to 1.2.14 if it appears. But until there's a release, there's nothing for us to do here. As such, I'm going to go ahead and close the current PR but leave this issue open.

    Thanks for bringing this to our attention!

  2. zware commented on Oct 24, 2023

    @zware
    Member

    I'm going to mark this as a 'deferred-blocker': we don't want to forget about it before final releases, but it's also not a release blocker.

  3. changed the title [-]Update binary builds to use zlib 1.3[/-] [+]Update Windows builds to use latest zlib[/+] on Oct 24, 2023
  4. self-assigned this
    on Oct 24, 2023
  5. added 2 commits that reference this issue on Feb 1, 2024
  6. 17 remaining items

  7. added 6 commits that reference this issue on Feb 6, 2024
  8. ambv commented on Feb 6, 2024

    @ambv
    Contributor

    3.8 - 3.13 updated. This can be closed.

  9. added
    3.13only security fixes
    and removed on Feb 6, 2024
  10. zware commented on Feb 6, 2024

    @zware
    Member

    I thought #111239 (comment) meant it was decided.

    Sorry for the confusion, was just trying to raise visibility before impending releases.

  11. added a commit that references this issue on Feb 11, 2024
  12. lanzkron commented on Nov 13, 2024

    @lanzkron

    Am I missing something? I just installed Python 3.12.7 and got zlib1.dll v 1.2.13.0.

  13. zware commented on Nov 13, 2024

    @zware
    Member

    It looks like zlib1.dll is just for Tcl/Tk, and probably is actually v1.2.13. I believe the zlib used by Python itself is statically linked, and is actually v1.3.1 (see zlib.ZLIB_VERSION).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.10 (EOL)end of life3.11only security fixes3.12only security fixes3.13only security fixes3.8 (EOL)end of life3.9 (EOL)end of lifebuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errortype-securityA security issue

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions