Skip to content

Commit

Permalink
[CVE] Upgrade dependencies to mitigate CVEs (opensearch-project#657)
Browse files Browse the repository at this point in the history
This PR upgrade the following dependencies to fix CVEs.

- commons-codec:1.12 (->1.13) apache/commons-codec@48b6157
- ant:1.10.8 (->1.10.9) https://ant.apache.org/security.html
- jackson-databind:2.10.4 (->2.11.0) FasterXML/jackson-databind#2589
- jackson-dataformat-cbor:2.10.4 (->2.11.0) https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28491
- apache-httpclient:4.5.10 (->4.5.13) https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-13956
- checkstyle:8.20 (->8.29) https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-10782
- junit:4.12 (->4.13.1) GHSA-269g-pwp5-87pp
- netty:4.1.49.Final (->4.1.59) GHSA-5mcr-gq6c-3hq2

Signed-off-by: Rabi Panda <[email protected]>
  • Loading branch information
adnapibar authored May 18, 2021
1 parent 6732239 commit 50abf6d
Show file tree
Hide file tree
Showing 87 changed files with 56 additions and 56 deletions.
4 changes: 2 additions & 2 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ dependencies {

api localGroovy()

api 'commons-codec:commons-codec:1.12'
api 'commons-codec:commons-codec:1.13'
api 'org.apache.commons:commons-compress:1.19'
api 'org.apache.ant:ant:1.10.8'
api 'org.apache.ant:ant:1.10.9'
api 'com.netflix.nebula:gradle-extra-configurations-plugin:3.0.3'
api 'com.netflix.nebula:nebula-publishing-plugin:4.4.4'
api 'com.netflix.nebula:gradle-info-plugin:7.1.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class OpenSearchTestBasePluginFuncTest extends AbstractGradleFuncTest {
}
dependencies {
testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13.1'
}
tasks.named('test').configure {
Expand Down
12 changes: 6 additions & 6 deletions buildSrc/src/main/resources/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
<property name="max" value="76"/>
</module>

<module name="TreeWalker">
<!-- Its our official line length! See checkstyle_suppressions.xml for the files that don't pass this. For now we
suppress the check there but enforce it everywhere else. This prevents the list from getting longer even if it is
unfair. -->
<module name="LineLength">
<!-- Its our official line length! See checkstyle_suppressions.xml for the files that don't pass this. For now we
suppress the check there but enforce it everywhere else. This prevents the list from getting longer even if it is
unfair. -->
<module name="LineLength">
<property name="max" value="140"/>
<property name="ignorePattern" value="^ *\* *https?://[^ ]+$"/>
</module>
</module>

<module name="TreeWalker">
<module name="AvoidStarImport" />

<!-- Unused imports are forbidden -->
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/testKit/testingConventions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ allprojects {
jcenter()
}
dependencies {
testImplementation "junit:junit:4.12"
testImplementation "junit:junit:4.13.1"
}

ext.licenseFile = file("$buildDir/dummy/license")
Expand Down
10 changes: 5 additions & 5 deletions buildSrc/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ lucene = 8.8.2
bundled_jdk_vendor = adoptopenjdk
bundled_jdk = 15.0.1+9

checkstyle = 8.20
checkstyle = 8.29

# optional dependencies
spatial4j = 0.7
jts = 1.15.0
jackson = 2.10.4
jackson = 2.11.4
snakeyaml = 1.26
icu4j = 62.1
supercsv = 2.4.0
Expand All @@ -20,7 +20,7 @@ slf4j = 1.6.2
# when updating the JNA version, also update the version in buildSrc/build.gradle
jna = 5.5.0

netty = 4.1.49.Final
netty = 4.1.59.Final
joda = 2.10.4

# when updating this version, you need to ensure compatibility with:
Expand All @@ -31,11 +31,11 @@ bouncycastle=1.64
# test dependencies
randomizedrunner = 2.7.1
junit = 4.12
httpclient = 4.5.10
httpclient = 4.5.13
httpcore = 4.4.12
httpasyncclient = 4.1.4
commonslogging = 1.1.3
commonscodec = 1.11
commonscodec = 1.13
hamcrest = 2.1
securemock = 1.2
mocksocket = 1.2
Expand Down
1 change: 0 additions & 1 deletion client/rest/licenses/commons-codec-1.11.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions client/rest/licenses/commons-codec-1.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c
1 change: 0 additions & 1 deletion client/rest/licenses/httpclient-4.5.10.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions client/rest/licenses/httpclient-4.5.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada
1 change: 0 additions & 1 deletion client/sniffer/licenses/commons-codec-1.11.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions client/sniffer/licenses/commons-codec-1.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c
1 change: 0 additions & 1 deletion client/sniffer/licenses/httpclient-4.5.10.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions client/sniffer/licenses/httpclient-4.5.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada
1 change: 0 additions & 1 deletion client/sniffer/licenses/jackson-core-2.10.4.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions client/sniffer/licenses/jackson-core-2.11.4.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
593f7b18bab07a76767f181e2a2336135ce82cc4
1 change: 0 additions & 1 deletion libs/x-content/licenses/jackson-core-2.10.4.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions libs/x-content/licenses/jackson-core-2.11.4.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
593f7b18bab07a76767f181e2a2336135ce82cc4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
67fa6a00bdc31029bf841ee97d993ef2bb530aa0

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10c1faac0b0bd8545eff02599b48a149202de066

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ba01014ab0228449be401975b1a7af2f3cdaf1d7

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2c3f5c079330f3a01726686a078979420f547ae4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5d9f3d441f99d721b957e3497f0a6465c764fad4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a1f281008d7e9574c14d386b39b3639a240eb0d1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5e563309b99cf55bdbecc4dab7c417a0167c31aa

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
766327d675678686a05faa446c4413d8ccb79b5c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e8800b0c50b6743ec1c5a3713816ce58910a703a

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
302b4c8ca800aeddcf94401f2403114c8f5db5a5

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26bc136952a9f7a994dd7162f481c860275948de

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
864d20f35ce909e6a7462095cb8f91ee94d1cd4c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada
1 change: 0 additions & 1 deletion plugins/discovery-ec2/licenses/commons-codec-1.11.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/discovery-ec2/licenses/commons-codec-1.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c
1 change: 0 additions & 1 deletion plugins/discovery-ec2/licenses/httpclient-4.5.10.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/discovery-ec2/licenses/httpclient-4.5.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2c3f5c079330f3a01726686a078979420f547ae4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5d9f3d441f99d721b957e3497f0a6465c764fad4
1 change: 0 additions & 1 deletion plugins/discovery-gce/licenses/commons-codec-1.11.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/discovery-gce/licenses/commons-codec-1.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c
1 change: 0 additions & 1 deletion plugins/discovery-gce/licenses/httpclient-4.5.10.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/discovery-gce/licenses/httpclient-4.5.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c
1 change: 0 additions & 1 deletion plugins/repository-s3/licenses/commons-codec-1.11.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/repository-s3/licenses/commons-codec-1.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3f18e1aa31031d89db6f01ba05d501258ce69d2c
1 change: 0 additions & 1 deletion plugins/repository-s3/licenses/httpclient-4.5.10.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/repository-s3/licenses/httpclient-4.5.13.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2c3f5c079330f3a01726686a078979420f547ae4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5d9f3d441f99d721b957e3497f0a6465c764fad4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a1f281008d7e9574c14d386b39b3639a240eb0d1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5e563309b99cf55bdbecc4dab7c417a0167c31aa

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
766327d675678686a05faa446c4413d8ccb79b5c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e8800b0c50b6743ec1c5a3713816ce58910a703a

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
302b4c8ca800aeddcf94401f2403114c8f5db5a5

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26bc136952a9f7a994dd7162f481c860275948de

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
864d20f35ce909e6a7462095cb8f91ee94d1cd4c

0 comments on commit 50abf6d

Please sign in to comment.