diff --git a/build.gradle b/build.gradle index e482e6e9..78099713 100644 --- a/build.gradle +++ b/build.gradle @@ -45,6 +45,13 @@ subprojects{ options.addBooleanOption('html5', true) } } + + // Mitigate CVE-2024-25710: Force commons-compress to 1.26.2 + configurations.all { + resolutionStrategy { + force libs.commonsCompress + } + } } /** diff --git a/gradle.properties b/gradle.properties index 76837905..dcd939a1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,4 +12,4 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# +# \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 999f17d6..1a453527 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -19,6 +19,7 @@ snakeYaml = "2.0" #used for authz lib integration rundeck = "4.17.6-20240402" testcontainers = "1.21.3" +commonsCompress = "1.26.2" [libraries] @@ -50,6 +51,8 @@ rundeckAuthzYaml = { module = "org.rundeck:rundeck-authz-yaml", version.ref = "r testcontainers = { module = "org.testcontainers:testcontainers", version.ref = "testcontainers" } testcontainersSpock = { module = "org.testcontainers:spock", version.ref = "testcontainers" } +commonsCompress = { module = "org.apache.commons:commons-compress", version.ref = "commonsCompress" } + [bundles] retrofit = ["retrofitCore", "retrofitJackson", "retrofitJaxb", "okhttpLogging", "okhttpUrlconnection", "jaxb"] diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index fb3fb834..dd78b766 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -63,6 +63,7 @@ + @@ -1859,6 +1860,11 @@ + + + + + @@ -2050,6 +2056,11 @@ + + + + + @@ -2120,6 +2131,11 @@ + + + + + @@ -3941,6 +3957,11 @@ + + + + +