Skip to content

Commit 123b16a

Browse files
authored
* fix CVE-2025-48734 Signed-off-by: Jing Zhang <[email protected]> * fix building errors Signed-off-by: Jing Zhang <[email protected]> --------- Signed-off-by: Jing Zhang <[email protected]>
1 parent dc9eb74 commit 123b16a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ml-algorithms/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ dependencies {
2828
implementation ("org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}")
2929
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'
3030
implementation group: 'org.reflections', name: 'reflections', version: '0.9.12'
31-
implementation group: 'org.tribuo', name: 'tribuo-clustering-kmeans', version: '4.2.1'
32-
implementation group: 'org.tribuo', name: 'tribuo-regression-sgd', version: '4.2.1'
33-
implementation group: 'org.tribuo', name: 'tribuo-anomaly-libsvm', version: '4.2.1'
34-
implementation group: 'org.tribuo', name: 'tribuo-classification-sgd', version: '4.2.1'
31+
implementation group: 'org.tribuo', name: 'tribuo-clustering-kmeans', version: '4.3.2'
32+
implementation group: 'org.tribuo', name: 'tribuo-regression-sgd', version: '4.3.2'
33+
implementation group: 'org.tribuo', name: 'tribuo-anomaly-libsvm', version: '4.3.2'
34+
implementation group: 'org.tribuo', name: 'tribuo-classification-sgd', version: '4.3.2'
3535
implementation group: 'commons-io', name: 'commons-io', version: '2.15.1'
3636
implementation 'software.amazon.randomcutforest:randomcutforest-parkservices:3.0-rc3'
3737
implementation 'software.amazon.randomcutforest:randomcutforest-core:3.0-rc3'
@@ -41,6 +41,7 @@ dependencies {
4141
implementation group: 'io.protostuff', name: 'protostuff-collectionschema', version: '1.8.0'
4242
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
4343
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.7.0'
44+
testImplementation group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
4445
implementation (group: 'com.google.guava', name: 'guava', version: '32.1.3-jre') {
4546
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
4647
}

ml-algorithms/src/test/java/org/opensearch/ml/engine/encryptor/EncryptorImplTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ public void encrypt_MasterKeyFieldMismatch_ShouldFallbackToProperKeyField() thro
583583
Encryptor encryptor = new EncryptorImpl(clusterService, client, sdkClient, mlIndicesHandler);
584584

585585
// Old buggy code would try to access response.source().get(masterKeyId) and get null
586-
// This test ensures the new fix works — we access MASTER_KEY properly
587586
String encrypted = encryptor.encrypt("test", TENANT_ID);
588587
Assert.assertNotNull(encrypted);
589588
Assert.assertEquals("test", encryptor.decrypt(encrypted, TENANT_ID));

0 commit comments

Comments
 (0)