Skip to content

Commit f1f9fd9

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 f9b9c32 commit f1f9fd9

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ dependencies {
4848
implementation(libs.rundeckCore) {
4949
exclude(group: "com.jcraft")
5050
}
51+
52+
// Add secure commons-lang3 to provide alternative to vulnerable commons-lang 2.6
53+
implementation(libs.commonsLang3)
54+
}
55+
56+
configurations.all {
57+
resolutionStrategy {
58+
// Replace vulnerable commons-lang with secure commons-lang3
59+
dependencySubstitution {
60+
substitute module('commons-lang:commons-lang') using module("org.apache.commons:commons-lang3:${libs.versions.commonsLang3.get()}")
61+
}
62+
}
5163
}
5264

5365
// task to copy plugin libs to output/lib dir

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ nexusPublish = "2.0.0"
33
freemarker = "2.3.34"
44
rundeckCore = "5.14.0-rc1-20250722"
55
axionRelease = "1.18.16"
6+
# Security overrides for transitive dependencies
7+
commonsLang3 = "3.18.0"
68

79
[libraries]
810
freemarker = { group = "org.freemarker", name = "freemarker", version.ref = "freemarker" }
911
rundeckCore = { group = "org.rundeck", name = "rundeck-core", version.ref = "rundeckCore" }
12+
commonsLang3 = { module = "org.apache.commons:commons-lang3", version.ref = "commonsLang3" }
1013

1114
[plugins]
1215
axionRelease = { id = "pl.allegro.tech.build.axion-release", version.ref = "axionRelease" }

0 commit comments

Comments
 (0)