From 334982bd71bab1c087c8efcb94fd2a6636515349 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Wed, 25 Nov 2026 10:40:48 -0600 Subject: [PATCH] [3.14] gh-162577: Update zstd to 1.6.0 on Android, iOS, and Windows (GH-162579) (cherry picked from commit 1b908e13202234c335627d98f1da7540f50104ca) Co-authored-by: Zachary Ware --- Android/android.py | 2 +- Apple/__main__.py | 2 +- .../2026-11-24-11-39-37.gh-issue-162577.kgsLAF.rst | 2 ++ Misc/externals.spdx.json | 8 ++++---- PCbuild/get_externals.bat | 2 +- PCbuild/python.props | 2 +- PCbuild/readme.txt | 10 ++++++---- 7 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 Misc/NEWS.d/next/Security/2026-11-24-11-39-37.gh-issue-162577.kgsLAF.rst diff --git a/Android/android.py b/Android/android.py index 246e45de72c4077..2afa066b63595bc 100755 --- a/Android/android.py +++ b/Android/android.py @@ -224,7 +224,7 @@ def unpack_deps(host, prefix_dir, cache_dir): "openssl-3.5.9-0", "sqlite-3.53.4-0", "xz-5.4.6-1", - "zstd-1.5.7-2" + "zstd-1.6.0-0" ]: filename = f"{name_ver}-{host}.tar.gz" out_path = download(f"{deps_url}/{name_ver}/{filename}", cache_dir) diff --git a/Apple/__main__.py b/Apple/__main__.py index 1092a944d64b307..b5c4e482a7401bf 100644 --- a/Apple/__main__.py +++ b/Apple/__main__.py @@ -331,7 +331,7 @@ def unpack_deps( "OpenSSL-3.5.9-1", "XZ-5.6.4-2", "mpdecimal-4.0.0-2", - "zstd-1.5.7-1", + "zstd-1.6.0-1", ]: filename = f"{name_ver.lower()}-{apple_target(host)}.tar.gz" archive_path = download( diff --git a/Misc/NEWS.d/next/Security/2026-11-24-11-39-37.gh-issue-162577.kgsLAF.rst b/Misc/NEWS.d/next/Security/2026-11-24-11-39-37.gh-issue-162577.kgsLAF.rst new file mode 100644 index 000000000000000..ea55b58ddec910d --- /dev/null +++ b/Misc/NEWS.d/next/Security/2026-11-24-11-39-37.gh-issue-162577.kgsLAF.rst @@ -0,0 +1,2 @@ +Update ``zstd`` to v1.6.0 in Android, iOS, and Windows builds to address +:cve:`2026-124851`. diff --git a/Misc/externals.spdx.json b/Misc/externals.spdx.json index cd957c3853c3247..a7b8b41a59ebae7 100644 --- a/Misc/externals.spdx.json +++ b/Misc/externals.spdx.json @@ -196,21 +196,21 @@ "checksums": [ { "algorithm": "SHA256", - "checksumValue": "f24b52470d12f466e9fa4fcc94e6c530625ada51d7b36de7fdc6ed7e6f499c8e" + "checksumValue": "eb34eed79af88b8dd7c07481d55192520b9545f865416c31c828b96b01d335d3" } ], - "downloadLocation": "https://github.com/python/cpython-source-deps/archive/refs/tags/zstd-1.5.7.tar.gz", + "downloadLocation": "https://github.com/python/cpython-source-deps/archive/refs/tags/zstd-1.6.0.tar.gz", "externalRefs": [ { "referenceCategory": "SECURITY", - "referenceLocator": "cpe:2.3:a:facebook:zstandard:1.5.7:*:*:*:*:*:*:*", + "referenceLocator": "cpe:2.3:a:facebook:zstandard:1.6.0:*:*:*:*:*:*:*", "referenceType": "cpe23Type" } ], "licenseConcluded": "NOASSERTION", "name": "zstd", "primaryPackagePurpose": "SOURCE", - "versionInfo": "1.5.7" + "versionInfo": "1.6.0" } ], "spdxVersion": "SPDX-2.3" diff --git a/PCbuild/get_externals.bat b/PCbuild/get_externals.bat index 55f3030110b9f66..d5752fe396a268a 100644 --- a/PCbuild/get_externals.bat +++ b/PCbuild/get_externals.bat @@ -61,7 +61,7 @@ if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tcl-9.0.4.0 if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tk-9.0.4.1 set libraries=%libraries% xz-5.2.5 set libraries=%libraries% zlib-ng-2.2.5 -set libraries=%libraries% zstd-1.5.7 +set libraries=%libraries% zstd-1.6.0 for %%e in (%libraries%) do ( if exist "%EXTERNALS_DIR%\%%e" ( diff --git a/PCbuild/python.props b/PCbuild/python.props index 5b5f46d03fc4ead..f365db855b9c848 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -88,7 +88,7 @@ $(ExternalsDir)\nasm-2.11.06\ $(ExternalsDir)\zlib-1.3.1\ $(ExternalsDir)\zlib-ng-2.2.5\ - $(ExternalsDir)\zstd-1.5.7\ + $(ExternalsDir)\zstd-1.6.0\ diff --git a/PCbuild/readme.txt b/PCbuild/readme.txt index c7d1c7ffe1c07c7..72862b6c8ccc304 100644 --- a/PCbuild/readme.txt +++ b/PCbuild/readme.txt @@ -252,6 +252,12 @@ _tkinter Win32 and "tcltk64" on x64. They also copy the Tcl and Tk DLLs into the current output directory, which should ensure that Tkinter is able to load Tcl/Tk without having to change your PATH. + +_zstd + Python wrapper for version 1.6.0 of the zstd compression library + Homepage: + https://facebook.github.io/zstd/ + zlib-ng Compiles zlib-ng as a static library, which is later included by pythoncore.vcxproj. This was generated using CMake against zlib-ng @@ -262,10 +268,6 @@ zlib-ng Sources for zlib-ng are imported unmodified into our source repository at https://github.com/python/cpython-source-deps. -_zstd - Python wrapper for version 1.5.7 of the Zstandard compression library - Homepage: - https://facebook.github.io/zstd/ Getting External Sources