degant commented on PR #3299: URL: https://github.com/apache/hadoop/pull/3299#issuecomment-1472825586
@steveloughran as pointed out by @sangys there are still 3 jars as part of hadoop 3.3.4 that include json-smart 1.3.2. As a result hadoop 3.3.4 continues to get flagged for [CVE-2021-31684](https://github.com/advisories/GHSA-fg2v-w576-w4v3) I used the below to check all versions of json-smart inside all packages: ``` jar_files=$(find . -iname "*.jar" | xargs -I '{}' sh -c "jar tf '{}' | grep -e 'json-smart' -q --label='{}' && echo '{}' ") echo "$jar_files" | xargs -I '{}' sh -c "bsdtar -xO -f '{}' 'META-INF/maven/net.minidev/json-smart/pom.properties' | grep -i version && echo '{}'" ``` which returns > version=1.3.2 > ./share/hadoop/client/hadoop-client-runtime-3.3.4.jar > version=1.3.2 > ./share/hadoop/hdfs/lib/nimbus-jose-jwt-9.8.1.jar > version=2.4.7 > ./share/hadoop/hdfs/lib/json-smart-2.4.7.jar > version=1.3.2 > ./share/hadoop/common/lib/nimbus-jose-jwt-9.8.1.jar > version=2.4.7 > ./share/hadoop/common/lib/json-smart-2.4.7.jar hadoop-client-runtime-3.3.4 and nimbus-jose-jwt-9.8.1 both include the shaded json-smart 1.3.2 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
