Skip to content

Commit 561d89d

Browse files
Move dependencyManagement to parent pom to fix CVE-2025-48924 in uber jar (#1294)
## Summary - The `dependencyManagement` overrides for `commons-lang3` and `gson` were only in `jdbc-core/pom.xml`, not inherited by `assembly-uber` - The uber jar was bundling `commons-lang3:3.14.0` (from `commons-configuration2` transitive dep) instead of `3.18.0` - Moved overrides to parent `pom.xml` so all modules resolve safe versions Fixes #1293 ## Test plan - [x] `mvn dependency:tree -pl jdbc-core` shows `commons-lang3:3.18.0` - [x] `mvn dependency:tree -pl assembly-uber` shows `commons-lang3:3.18.0` - [ ] CI unit tests pass NO_CHANGELOG=true Signed-off-by: Oleksandr Shevchenko <oleksandr.shevchenko@datarobot.com> Co-authored-by: Samikshya Chand <148681192+samikshya-db@users.noreply.github.com>
1 parent 04439ee commit 561d89d

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

jdbc-core/pom.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,6 @@
4343
<url>file://${project.build.directory}/local-repo</url>
4444
</repository>
4545
</distributionManagement>
46-
<dependencyManagement>
47-
<!-- Force safe version of commons-lang3 https://nvd.nist.gov/vuln/detail/CVE-2025-48924 -->
48-
<dependencies>
49-
<dependency>
50-
<groupId>org.apache.commons</groupId>
51-
<artifactId>commons-lang3</artifactId>
52-
<version>${commons-lang3.version}</version>
53-
</dependency>
54-
<!-- Force safe version of Gson to fix CVE-2025-53864 -->
55-
<dependency>
56-
<groupId>com.google.code.gson</groupId>
57-
<artifactId>gson</artifactId>
58-
<version>${gson.version}</version>
59-
</dependency>
60-
</dependencies>
61-
</dependencyManagement>
6246
<dependencies>
6347
<dependency>
6448
<groupId>com.databricks</groupId>

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,25 @@
102102
<maven.deploy.skip>true</maven.deploy.skip>
103103
</properties>
104104

105+
<dependencyManagement>
106+
<dependencies>
107+
<!-- Force safe version of commons-lang3 across all modules (including uber jar)
108+
to resolve CVE-2025-48924. Without this, assembly-uber resolves the older
109+
transitive version from commons-configuration2. -->
110+
<dependency>
111+
<groupId>org.apache.commons</groupId>
112+
<artifactId>commons-lang3</artifactId>
113+
<version>${commons-lang3.version}</version>
114+
</dependency>
115+
<!-- Force safe version of Gson across all modules to fix CVE-2025-53864 -->
116+
<dependency>
117+
<groupId>com.google.code.gson</groupId>
118+
<artifactId>gson</artifactId>
119+
<version>${gson.version}</version>
120+
</dependency>
121+
</dependencies>
122+
</dependencyManagement>
123+
105124
<build>
106125
<pluginManagement>
107126
<plugins>

0 commit comments

Comments
 (0)