Skip to content

Commit 1772ea7

Browse files
Universal: Update "commons-io" due to CVE-2021-29425 (#274)
1 parent b7d6bdd commit 1772ea7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/universal/.devcontainer/local-features/setup-user/install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ curl -sSL https://github.com/jhy/jsoup/archive/refs/tags/jsoup-1.15.3.tar.gz | t
3838
jar cf ${GRADLE_PATH}/jsoup-1.15.3.jar /tmp/jsoup-jsoup-1.15.3
3939
rm -rf /tmp/jsoup-jsoup-1.15.3
4040

41+
# Temporary: Due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29425
42+
MAVEN_PATH=$(cd /usr/local/sdkman/candidates/maven/3*/lib/ && pwd)
43+
rm -f ${MAVEN_PATH}/commons-io-*
44+
curl -sSL https://github.com/apache/commons-io/archive/refs/tags/commons-io-2.11.0-RC1.tar.gz | tar -xzC /tmp 2>&1
45+
jar cf ${MAVEN_PATH}/commons-io-2.11.jar /tmp/commons-io-commons-io-2.11.0-RC1
46+
rm -rf /tmp/commons-io-commons-io-2.11.0-RC1
47+
4148
# Temporary: Upgrade NPM packages due to mentioned CVEs.
4249
# decode-uri-component: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-38900
4350
# ansi-regex: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3807

src/universal/test-project/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ GRADLE_PATH=$(cd /usr/local/sdkman/candidates/gradle/7*/lib/plugins && pwd)
175175
check "aws-java-sdk-s3-plugin" bash -c "ls ${GRADLE_PATH} | grep aws-java-sdk-s3-1.12.363.jar"
176176
check "jsoup-plugin" bash -c "ls ${GRADLE_PATH} | grep jsoup-1.15.3.jar"
177177

178+
MAVEN_PATH=$(cd /usr/local/sdkman/candidates/maven/3*/lib/ && pwd)
179+
check "commons-io-lib" bash -c "ls ${MAVEN_PATH} | grep commons-io-2.11.jar"
180+
178181
cd /usr/local/share/nvm/versions/node/v14*/lib/node_modules/npm
179182

180183
decodeVersion=$(npm ls --depth 1 --json | jq -r '.dependencies."decode-uri-component".version')

0 commit comments

Comments
 (0)