Skip to content

Commit 63625fc

Browse files
xumiadaall
authored andcommitted
Fix CVE-2017-1000487 security alert (#7173)
#### Why I did it Plexus-utils before 3.0.16 is vulnerable to command injection because it does not correctly process the contents of double quoted strings. #### How I did it Upgrade to 3.0.16
1 parent dfda130 commit 63625fc

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
@@ -26,6 +26,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
2626
# saithrift implementation relies on the bug in union serialization
2727
# (https://jira.apache.org/jira/browse/THRIFT-3650)
2828
patch -p1 < ../patch/0001-Revert-THRIFT-3650-incorrect-union-serialization.patch
29+
patch -p1 < ../patch/0002-cve-2017-1000487.patch
2930
CXXFLAGS="-DFORCE_BOOST_SMART_PTR" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -d -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR)
3031
popd
3132

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)