Skip to content

Remove avro, hadoop-auth and jersey-json dependencies from hadoop-common to resolve CVE-2019-10202, CVE-2023-1370 and CVE-2022-45685#3911

Merged
hezhangjian merged 3 commits intoapache:masterfrom
hangc0276:chenhang/fix_CVE-2019-10202
Apr 17, 2023
Merged

Remove avro, hadoop-auth and jersey-json dependencies from hadoop-common to resolve CVE-2019-10202, CVE-2023-1370 and CVE-2022-45685#3911
hezhangjian merged 3 commits intoapache:masterfrom
hangc0276:chenhang/fix_CVE-2019-10202

Conversation

@hangc0276
Copy link
Contributor

@hangc0276 hangc0276 commented Apr 11, 2023

Motivation

CVE-2019-10202

After upgrading the Hadoop version to 3.3.5, the CVE-2019-10202 still exists.

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.avro:avro@1.7.7 › org.codehaus.jackson:jackson-mapper-asl@1.9.13

CVE-2023-1370

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.hadoop:hadoop-auth@3.3.5 › net.minidev:json-smart@2.4.7
Fix: No remediation path available.

CVE-2022-45685

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › com.github.pjfanning:jersey-json@1.20 › org.codehaus.jettison:jettison@1.1
Fix: No remediation path available.

After checking the code of package org.apache.distributedlog.fs, those classes only use org.apache.hadoop.conf, org.apache.hadoop.fs and org.apache.hadoop.util packages. They don't use any Avro-related, json-smart and jersey-json dependencies. It is safe to remove the those dependencies to resolve the CVE issue.
https://github.com/apache/bookkeeper/tree/master/stream/distributedlog/io/dlfs/src/main/java/org/apache/distributedlog/fs

Changes

Exclude the Avro dependency from hadoop-common

Copy link
Member

@jiazhai jiazhai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix

@hangc0276 hangc0276 changed the title Remove avro dependency from hadoop-common to resolve CVE-2019-10202 Remove avro, hadoop-auth and jersey-json dependencies from hadoop-common to resolve CVE-2019-10202, CVE-2023-1370 and CVE-2022-45685 Apr 13, 2023
@hezhangjian hezhangjian merged commit 94e15b3 into apache:master Apr 17, 2023
zymap pushed a commit that referenced this pull request Jun 19, 2023
…mon to resolve CVE-2019-10202, CVE-2023-1370 and CVE-2022-45685 (#3911)

### Motivation
#### [CVE-2019-10202](https://www.cve.org/CVERecord?id=CVE-2019-10202)
After upgrading the Hadoop version to 3.3.5, the CVE-2019-10202 still exists.

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.avro:avro@1.7.7 › org.codehaus.jackson:jackson-mapper-asl@1.9.13

#### [CVE-2023-1370](https://www.cve.org/CVERecord?id=CVE-2023-1370)
Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.hadoop:hadoop-auth@3.3.5 › net.minidev:json-smart@2.4.7
Fix: No remediation path available.

#### [CVE-2022-45685](https://www.cve.org/CVERecord?id=CVE-2022-45685)
Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › com.github.pjfanning:jersey-json@1.20 › org.codehaus.jettison:jettison@1.1
Fix: No remediation path available.

After checking the code of package `org.apache.distributedlog.fs`, those classes only use `org.apache.hadoop.conf`, `org.apache.hadoop.fs` and `org.apache.hadoop.util` packages. They don't use any Avro-related, json-smart and jersey-json dependencies. It is safe to remove the those dependencies to resolve the CVE issue.
https://github.com/apache/bookkeeper/tree/master/stream/distributedlog/io/dlfs/src/main/java/org/apache/distributedlog/fs

### Changes
Exclude the Avro dependency from `hadoop-common`

(cherry picked from commit 94e15b3)
hangc0276 added a commit to hangc0276/bookkeeper that referenced this pull request Jun 26, 2023
…mon to resolve CVE-2019-10202, CVE-2023-1370 and CVE-2022-45685 (apache#3911)

After upgrading the Hadoop version to 3.3.5, the CVE-2019-10202 still exists.

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.avro:avro@1.7.7 › org.codehaus.jackson:jackson-mapper-asl@1.9.13

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.hadoop:hadoop-auth@3.3.5 › net.minidev:json-smart@2.4.7
Fix: No remediation path available.

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › com.github.pjfanning:jersey-json@1.20 › org.codehaus.jettison:jettison@1.1
Fix: No remediation path available.

After checking the code of package `org.apache.distributedlog.fs`, those classes only use `org.apache.hadoop.conf`, `org.apache.hadoop.fs` and `org.apache.hadoop.util` packages. They don't use any Avro-related, json-smart and jersey-json dependencies. It is safe to remove the those dependencies to resolve the CVE issue.
https://github.com/apache/bookkeeper/tree/master/stream/distributedlog/io/dlfs/src/main/java/org/apache/distributedlog/fs

Exclude the Avro dependency from `hadoop-common`

(cherry picked from commit 94e15b3)
zymap pushed a commit that referenced this pull request Dec 6, 2023
…mon to resolve CVE-2019-10202, CVE-2023-1370 and CVE-2022-45685 (#3911)

### Motivation
#### [CVE-2019-10202](https://www.cve.org/CVERecord?id=CVE-2019-10202)
After upgrading the Hadoop version to 3.3.5, the CVE-2019-10202 still exists.

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.avro:avro@1.7.7 › org.codehaus.jackson:jackson-mapper-asl@1.9.13

#### [CVE-2023-1370](https://www.cve.org/CVERecord?id=CVE-2023-1370)
Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.hadoop:hadoop-auth@3.3.5 › net.minidev:json-smart@2.4.7
Fix: No remediation path available.

#### [CVE-2022-45685](https://www.cve.org/CVERecord?id=CVE-2022-45685)
Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › com.github.pjfanning:jersey-json@1.20 › org.codehaus.jettison:jettison@1.1
Fix: No remediation path available.

After checking the code of package `org.apache.distributedlog.fs`, those classes only use `org.apache.hadoop.conf`, `org.apache.hadoop.fs` and `org.apache.hadoop.util` packages. They don't use any Avro-related, json-smart and jersey-json dependencies. It is safe to remove the those dependencies to resolve the CVE issue.
https://github.com/apache/bookkeeper/tree/master/stream/distributedlog/io/dlfs/src/main/java/org/apache/distributedlog/fs

### Changes
Exclude the Avro dependency from `hadoop-common`

(cherry picked from commit 94e15b3)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
…mon to resolve CVE-2019-10202, CVE-2023-1370 and CVE-2022-45685 (apache#3911)

### Motivation
#### [CVE-2019-10202](https://www.cve.org/CVERecord?id=CVE-2019-10202)
After upgrading the Hadoop version to 3.3.5, the CVE-2019-10202 still exists.

Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.avro:avro@1.7.7 › org.codehaus.jackson:jackson-mapper-asl@1.9.13

#### [CVE-2023-1370](https://www.cve.org/CVERecord?id=CVE-2023-1370)
Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › org.apache.hadoop:hadoop-auth@3.3.5 › net.minidev:json-smart@2.4.7
Fix: No remediation path available.

#### [CVE-2022-45685](https://www.cve.org/CVERecord?id=CVE-2022-45685)
Detailed paths
Introduced through: org.apache.distributedlog:dlfs@4.16.0-SNAPSHOT › org.apache.hadoop:hadoop-common@3.3.5 › com.github.pjfanning:jersey-json@1.20 › org.codehaus.jettison:jettison@1.1
Fix: No remediation path available.

After checking the code of package `org.apache.distributedlog.fs`, those classes only use `org.apache.hadoop.conf`, `org.apache.hadoop.fs` and `org.apache.hadoop.util` packages. They don't use any Avro-related, json-smart and jersey-json dependencies. It is safe to remove the those dependencies to resolve the CVE issue.
https://github.com/apache/bookkeeper/tree/master/stream/distributedlog/io/dlfs/src/main/java/org/apache/distributedlog/fs

### Changes
Exclude the Avro dependency from `hadoop-common`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments