From 06c79b5b8aa164e6182f041b1bac3c883b90e01d Mon Sep 17 00:00:00 2001
From: Will Mooreston <97046018+labkey-willm@users.noreply.github.com>
Date: Fri, 11 Oct 2024 13:36:22 -0700
Subject: [PATCH] 24.7 CVE fixes for lucene, glassfish, batik/fop (#904)
* suppress lucene for CVE-2024-45772, fixed in develop
* suppress glassfish false positives
* bump apache batik and fop for CVE-2024-28168
---
dependencyCheckSuppression.xml | 123 +++++++++++++++++++++++++++++++++
gradle.properties | 4 +-
2 files changed, 125 insertions(+), 2 deletions(-)
diff --git a/dependencyCheckSuppression.xml b/dependencyCheckSuppression.xml
index 1bcc0d5a8b..67b14dd54a 100644
--- a/dependencyCheckSuppression.xml
+++ b/dependencyCheckSuppression.xml
@@ -246,5 +246,128 @@
CVE-2005-1260
+
+
+
+ ^pkg:maven/org\.apache\.lucene/lucene-analysis-common@.*$
+ CVE-2024-45772
+
+
+
+
+ ^pkg:maven/org\.apache\.lucene/lucene-backward-codecs@.*$
+ CVE-2024-45772
+
+
+
+
+ ^pkg:maven/org\.apache\.lucene/lucene-core@.*$
+ CVE-2024-45772
+
+
+
+
+ ^pkg:maven/org\.apache\.lucene/lucene-queries@.*$
+ CVE-2024-45772
+
+
+
+
+ ^pkg:maven/org\.apache\.lucene/lucene-queryparser@.*$
+ CVE-2024-45772
+
+
+
+
+ ^pkg:maven/org\.apache\.lucene/lucene-sandbox@.*$
+ CVE-2024-45772
+
+
+
+
+
+
+ ^pkg:maven/org\.glassfish\.jaxb/jaxb-core@.*$
+ CVE-2024-9329
+
+
+
+
+ ^pkg:maven/org\.glassfish\.jaxb/jaxb-core@.*$
+ CVE-2024-9329
+
+
+
+
+ ^pkg:maven/org\.glassfish\.jaxb/jaxb-core@.*$
+ CVE-2024-9329
+
+
+
+
+ ^pkg:maven/org\.glassfish\.jaxb/jaxb-runtime@.*$
+ CVE-2024-9329
+
+
+
+
+ ^pkg:maven/org\.glassfish\.jaxb/jaxb-runtime@.*$
+ CVE-2024-9329
+
+
+
+
+ ^pkg:maven/org\.glassfish\.hk2/osgi-resource-locator@.*$
+ CVE-2024-9329
+
+
+
+
+ ^pkg:maven/org\.glassfish\.jaxb/txw2@.*$
+ CVE-2024-9329
+
+
+
+
+ ^pkg:maven/org\.glassfish\.jaxb/txw2@.*$
+ CVE-2024-9329
+
+
+
diff --git a/gradle.properties b/gradle.properties
index a9c5cb54f2..3b6b9786a6 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -111,7 +111,7 @@ apacheTomcatVersion=10.1.30
asmVersion=9.7
# Apache Batik -- Batik version needs to be compatible with Apache FOP, but we need to pull in batik-codec separately
-batikVersion=1.17
+batikVersion=1.18
# sync with Tika version (or later)
bouncycastlePgpVersion=1.78
@@ -152,7 +152,7 @@ eigenbaseXomVersion=1.3.7
flyingsaucerVersion=R8
# Apache FOP -- linked to Apache Batik version above
-fopVersion=2.9
+fopVersion=2.10
# Force latest for consistency
googleAutoValueAnnotationsVersion=1.10.4