From e153fd3a89afdd4e257a659df2d4cd57208d35e2 Mon Sep 17 00:00:00 2001 From: Kremi Nenkova Date: Wed, 11 Oct 2023 10:58:04 +0100 Subject: [PATCH 1/4] Tidy up suppressions and suppress CVE-2023-4586 (all netty versions are vulnerable atm) --- config/owasp/suppressions.xml | 70 ++--------------------------------- 1 file changed, 4 insertions(+), 66 deletions(-) diff --git a/config/owasp/suppressions.xml b/config/owasp/suppressions.xml index bfa913fb7..8a55a03e3 100644 --- a/config/owasp/suppressions.xml +++ b/config/owasp/suppressions.xml @@ -1,77 +1,15 @@ - - - ^org\.springframework\.security:spring-security-crypto:5.[0-9].[0-9].RELEASE - cpe:/a:pivotal_software:spring_security - CVE-2018-1258 - - - - CVE-2020-10663 - CVE-2020-7712 - - - - ^org\.springframework\.boot:spring-boot-starter-oauth2-resource-server:2.7.[0-9] - CVE-2018-1258 - CVE-2021-22112 - CVE-2022-22976 - CVE-2022-22978 - - - - ^.*spring-.*$ - CVE-2016-1000027 - CVE-2022-22976 - CVE-2022-22978 - CVE-2022-31690 - CVE-2022-31692 - - - ^.*tomcat-.*$ - CVE-2022-34305 - ^.*jackson-databind.*$ - CVE-2022-42003 CVE-2023-35116 - - - ^pkg:maven/org\.latencyutils/LatencyUtils@.*$ - CVE-2021-4277 - - - - ^pkg:maven/org\.yaml/snakeyaml@.*$ - CVE-2021-4235 - CVE-2022-3064 - - - ^pkg:maven/commons\-fileupload/commons\-fileupload@.*$ - CVE-2021-37533 - - - ^pkg:maven/commons\-io/commons\-io@.*$ - CVE-2021-37533 - - - ^pkg:maven/org\.postgresql/postgresql@.*$ - CVE-2022-41946 - - - ^.*commons-fileupload.*$ - CVE-2023-24998 - ^.*org\.json.*$ CVE-2022-45688 + + ^.*netty.*$ + CVE-2023-4586 + From a977df42a340be2a7ff68bc889640dca13468eec Mon Sep 17 00:00:00 2001 From: Kremi Nenkova Date: Wed, 11 Oct 2023 11:05:54 +0100 Subject: [PATCH 2/4] Suppress CVE-2023-4586 --- config/owasp/suppressions.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/owasp/suppressions.xml b/config/owasp/suppressions.xml index 8a55a03e3..7ad50e43b 100644 --- a/config/owasp/suppressions.xml +++ b/config/owasp/suppressions.xml @@ -9,7 +9,7 @@ CVE-2022-45688 - ^.*netty.*$ + ^pkg:maven/io\.netty/netty.*$ CVE-2023-4586 From 48bb0c322b1278b57ed13d834eeae37538edee76 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 10:11:47 +0000 Subject: [PATCH 3/4] Update dependency com.google.guava:guava to v32.1.3-jre --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c5798eca7..a374bfcb0 100644 --- a/build.gradle +++ b/build.gradle @@ -171,7 +171,7 @@ dependencyManagement { dependencies { dependency group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.70' // CVE-2018-10237 - Unbounded memory allocation - dependencySet(group: 'com.google.guava', version: '32.1.2-jre') { + dependencySet(group: 'com.google.guava', version: '32.1.3-jre') { entry 'guava' } } From b9dcc80d3255a175ee906cdcc23ac007cf9eb22f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 10:29:25 +0000 Subject: [PATCH 4/4] Update dependency com.github.hmcts:service-auth-provider-java-client to v5.1.1 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a374bfcb0..317205805 100644 --- a/build.gradle +++ b/build.gradle @@ -209,7 +209,7 @@ dependencies { implementation 'com.google.guava:guava' implementation 'io.opentelemetry:opentelemetry-api:1.31.0' implementation group: 'org.apache.activemq', name: 'artemis-jms-server', version: '2.31.0' - implementation group: 'com.github.hmcts', name: 'service-auth-provider-java-client', version: '5.1.0' + implementation group: 'com.github.hmcts', name: 'service-auth-provider-java-client', version: '5.1.1' // CVE fix implementation 'org.yaml:snakeyaml:2.2'