Skip to content

Commit e2cfdf8

Browse files
committed
RUN-3601: CVE-2025-48924 Fix
Mitigates CVE-2025-48924 by upgrading commons-lang to commons-lang3 3.18.0. - Added commons-lang3 3.18.0 dependency to libs.versions.toml - Configured dependency substitution to replace vulnerable commons-lang with secure commons-lang3 - Ensures all transitive dependencies use the secure version
1 parent efb8542 commit e2cfdf8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ dependencies {
6565
implementation libs.bundles.awsSdk
6666
implementation libs.jacksonDatabind
6767
implementation libs.commonsBeanutils
68+
69+
// Add secure commons-lang3 to provide alternative to vulnerable commons-lang 2.6
70+
implementation(libs.commonsLang3)
6871

6972
pluginLibs(libs.awsSdkEc2) {
7073
exclude group: "org.apache.httpcomponents", module: "httpclient"
@@ -80,6 +83,15 @@ dependencies {
8083
testImplementation libs.bundles.testLibs
8184
}
8285

86+
configurations.all {
87+
resolutionStrategy {
88+
// Replace vulnerable commons-lang with secure commons-lang3
89+
dependencySubstitution {
90+
substitute module('commons-lang:commons-lang') using module("org.apache.commons:commons-lang3:${libs.versions.commonsLang3.get()}")
91+
}
92+
}
93+
}
94+
8395
// task to copy plugin libs to output/lib dir
8496
task copyToLib(type: Copy) {
8597
into "$buildDir/output/lib"

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ objenesis = "3.4"
1010
rundeckCore = "5.14.0-rc1-20250722"
1111
slf4j = "1.7.36"
1212
spock = "2.3-groovy-3.0"
13+
# Security overrides for transitive dependencies
14+
commonsLang3 = "3.18.0"
1315

1416
[libraries]
1517
slf4jApi = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" }
@@ -23,6 +25,7 @@ groovyAll = { group = "org.codehaus.groovy", name = "groovy-all", version.ref =
2325
spockCore = { group = "org.spockframework", name = "spock-core", version.ref = "spock" }
2426
cglibNodep = { group = "cglib", name = "cglib-nodep", version.ref = "cglib" }
2527
objenesis = { group = "org.objenesis", name = "objenesis", version.ref = "objenesis" }
28+
commonsLang3 = { module = "org.apache.commons:commons-lang3", version.ref = "commonsLang3" }
2629

2730
[bundles]
2831
awsSdk = ["awsSdkCore", "awsSdkSts"]

0 commit comments

Comments
 (0)