Skip to content

Commit

Permalink
[SPARK-39183][BUILD] Upgrade Apache Xerces Java to 2.12.2
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
Upgrade Apache Xerces Java to 2.12.2

[Release notes](https://xerces.apache.org/xerces2-j/releases.html)

### Why are the changes needed?
[Infinite Loop in Apache Xerces Java](GHSA-h65f-jvqw-m9fj)

There's a vulnerability within the Apache Xerces Java (XercesJ) XML parser when handling specially crafted XML document payloads. This causes, the XercesJ XML parser to wait in an infinite loop, which may sometimes consume system resources for prolonged duration. This vulnerability is present within XercesJ version 2.12.1 and the previous versions.

References
https://nvd.nist.gov/vuln/detail/CVE-2022-23437
https://lists.apache.org/thread/6pjwm10bb69kq955fzr1n0nflnjd27dl
http://www.openwall.com/lists/oss-security/2022/01/24/3
https://www.oracle.com/security-alerts/cpuapr2022.html

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

Closes apache#36544 from bjornjorgensen/Upgrade-xerces-to-2.12.2.

Authored-by: bjornjorgensen <bjornjorgensen@gmail.com>
Signed-off-by: Sean Owen <srowen@gmail.com>
(cherry picked from commit 181436b)
Signed-off-by: Sean Owen <srowen@gmail.com>
  • Loading branch information
bjornjorgensen authored and sunchao committed May 23, 2022
1 parent 79e5242 commit 63b0d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/deps/spark-deps-hadoop-2.7-hive-2.3
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ transaction-api/1.1//transaction-api-1.1.jar
univocity-parsers/2.9.1//univocity-parsers-2.9.1.jar
velocity/1.5//velocity-1.5.jar
xbean-asm9-shaded/4.20//xbean-asm9-shaded-4.20.jar
xercesImpl/2.12.0//xercesImpl-2.12.0.jar
xercesImpl/2.12.2//xercesImpl-2.12.2.jar
xml-apis/1.4.01//xml-apis-1.4.01.jar
xmlenc/0.52//xmlenc-0.52.jar
xz/1.8//xz-1.8.jar
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.0</version>
<version>2.12.2</version>
</dependency>
<dependency>
<groupId>org.apache.avro</groupId>
Expand Down

0 comments on commit 63b0d05

Please sign in to comment.