From 00f1ea64990a11799f3faa96e934ed2cef2cc93b Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Wed, 25 Nov 2026 10:40:48 -0600 Subject: [PATCH] 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 --- .../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 | 2 +- Platforms/Android/__main__.py | 2 +- Platforms/Apple/__main__.py | 2 +- 7 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 Misc/NEWS.d/next/Security/2026-11-24-11-39-37.gh-issue-162577.kgsLAF.rst 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 00000000000000..ea55b58ddec910 --- /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 59fbb2056c7be0..b35ed3720943ab 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 dca67e1e6c0a8a..36dfb7cc051c65 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.8.1.1 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 ef6f8a88d62d09..3c8fe34da93b61 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -111,7 +111,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 aacf627d6509e1..ce0a4c4750ff0a 100644 --- a/PCbuild/readme.txt +++ b/PCbuild/readme.txt @@ -268,7 +268,7 @@ _tkinter is able to load Tcl/Tk without having to change your PATH. _zstd - Python wrapper for version 1.5.7 of the zstd compression library + Python wrapper for version 1.6.0 of the zstd compression library Homepage: https://facebook.github.io/zstd/ diff --git a/Platforms/Android/__main__.py b/Platforms/Android/__main__.py index 27de5d01c1f19b..c8af1a02cd3e67 100755 --- a/Platforms/Android/__main__.py +++ b/Platforms/Android/__main__.py @@ -227,7 +227,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/Platforms/Apple/__main__.py b/Platforms/Apple/__main__.py index 4d29c240baac5a..c0ce8515e846ad 100644 --- a/Platforms/Apple/__main__.py +++ b/Platforms/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(