Skip to content

Commit 29311dc

Browse files
authored
Fix CVE-2017-1000487 security alert (#7173) (#7278)
Plexus-utils before 3.0.16 is vulnerable to command injection because it does not correctly process the contents of double quoted strings.
1 parent 8cfa926 commit 29311dc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/thrift/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
2323
dpkg-source -x thrift_$(THRIFT_VERSION_FULL).dsc
2424
pushd thrift-$(THRIFT_VERSION)
2525
patch -p1 < ../patch/THRIFT-3577-assertion-failed.patch
26+
patch -p1 < ../patch/0002-cve-2017-1000487.patch
2627
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -d -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR)
2728
popd
2829

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 99d698c5247284319248e287bbce2762490fb70b Mon Sep 17 00:00:00 2001
2+
From: xumia <[email protected]>
3+
Date: Mon, 29 Mar 2021 09:57:38 +0000
4+
Subject: [PATCH] Fix CVE-2017-1000487 security alert
5+
6+
---
7+
contrib/thrift-maven-plugin/pom.xml | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/contrib/thrift-maven-plugin/pom.xml b/contrib/thrift-maven-plugin/pom.xml
11+
index 76d0d4f3a..7313b69bf 100644
12+
--- a/contrib/thrift-maven-plugin/pom.xml
13+
+++ b/contrib/thrift-maven-plugin/pom.xml
14+
@@ -75,7 +75,7 @@
15+
<dependency>
16+
<groupId>org.codehaus.plexus</groupId>
17+
<artifactId>plexus-utils</artifactId>
18+
- <version>3.0.14</version>
19+
+ <version>3.0.16</version>
20+
</dependency>
21+
<dependency>
22+
<groupId>org.mockito</groupId>
23+
--
24+
2.17.1
25+

0 commit comments

Comments
 (0)