diff --git a/.trivyignore b/.trivyignore index f0c72e9b..02707f39 100644 --- a/.trivyignore +++ b/.trivyignore @@ -60,3 +60,53 @@ CVE-2024-52979 # [Medium] [False positive] The installed version's corresponding commit already includes the fix CVE-2024-6763 +# ============================================================ +# pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.18.8 +# ============================================================ + +# [Medium] Ignored properties can be unexpectedly modified. Fix versions 2.18.9 / 2.21.5 not yet released to Maven Central as of 2026-07-02; only 3.1.4 (major bump, incompatible with Nexus) has the fix. Remove this entry after upgrading to jackson-databind >= 2.18.9. +CVE-2026-54515 + +# ============================================================ +# pkg:maven/org.apache.shiro/shiro-core@1.13.2-alauda +# ============================================================ + +# [Low] Timing-attack brute force. Already backported in the AlaudaDevops/shiro 1.13.x-alauda fork (see Containerfile SHIRO_CORE_NEW_VERSION); Trivy still matches by version string < 2.1.0. +CVE-2026-23901 + +# [High] LDAP DN injection. Backported in AlaudaDevops/shiro 1.13.2-alauda fork +# (Rdn.escapeValue on principal in DefaultLdapRealm + ActiveDirectoryRealm). +# Upstream fix is only in 2.2.1+, which is unusable here due to OSGi range [1.13, 2.0). +CVE-2026-49268 + +# [Medium] Session fixation. Backported in AlaudaDevops/shiro 1.13.2-alauda fork +# (DefaultSecurityManager destroys existing session on successful login). +# Upstream fix only in 2.2.0+. +CVE-2026-43827 + +# ============================================================ +# pkg:maven/org.apache.shiro/shiro-web@1.13.2-alauda +# ============================================================ + +# [Medium] Insecure session/rememberMe cookies over HTTPS. Backported in +# AlaudaDevops/shiro 1.13.2-alauda fork (default Secure flag on DefaultWebSessionManager +# and CookieRememberMeManager; SimpleCookie only emits Secure when request.isSecure()). +# Upstream fix only in 2.2.0+. +CVE-2026-43828 + +# ============================================================ +# pkg:maven/org.jline/jline-remote-telnet@3.21.0-alauda +# ============================================================ + +# [High] Telnet NAWS DoS. Backported in AlaudaDevops/jline3 3.21.0-alauda fork +# (LARGEST_BELIEVABLE_WIDTH/HEIGHT=500 upper bound in setTerminalGeometry). +# Upstream fix only in 4.2.1+, unusable here due to Karaf OSGi range [3.21, 4). +# Nexus doesn't enable Karaf telnet — additional defense in depth. +CVE-2026-56741 +GHSA-2r2c-cx56-8933 + +# [High] Telnet NEW-ENVIRON heap DoS. Backported in AlaudaDevops/jline3 3.21.0-alauda +# fork (NE_VAR_COUNT_MAX=100 guard in readNEVariables). Upstream fix only in 4.2.1+. +CVE-2026-56740 +GHSA-47qp-hqvx-6r3f + diff --git a/chart/values.yaml b/chart/values.yaml index e84219b9..7a87874f 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -7,7 +7,7 @@ global: images: nexus: repository: devops/sonatype-nexus3 - tag: v3.76.0-gbe29706 + tag: v3.76.0-ga495c68 support_arm: true thirdparty: true busybox: diff --git a/image/Containerfile.alpine.java17 b/image/Containerfile.alpine.java17 index 36e15fed..19357219 100644 --- a/image/Containerfile.alpine.java17 +++ b/image/Containerfile.alpine.java17 @@ -132,17 +132,38 @@ ARG JETTY_NEW_VERSION=9.4.58.v20250814 # Backported Jetty HTTP parser fix for CVE-2026-2332 (from jetty issue #14495/#14496) ARG JETTY_HTTP_PATCHED_VERSION=9.4.60.v20260421 -# Jackson Core library new version +# Jackson family versions (kept aligned to satisfy OSGi wiring: jackson-databind +# imports jackson-annotations/core with [2.18, 3.0) range). # renovate: datasource=maven depName=jackson-core lookupName=com.fasterxml.jackson.core:jackson-core -ARG JACKSON_CORE_NEW_VERSION=2.18.6 +ARG JACKSON_CORE_NEW_VERSION=2.18.8 + +# Jackson Databind library new version (CVE-2026-54512/54513 HIGH, CVE-2026-54514/54515 MEDIUM) +# renovate: datasource=maven depName=jackson-databind lookupName=com.fasterxml.jackson.core:jackson-databind +ARG JACKSON_DATABIND_NEW_VERSION=2.18.8 + +# Jackson Annotations must be >= 2.18.0 (jackson-databind 2.18.x OSGi Import-Package requirement) +# renovate: datasource=maven depName=jackson-annotations lookupName=com.fasterxml.jackson.core:jackson-annotations +ARG JACKSON_ANNOTATIONS_NEW_VERSION=2.18.8 + +# PostgreSQL JDBC driver new version (CVE-2026-42198) +# renovate: datasource=maven depName=postgresql lookupName=org.postgresql:postgresql +ARG POSTGRESQL_NEW_VERSION=42.7.11 # Plexus Utils library new version # renovate: datasource=maven depName=plexus-utils lookupName=org.codehaus.plexus:plexus-utils ARG PLEXUS_UTILS_NEW_VERSION=3.6.1 -# Apache Shiro Core: patched fork with CVE-2026-23901 backport (timing-safe auth) -# 2.x breaks OSGi (shiro-web requires 1.x range), so we maintain a 1.13.x fork. -ARG SHIRO_CORE_NEW_VERSION=1.13.1-alauda +# Apache Shiro Core / Web: AlaudaDevops fork backporting the following CVEs to 1.13.x: +# CVE-2026-23901 (timing-safe auth), CVE-2026-49268 (LDAP DN injection), +# CVE-2026-43827 (session fixation), CVE-2026-43828 (secure cookie default). +# Kept on 1.x because Nexus's Karaf requires OSGi range [1.13, 2.0). +ARG SHIRO_CORE_NEW_VERSION=1.13.2-alauda +ARG SHIRO_WEB_NEW_VERSION=1.13.2-alauda + +# JLine bundle: AlaudaDevops fork of 3.21.0 with CVE-2026-56740 / CVE-2026-56741 Telnet +# DoS backports. Karaf shell.core imports jline packages with OSGi range [3.21, 4), +# so upstream's 4.2.1 fix isn't usable — we ship the patch as a 3.21.0 point release. +ARG JLINE_NEW_VERSION=3.21.0-alauda # Keycloak SAML adapter core library new version # renovate: datasource=maven depName=keycloak-saml-adapter-core lookupName=org.keycloak:keycloak-saml-adapter-core @@ -166,9 +187,14 @@ RUN $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/cyclonedx/cyclonedx-core-java && rm -rf $NEXUS_HOME/lib/bcpkix-jdk15to18-1.78.1.jar $NEXUS_HOME/lib/bcpg-jdk15to18-1.78.1.jar $NEXUS_HOME/lib/bcprov-jdk15to18-1.78.1.jar \ && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME io/grpc/grpc-netty-shaded 1.62.2 ${GRPC_NETTY_SHADED_NEW_VERSION} \ && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME com/fasterxml/jackson/core/jackson-core 2.17.0 ${JACKSON_CORE_NEW_VERSION} \ + && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME com/fasterxml/jackson/core/jackson-databind 2.17.0 ${JACKSON_DATABIND_NEW_VERSION} \ + && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME com/fasterxml/jackson/core/jackson-annotations 2.17.0 ${JACKSON_ANNOTATIONS_NEW_VERSION} \ + && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/postgresql/postgresql 42.7.2 ${POSTGRESQL_NEW_VERSION} \ && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/codehaus/plexus/plexus-utils 3.5.1 ${PLEXUS_UTILS_NEW_VERSION} \ && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/keycloak/keycloak-saml-adapter-core 18.0.2 ${KEYCLOAK_SAML_ADAPTER_CORE_NEW_VERSION} \ - && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/apache/shiro/shiro-core 1.13.0 ${SHIRO_CORE_NEW_VERSION} https://github.com/AlaudaDevops/shiro/releases/download/v${SHIRO_CORE_NEW_VERSION}/shiro-core-${SHIRO_CORE_NEW_VERSION}.jar + && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/apache/shiro/shiro-core 1.13.0 ${SHIRO_CORE_NEW_VERSION} https://github.com/AlaudaDevops/shiro/releases/download/v${SHIRO_CORE_NEW_VERSION}/shiro-core-${SHIRO_CORE_NEW_VERSION}.jar \ + && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/apache/shiro/shiro-web 1.13.0 ${SHIRO_WEB_NEW_VERSION} https://github.com/AlaudaDevops/shiro/releases/download/v${SHIRO_WEB_NEW_VERSION}/shiro-web-${SHIRO_WEB_NEW_VERSION}.jar \ + && $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/jline/jline 3.21.0 ${JLINE_NEW_VERSION} https://github.com/AlaudaDevops/jline3/releases/download/jline-${JLINE_NEW_VERSION}/jline-${JLINE_NEW_VERSION}.jar # update jetty RUN $NEXUS_HOME/scripts/replace-jetty.sh $NEXUS_HOME 9.4.56.v20240826 ${JETTY_NEW_VERSION} RUN $NEXUS_HOME/scripts/replace.sh $NEXUS_HOME org/eclipse/jetty/jetty-http ${JETTY_NEW_VERSION} ${JETTY_HTTP_PATCHED_VERSION} https://github.com/AlaudaDevops/jetty.project/releases/download/v${JETTY_HTTP_PATCHED_VERSION}/jetty-http-${JETTY_HTTP_PATCHED_VERSION}.jar diff --git a/testing/Containerfile.base b/testing/Containerfile.base index e083fe57..1cf97d92 100644 --- a/testing/Containerfile.base +++ b/testing/Containerfile.base @@ -43,7 +43,7 @@ RUN set -eux; \ export ARCH_ALIAS="x86_64"; \ fi; \ mkdir -p /tools/bin/maven; \ - curl -fsSLO https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz; \ + curl -fsSLO https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz; \ tar xzvf apache-maven-${MAVEN_VERSION}-bin.tar.gz --strip 1 -C ./bin/maven; \ curl -sfL https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_${ARCH} -o ./bin/yq; \ curl -sfL https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl -o ./bin/kubectl; \