Skip to content

Commit a25f92c

Browse files
[AUTO-CHERRYPICK] [Medium] Patch CVE-2020-8565 to fix local-path-provisioner - branch 3.0-dev (#13038)
Co-authored-by: Archana Shettigar <v-shettigara@microsoft.com>
1 parent c9270e7 commit a25f92c

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 0e2a9c6cdbf88b5f4ec393d9e8794866bd2e7f17 Mon Sep 17 00:00:00 2001
2+
From: archana25-ms <v-shettigara@microsoft.com>
3+
Date: Wed, 12 Feb 2025 09:32:34 +0000
4+
Subject: [PATCH] Address CVE-2020-8565
5+
6+
Source link: https://github.com/kubernetes/kubernetes/pull/95316
7+
8+
---
9+
vendor/k8s.io/client-go/transport/round_trippers.go | 1 +
10+
1 file changed, 1 insertion(+)
11+
12+
diff --git a/vendor/k8s.io/client-go/transport/round_trippers.go b/vendor/k8s.io/client-go/transport/round_trippers.go
13+
index a05208d..f4cfadb 100644
14+
--- a/vendor/k8s.io/client-go/transport/round_trippers.go
15+
+++ b/vendor/k8s.io/client-go/transport/round_trippers.go
16+
@@ -340,6 +340,7 @@ func (r *requestInfo) toCurl() string {
17+
headers := ""
18+
for key, values := range r.RequestHeaders {
19+
for _, value := range values {
20+
+ value = maskValue(key, value)
21+
headers += fmt.Sprintf(` -H %q`, fmt.Sprintf("%s: %s", key, value))
22+
}
23+
}
24+
--
25+
2.45.2
26+

SPECS/local-path-provisioner/local-path-provisioner.spec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Provides a way for the Kubernetes users to utilize the local storage in each node
22
Name: local-path-provisioner
33
Version: 0.0.24
4-
Release: 4%{?dist}
4+
Release: 5%{?dist}
55
License: ASL 2.0
66
URL: https://github.com/rancher/local-path-provisioner
77
Group: Applications/Text
@@ -12,6 +12,7 @@ Source0: https://github.com/rancher/%{name}/archive/refs/tags/v%{version}
1212
Patch0: CVE-2023-45288.patch
1313
Patch1: CVE-2023-39325.patch
1414
Patch2: CVE-2023-44487.patch
15+
Patch3: CVE-2020-8565.patch
1516
BuildRequires: golang
1617

1718
%description
@@ -32,9 +33,13 @@ install local-path-provisioner %{buildroot}%{_bindir}/local-path-provisioner
3233
%{_bindir}/local-path-provisioner
3334

3435
%changelog
36+
* Wed Mar 05 2025 Archana Shettigar <v-shettigara@microsoft.com> - 0.0.24-5
37+
- Address CVE-2020-8565
38+
3539
* Tue Mar 04 2025 corvus-callidus <108946721+corvus-callidus@users.noreply.github.com> - 0.0.24-4
3640
* Address CVE-2023-44487
3741

42+
3843
* Fri Feb 14 2025 Kanishk Bansal <kanbansal@microsoft.com> - 0.0.24-3
3944
- Address CVE-2023-45288, CVE-2023-39325
4045

0 commit comments

Comments
 (0)