Skip to content

Commit aa49121

Browse files
authored
Merge pull request #36 from rundeck-plugins/cve-fixes
RUN-3601: CVE-2025-48924 Fix
2 parents d4c8122 + 5516883 commit aa49121

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
@@ -56,10 +56,22 @@ dependencies {
5656
implementation(libs.rundeckCore) {
5757
exclude group: "com.google.guava"
5858
}
59+
60+
// Add secure commons-lang3 to provide alternative to vulnerable commons-lang 2.6
61+
implementation(libs.commonsLang3)
5962

6063
testImplementation libs.bundles.testLibs
6164
}
6265

66+
configurations.all {
67+
resolutionStrategy {
68+
// Replace vulnerable commons-lang with secure commons-lang3
69+
dependencySubstitution {
70+
substitute module('commons-lang:commons-lang') using module("org.apache.commons:commons-lang3:${libs.versions.commonsLang3.get()}")
71+
}
72+
}
73+
}
74+
6375
// In this section you declare where to find the dependencies of your project
6476
repositories {
6577
mavenCentral()

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ groovy = "3.0.24"
44
rundeckCore = "5.14.0-rc1-20250722"
55
nexusPublish = "2.0.0"
66
spock = "2.3-groovy-3.0"
7+
# Security overrides for transitive dependencies
8+
commonsLang3 = "3.18.0"
79

810
[libraries]
911
rundeckCore = { group = "org.rundeck", name = "rundeck-core", version.ref = "rundeckCore" }
1012
groovyAll = { group = "org.codehaus.groovy", name = "groovy-all", version.ref = "groovy" }
1113
spockCore = { group = "org.spockframework", name = "spock-core", version.ref = "spock" }
14+
commonsLang3 = { group = "org.apache.commons", name = "commons-lang3", version.ref = "commonsLang3" }
1215

1316
[bundles]
1417
testLibs = ["groovyAll", "spockCore"]

0 commit comments

Comments
 (0)