You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "degant (via GitHub)" <gi...@apache.org> on 2023/03/16 22:12:29 UTC

[GitHub] [hadoop] degant commented on pull request #3299: HADOOP-17844. Upgrade JSON smart to 2.4.7

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: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org