Skip to content

Commit a4eac66

Browse files
Kanishk-Bansalazurelinux-securityarchana25-msRatiranjan5bot-for-go[bot]
authored
[Manual Cherry Pick CVEs] golang, nodejs and python-wheel (#16543)
Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: Archana Shettigar <v-shettigara@microsoft.com> Co-authored-by: Ratiranjan5 <v-ratbehera@microsoft.com> Co-authored-by: bot-for-go[bot] <199222863+bot-for-go[bot]@users.noreply.github.com>
1 parent 7e2484a commit a4eac66

File tree

12 files changed

+113
-100
lines changed

12 files changed

+113
-100
lines changed

SPECS/golang/golang-1.25.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"go.20230802.5.src.tar.gz": "56b9e0e0c3c13ca95d5efa6de4e7d49a9d190eca77919beff99d33cd3fa74e95",
44
"go.20240206.2.src.tar.gz": "7982e0011aa9ab95fd0530404060410af4ba57326d26818690f334fdcb6451cd",
55
"go1.22.12-20250211.4.src.tar.gz": "e1cc3bff8fdf1f24843ffc9f0eaddfd344eb40fd9ca0d9ba2965165be519eeb7",
6-
"go1.25.8-20260306.2.src.tar.gz": "32c83228b338bb31782e8c9e6aee82e160ba679061b728ed2c35a00a8a38d474",
6+
"go1.25.9-20260407.1.src.tar.gz": "985777a40244ac7e2b09ec64e226ed5c955018565edc0b80ee9b95f6605ce9d8",
77
"go1.4-bootstrap-20171003.tar.gz": "f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52"
88
}
99
}

SPECS/golang/golang-1.25.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%global goroot %{_libdir}/golang
22
%global gopath %{_datadir}/gocode
3-
%global ms_go_filename go1.25.8-20260306.2.src.tar.gz
3+
%global ms_go_filename go1.25.9-20260407.1.src.tar.gz
44
%global ms_go_revision 1
55
%ifarch aarch64
66
%global gohostarch arm64
@@ -14,7 +14,7 @@
1414
%define __find_requires %{nil}
1515
Summary: Go
1616
Name: golang
17-
Version: 1.25.8
17+
Version: 1.25.9
1818
Release: 1%{?dist}
1919
License: BSD-3-Clause
2020
Vendor: Microsoft Corporation
@@ -160,6 +160,9 @@ fi
160160
%{_bindir}/*
161161

162162
%changelog
163+
* Wed Apr 08 2026 bot-for-go[bot] <199222863+bot-for-go[bot]@users.noreply.github.com> - 1.25.9-1
164+
- Bump version to 1.25.9-1
165+
163166
* Fri Mar 06 2026 bot-for-go[bot] <199222863+bot-for-go[bot]@users.noreply.github.com> - 1.25.8-1
164167
- Bump version to 1.25.8-1
165168

SPECS/golang/golang.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"go.20240206.2.src.tar.gz": "7982e0011aa9ab95fd0530404060410af4ba57326d26818690f334fdcb6451cd",
55
"go1.22.12-20250211.4.src.tar.gz": "e1cc3bff8fdf1f24843ffc9f0eaddfd344eb40fd9ca0d9ba2965165be519eeb7",
66
"go1.24.13-20260204.5.src.tar.gz": "fdf4ec44d7191e59890e988ffba8ab3fd133ec6bd3757955223712f369e2328b",
7-
"go1.26.1-20260306.1.src.tar.gz": "51c4ea1d0f5c5e0b5860903bab4c66a1544da62ecaa67ea2fe883bef64a2e863",
7+
"go1.26.2-20260407.2.src.tar.gz": "609b097d0482f96fa1b4e7f738638d33df1aa4c7a01ff6da03b881edc8534987",
88
"go1.4-bootstrap-20171003.tar.gz": "f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52"
99
}
1010
}

SPECS/golang/golang.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%global goroot %{_libdir}/golang
22
%global gopath %{_datadir}/gocode
3-
%global ms_go_filename go1.26.1-20260306.1.src.tar.gz
3+
%global ms_go_filename go1.26.2-20260407.2.src.tar.gz
44
%global ms_go_revision 1
55
%ifarch aarch64
66
%global gohostarch arm64
@@ -14,7 +14,7 @@
1414
%define __find_requires %{nil}
1515
Summary: Go
1616
Name: golang
17-
Version: 1.26.1
17+
Version: 1.26.2
1818
Release: 1%{?dist}
1919
License: BSD-3-Clause
2020
Vendor: Microsoft Corporation
@@ -166,6 +166,9 @@ fi
166166
%{_bindir}/*
167167

168168
%changelog
169+
* Wed Apr 08 2026 bot-for-go[bot] <199222863+bot-for-go[bot]@users.noreply.github.com> - 1.26.2-1
170+
- Bump version to 1.26.2-1
171+
169172
* Fri Mar 06 2026 bot-for-go[bot] <199222863+bot-for-go[bot]@users.noreply.github.com> - 1.26.1-1
170173
- Bump version to 1.26.1-1
171174

SPECS/nodejs24/CVE-2025-69418.patch

Lines changed: 0 additions & 78 deletions
This file was deleted.

SPECS/nodejs24/nodejs24.signatures.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"btest402.js": "fabaf4dacc13e93d54f825b87ffde18573214b149388a5f96176236dd31d7768",
44
"icu4c-77_1-data-bin-b.zip": "d8be12e03f782da350508b15354738ed97a3289008a787b6bd2a85434374bff4",
55
"icu4c-77_1-data-bin-l.zip": "0913674ff673c585f8bc08370916b6a6ccc30ffb6408a5c1bc3edbf5a687fd96",
6-
"node-v24.13.0.tar.xz": "320fe909cbb347dcf516201e4964ef177b8138df9a7f810d0d54950481b3158b"
6+
"node-v24.14.1.tar.xz": "7822507713f202cf2a551899d250259643f477b671706db421a6fb55c4aa0991"
77
}
8-
}
8+
}

SPECS/nodejs24/nodejs24.spec

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Summary: A JavaScript runtime built on Chrome's V8 JavaScript engine.
1515
Name: nodejs24
1616
# WARNINGS: MUST check and update the 'npm_version' macro for every version update of this package.
1717
# The version of NPM can be found inside the sources under 'deps/npm/package.json'.
18-
Version: 24.13.0
19-
Release: 3%{?dist}
18+
Version: 24.14.1
19+
Release: 1%{?dist}
2020
License: BSD AND MIT AND Public Domain AND NAIST-2003 AND Artistic-2.0
2121
Vendor: Microsoft Corporation
2222
Distribution: Azure Linux
@@ -35,7 +35,6 @@ Patch2: CVE-2024-22195.patch
3535
Patch3: CVE-2020-28493.patch
3636
Patch4: CVE-2024-34064.patch
3737
Patch5: CVE-2025-27516.patch
38-
Patch6: CVE-2025-69418.patch
3938
BuildRequires: brotli-devel
4039
BuildRequires: c-ares-devel
4140
BuildRequires: coreutils >= 8.22
@@ -46,6 +45,7 @@ BuildRequires: openssl-devel >= 1.1.1
4645
BuildRequires: python3
4746
BuildRequires: which
4847
BuildRequires: zlib-devel
48+
BuildRequires: perl-WWW-Curl
4949
Requires: brotli
5050
Requires: c-ares
5151
Requires: coreutils >= 8.22
@@ -180,6 +180,18 @@ make cctest
180180
%{_prefix}/lib/node_modules/*
181181

182182
%changelog
183+
* Wed Apr 01 2026 Ratiranjan Behera <v-ratbehera@microsoft.com> - 24.14.1-1
184+
- Upgrade to 24.14.1
185+
- Security fixes included:
186+
CVE-2026-21710: use null prototype for headersDistinct/trailersDistinct (Matteo Collina) - High
187+
CVE-2026-21637: wrap SNICallback invocation in try/catch (Matteo Collina) - High
188+
CVE-2026-21717: test array index hash collision (Joyee Cheung) - Medium
189+
CVE-2026-21713: use timing-safe comparison in Web Cryptography HMAC and KMAC (Filip Skokan) - Medium
190+
CVE-2026-21714: handle NGHTTP2_ERR_FLOW_CONTROL error code (RafaelGSS) - Medium
191+
CVE-2026-21712: handle url crash on different url formats (RafaelGSS) - Medium
192+
CVE-2026-21716: include permission check on lib/fs/promises (RafaelGSS) - Low
193+
CVE-2026-21715: add permission check to realpath.native (RafaelGSS) - Low
194+
183195
* Fri Feb 13 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 24.13.0-3
184196
- Patch for CVE-2025-69418
185197

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
From 5d21b0f9ba9d397f45bb9003635be81df846f894 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
3+
Date: Thu, 22 Jan 2026 01:41:14 +0200
4+
Subject: [PATCH] Fixed security issue around wheel unpack (#675)
5+
6+
A maliciously crafted wheel could cause the permissions of a file outside the unpack tree to be altered.
7+
8+
Fixes CVE-2026-24049.
9+
10+
Signed-off-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
11+
Upstream-reference: https://github.com/pypa/wheel/commit/7a7d2de96b22a9adf9208afcc9547e1001569fef.patch
12+
---
13+
src/wheel/cli/unpack.py | 4 ++--
14+
tests/cli/test_unpack.py | 23 +++++++++++++++++++++++
15+
2 files changed, 25 insertions(+), 2 deletions(-)
16+
17+
diff --git a/src/wheel/cli/unpack.py b/src/wheel/cli/unpack.py
18+
index d48840e..83dc742 100644
19+
--- a/src/wheel/cli/unpack.py
20+
+++ b/src/wheel/cli/unpack.py
21+
@@ -19,12 +19,12 @@ def unpack(path: str, dest: str = ".") -> None:
22+
destination = Path(dest) / namever
23+
print(f"Unpacking to: {destination}...", end="", flush=True)
24+
for zinfo in wf.filelist:
25+
- wf.extract(zinfo, destination)
26+
+ target_path = Path(wf.extract(zinfo, destination))
27+
28+
# Set permissions to the same values as they were set in the archive
29+
# We have to do this manually due to
30+
# https://github.com/python/cpython/issues/59999
31+
permissions = zinfo.external_attr >> 16 & 0o777
32+
- destination.joinpath(zinfo.filename).chmod(permissions)
33+
+ target_path.chmod(permissions)
34+
35+
print("OK")
36+
diff --git a/tests/cli/test_unpack.py b/tests/cli/test_unpack.py
37+
index ae584af..75fe193 100644
38+
--- a/tests/cli/test_unpack.py
39+
+++ b/tests/cli/test_unpack.py
40+
@@ -34,3 +34,26 @@ def test_unpack_executable_bit(tmp_path):
41+
unpack(str(wheel_path), str(tmp_path))
42+
assert not script_path.is_dir()
43+
assert stat.S_IMODE(script_path.stat().st_mode) == 0o755
44+
+
45+
+
46+
+@pytest.mark.skipif(
47+
+ platform.system() == "Windows", reason="Windows does not support chmod()"
48+
+)
49+
+def test_chmod_outside_unpack_tree(tmp_path_factory: TempPathFactory) -> None:
50+
+ wheel_path = tmp_path_factory.mktemp("build") / "test-1.0-py3-none-any.whl"
51+
+ with WheelFile(wheel_path, "w") as wf:
52+
+ wf.writestr(
53+
+ "test-1.0.dist-info/METADATA",
54+
+ "Metadata-Version: 2.4\nName: test\nVersion: 1.0\n",
55+
+ )
56+
+ wf.writestr("../../system-file", b"malicious data")
57+
+
58+
+ extract_root_path = tmp_path_factory.mktemp("extract")
59+
+ system_file = extract_root_path / "system-file"
60+
+ extract_path = extract_root_path / "subdir"
61+
+ system_file.write_bytes(b"important data")
62+
+ system_file.chmod(0o755)
63+
+ unpack(str(wheel_path), str(extract_path))
64+
+
65+
+ assert system_file.read_bytes() == b"important data"
66+
+ assert stat.S_IMODE(system_file.stat().st_mode) == 0o755
67+
--
68+
2.45.4
69+

SPECS/python-wheel/python-wheel.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
Summary: Built-package format for Python
55
Name: python-%{pypi_name}
66
Version: 0.43.0
7-
Release: 1%{?dist}
7+
Release: 2%{?dist}
88
License: MIT
99
Vendor: Microsoft Corporation
1010
Distribution: Azure Linux
1111
URL: https://github.com/pypa/wheel
1212
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
13+
Patch0: CVE-2026-24049.patch
1314
%global pypi_name wheel
1415
%global python_wheel_name %{pypi_name}-%{version}-py3-none-any.whl
1516
%global python_wheeldir %{_datadir}/python-wheels
@@ -115,6 +116,9 @@ pip3 install iniconfig
115116
%endif
116117

117118
%changelog
119+
* Thu Apr 02 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 0.43.0-2
120+
- Patch for CVE-2026-24049
121+
118122
* Fri May 10 2024 Betty Lakes <bettylakes@microsoft.com> - 0.43.0-1
119123
- Updated to 0.43.0
120124

cgmanifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4730,8 +4730,8 @@
47304730
"type": "other",
47314731
"other": {
47324732
"name": "golang",
4733-
"version": "1.26.1",
4734-
"downloadUrl": "https://github.com/microsoft/go/releases/download/v1.26.1-1/go1.26.1-20260306.1.src.tar.gz"
4733+
"version": "1.26.2",
4734+
"downloadUrl": "https://github.com/microsoft/go/releases/download/v1.26.2-1/go1.26.2-20260407.2.src.tar.gz"
47354735
}
47364736
}
47374737
},
@@ -4740,8 +4740,8 @@
47404740
"type": "other",
47414741
"other": {
47424742
"name": "golang",
4743-
"version": "1.25.8",
4744-
"downloadUrl": "https://github.com/microsoft/go/releases/download/v1.25.8-1/go1.25.8-20260306.2.src.tar.gz"
4743+
"version": "1.25.9",
4744+
"downloadUrl": "https://github.com/microsoft/go/releases/download/v1.25.9-1/go1.25.9-20260407.1.src.tar.gz"
47454745
}
47464746
}
47474747
},
@@ -14542,8 +14542,8 @@
1454214542
"type": "other",
1454314543
"other": {
1454414544
"name": "nodejs24",
14545-
"version": "24.13.0",
14546-
"downloadUrl": "https://nodejs.org/download/release/v24.13.0/node-v24.13.0.tar.xz"
14545+
"version": "24.14.1",
14546+
"downloadUrl": "https://nodejs.org/download/release/v24.14.1/node-v24.14.1.tar.xz"
1454714547
}
1454814548
}
1454914549
},

0 commit comments

Comments
 (0)