Find, fix and prevent vulnerabilities in your code.
critical severity
- Vulnerable module: org.glassfish.jersey.core:jersey-client
- Introduced through: org.glassfish.jersey.core:jersey-client@2.39.1 and org.gitlab4j:gitlab4j-api@5.8.0
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.glassfish.jersey.core:jersey-client@2.39.1Remediation: Upgrade to org.glassfish.jersey.core:jersey-client@2.46.
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.gitlab4j:gitlab4j-api@5.8.0 › org.glassfish.jersey.core:jersey-client@2.39.1Remediation: Upgrade to org.gitlab4j:gitlab4j-api@6.0.0.
Overview
Affected versions of this package are vulnerable to Race Condition in the HttpUrlConnector class, during initialization of SSL sockets. An attacker can cause the application to ignore custom SSL settings, including mutual authentication, custom key and trust stores, and other security configurations, by initiating concurrent HTTPS connection requests. This may lead to SSLHandshakeException errors in normal situations, and unauthorized trust in insecure servers under specific conditions.
Remediation
Upgrade org.glassfish.jersey.core:jersey-client to version 2.46, 3.0.17, 3.1.10, 4.0.0-M2 or higher.
References
high severity
new
- Vulnerable module: tools.jackson.core:jackson-core
- Introduced through: org.springframework.boot:spring-boot-starter-web@4.1.0-M2
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.1.0-M2 › org.springframework.boot:spring-boot-jackson@4.1.0-M2 › tools.jackson.core:jackson-databind@3.0.4 › tools.jackson.core:jackson-core@3.0.4
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in which the non-blocking async JSON parser can be made to bypass the maxNumberLength constraint (default: 1000 characters) defined in StreamReadConstraints. An attacker can cause excessive memory allocation and CPU exhaustion by submitting JSON documents containing extremely long numeric values through the asynchronous parser interface.
PoC
The following JUnit 5 test demonstrates the vulnerability. It shows that the async parser accepts a 5,000-digit number, whereas the limit should be 1,000.
package tools.jackson.core.unittest.dos;
import java.nio.charset.StandardCharsets;
import org.junit.jupiter.api.Test;
import tools.jackson.core.*;
import tools.jackson.core.exc.StreamConstraintsException;
import tools.jackson.core.json.JsonFactory;
import tools.jackson.core.json.async.NonBlockingByteArrayJsonParser;
import static org.junit.jupiter.api.Assertions.*;
/**
* POC: Number Length Constraint Bypass in Non-Blocking (Async) JSON Parsers
*
* Authors: sprabhav7, rohan-repos
*
* maxNumberLength default = 1000 characters (digits).
* A number with more than 1000 digits should be rejected by any parser.
*
* BUG: The async parser never calls resetInt()/resetFloat() which is where
* validateIntegerLength()/validateFPLength() lives. Instead it calls
* _valueComplete() which skips all number length validation.
*
* CWE-770: Allocation of Resources Without Limits or Throttling
*/
class AsyncParserNumberLengthBypassTest {
private static final int MAX_NUMBER_LENGTH = 1000;
private static final int TEST_NUMBER_LENGTH = 5000;
private final JsonFactory factory = new JsonFactory();
// CONTROL: Sync parser correctly rejects a number exceeding maxNumberLength
@Test
void syncParserRejectsLongNumber() throws Exception {
byte[] payload = buildPayloadWithLongInteger(TEST_NUMBER_LENGTH);
// Output to console
System.out.println("[SYNC] Parsing " + TEST_NUMBER_LENGTH + "-digit number (limit: " + MAX_NUMBER_LENGTH + ")");
try {
try (JsonParser p = factory.createParser(ObjectReadContext.empty(), payload)) {
while (p.nextToken() != null) {
if (p.currentToken() == JsonToken.VALUE_NUMBER_INT) {
System.out.println("[SYNC] Accepted number with " + p.getText().length() + " digits — UNEXPECTED");
}
}
}
fail("Sync parser must reject a " + TEST_NUMBER_LENGTH + "-digit number");
} catch (StreamConstraintsException e) {
System.out.println("[SYNC] Rejected with StreamConstraintsException: " + e.getMessage());
}
}
// VULNERABILITY: Async parser accepts the SAME number that sync rejects
@Test
void asyncParserAcceptsLongNumber() throws Exception {
byte[] payload = buildPayloadWithLongInteger(TEST_NUMBER_LENGTH);
NonBlockingByteArrayJsonParser p =
(NonBlockingByteArrayJsonParser) factory.createNonBlockingByteArrayParser(ObjectReadContext.empty());
p.feedInput(payload, 0, payload.length);
p.endOfInput();
boolean foundNumber = false;
try {
while (p.nextToken() != null) {
if (p.currentToken() == JsonToken.VALUE_NUMBER_INT) {
foundNumber = true;
String numberText = p.getText();
assertEquals(TEST_NUMBER_LENGTH, numberText.length(),
"Async parser silently accepted all " + TEST_NUMBER_LENGTH + " digits");
}
}
// Output to console
System.out.println("[ASYNC INT] Accepted number with " + TEST_NUMBER_LENGTH + " digits — BUG CONFIRMED");
assertTrue(foundNumber, "Parser should have produced a VALUE_NUMBER_INT token");
} catch (StreamConstraintsException e) {
fail("Bug is fixed — async parser now correctly rejects long numbers: " + e.getMessage());
}
p.close();
}
private byte[] buildPayloadWithLongInteger(int numDigits) {
StringBuilder sb = new StringBuilder(numDigits + 10);
sb.append("{\"v\":");
for (int i = 0; i < numDigits; i++) {
sb.append((char) ('1' + (i % 9)));
}
sb.append('}');
return sb.toString().getBytes(StandardCharsets.UTF_8);
}
}
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade tools.jackson.core:jackson-core to version 3.1.0 or higher.
References
high severity
new
- Vulnerable module: tools.jackson.core:jackson-core
- Introduced through: org.springframework.boot:spring-boot-starter-web@4.1.0-M2
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.1.0-M2 › org.springframework.boot:spring-boot-jackson@4.1.0-M2 › tools.jackson.core:jackson-databind@3.0.4 › tools.jackson.core:jackson-core@3.0.4
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in ReaderBasedJsonParser.java and UTF8DataInputJsonParser.java, when processing deeply nested data. A regression in 3.0 versions caused the StreamReadConstraints.maxNestingDepth setting for DataInput to not be checked, allowing resources to be overwhelmed by malicious inputs.
Remediation
Upgrade tools.jackson.core:jackson-core to version 3.1.0 or higher.
References
medium severity
- Vulnerable module: org.eclipse.jgit:org.eclipse.jgit
- Introduced through: org.eclipse.jgit:org.eclipse.jgit@7.2.0.202503040940-r
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.eclipse.jgit:org.eclipse.jgit@7.2.0.202503040940-rRemediation: Upgrade to org.eclipse.jgit:org.eclipse.jgit@7.2.1.202505142326-r.
Overview
Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via the ManifestParser and AmazonS3 classes which use a SAXParser to parse XML files without properly configuring it to disable external entity processing. An attacker can access sensitive information or disrupt service by exploiting improperly parsed XML files.
Details
XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.
Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.
For example, below is a sample XML document, containing an XML element- username.
<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<username>John</username>
</xml>
An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.
<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
<username>&xxe;</username>
</xml>
Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.
Remediation
Upgrade org.eclipse.jgit:org.eclipse.jgit to version 6.10.1.202505221210-r, 7.0.1.202505221510-r, 7.1.1.202505221757-r, 7.2.1.202505142326-r or higher.
References
medium severity
- Module: ch.qos.logback:logback-classic
- Introduced through: org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6, org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 and others
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.ai:spring-ai-spring-boot-autoconfigure@1.0.0-M6 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-starter-micrometer-metrics@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32
Dual license: EPL-1.0, LGPL-2.1
medium severity
- Module: ch.qos.logback:logback-core
- Introduced through: org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6, org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 and others
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32 › ch.qos.logback:logback-core@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32 › ch.qos.logback:logback-core@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.ai:spring-ai-spring-boot-autoconfigure@1.0.0-M6 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32 › ch.qos.logback:logback-core@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-starter-micrometer-metrics@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32 › ch.qos.logback:logback-core@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32 › ch.qos.logback:logback-core@1.5.32
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-starter-logging@4.1.0-M2 › ch.qos.logback:logback-classic@1.5.32 › ch.qos.logback:logback-core@1.5.32
Dual license: EPL-1.0, LGPL-2.1
medium severity
- Module: junit:junit
- Introduced through: io.github.cdancy:bitbucket-rest@3.1.1, org.gitlab4j:gitlab4j-api@5.8.0 and others
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › com.google.inject.extensions:guice-assistedinject@5.1.0 › com.google.truth:truth@0.45 › junit:junit@4.13.2
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.gitlab4j:gitlab4j-api@5.8.0 › org.glassfish.jersey.media:jersey-media-multipart@2.39.1 › org.jvnet.mimepull:mimepull@1.9.15 › junit:junit@4.13.2
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › org.apache.jclouds:jclouds-core@2.5.0 › com.google.inject.extensions:guice-assistedinject@5.1.0 › com.google.truth:truth@0.45 › junit:junit@4.13.2
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.ai:spring-ai-openai@1.0.0-M6 › org.springframework.ai:spring-ai-core@1.0.0-M6 › org.antlr:ST4@4.3.4 › org.antlr:antlr-runtime@3.5.3 › junit:junit@4.13.2
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.ai:spring-ai-openai@1.0.0-M6 › org.springframework.ai:spring-ai-retry@1.0.0-M6 › org.springframework.ai:spring-ai-core@1.0.0-M6 › org.antlr:ST4@4.3.4 › org.antlr:antlr-runtime@3.5.3 › junit:junit@4.13.2
EPL-1.0 license
low severity
- Vulnerable module: com.google.guava:guava
- Introduced through: com.google.inject:guice@5.1.0 and io.github.cdancy:bitbucket-rest@3.1.1
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › com.google.inject:guice@5.1.0 › com.google.guava:guava@27.1-jre
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › com.google.inject:guice@5.1.0 › com.google.guava:guava@27.1-jre
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › org.apache.jclouds:jclouds-core@2.5.0 › com.google.guava:guava@27.1-jre
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › org.apache.jclouds:jclouds-core@2.5.0 › com.google.inject:guice@5.1.0 › com.google.guava:guava@27.1-jre
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › com.google.inject.extensions:guice-assistedinject@5.1.0 › com.google.truth:truth@0.45 › com.google.guava:guava@27.1-jre
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › org.apache.jclouds:jclouds-core@2.5.0 › com.google.inject.extensions:guice-assistedinject@5.1.0 › com.google.truth:truth@0.45 › com.google.guava:guava@27.1-jre
Overview
com.google.guava:guava is a set of core libraries that includes new collection types (such as multimap and multiset,immutable collections, a graph library, functional types, an in-memory cache and more.
Affected versions of this package are vulnerable to Creation of Temporary File in Directory with Insecure Permissions due to the use of Java's default temporary directory for file creation in FileBackedOutputStream. Other users and apps on the machine with access to the default Java temporary directory can access the files created by this class. This more fully addresses the underlying issue described in CVE-2020-8908, by deprecating the permissive temp file creation behavior.
NOTE: Even though the security vulnerability is fixed in version 32.0.0, the maintainers recommend using version 32.0.1, as version 32.0.0 breaks some functionality under Windows.
Remediation
Upgrade com.google.guava:guava to version 32.0.0-android, 32.0.0-jre or higher.
References
low severity
- Vulnerable module: com.google.guava:guava
- Introduced through: com.google.inject:guice@5.1.0 and io.github.cdancy:bitbucket-rest@3.1.1
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › com.google.inject:guice@5.1.0 › com.google.guava:guava@27.1-jreRemediation: Upgrade to com.google.inject:guice@5.1.0.
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › com.google.inject:guice@5.1.0 › com.google.guava:guava@27.1-jreRemediation: Upgrade to io.github.cdancy:bitbucket-rest@3.1.1.
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › org.apache.jclouds:jclouds-core@2.5.0 › com.google.guava:guava@27.1-jre
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › org.apache.jclouds:jclouds-core@2.5.0 › com.google.inject:guice@5.1.0 › com.google.guava:guava@27.1-jre
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › com.google.inject.extensions:guice-assistedinject@5.1.0 › com.google.truth:truth@0.45 › com.google.guava:guava@27.1-jre
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.github.cdancy:bitbucket-rest@3.1.1 › org.apache.jclouds:jclouds-core@2.5.0 › com.google.inject.extensions:guice-assistedinject@5.1.0 › com.google.truth:truth@0.45 › com.google.guava:guava@27.1-jre
Overview
com.google.guava:guava is a set of core libraries that includes new collection types (such as multimap and multiset,immutable collections, a graph library, functional types, an in-memory cache and more.
Affected versions of this package are vulnerable to Information Disclosure.
The file permissions on the file created by com.google.common.io.Files.createTempDir allow an attacker running a malicious program co-resident on the same machine to steal secrets stored in this directory. This is because, by default, on unix-like operating systems the /tmp directory is shared between all users, so if the correct file permissions aren't set by the directory/file creator, the file becomes readable by all other users on that system.
PoC
File guavaTempDir = com.google.common.io.Files.createTempDir();
System.out.println("Guava Temp Dir: " + guavaTempDir.getName());
runLS(guavaTempDir.getParentFile(), guavaTempDir); // Prints the file permissions -> drwxr-xr-x
File child = new File(guavaTempDir, "guava-child.txt");
child.createNewFile();
runLS(guavaTempDir, child); // Prints the file permissions -> -rw-r--r--
For Android developers, choosing a temporary directory API provided by Android is recommended, such as context.getCacheDir(). For other Java developers, we recommend migrating to the Java 7 API java.nio.file.Files.createTempDirectory() which explicitly configures permissions of 700, or configuring the Java runtime's java.io.tmpdir system property to point to a location whose permissions are appropriately configured.
Remediation
There is no fix for com.google.guava:guava. However, in version 30.0 and above, the vulnerable functionality has been deprecated. In oder to mitigate this vulnerability, upgrade to version 30.0 or higher and ensure your dependencies don't use the createTempDir or createTempFile methods.
References
low severity
- Vulnerable module: org.springframework:spring-context
- Introduced through: io.pivotal.cfenv:java-cfenv-boot@3.4.0, org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 and others
Detailed paths
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › io.pivotal.cfenv:java-cfenv-boot@3.4.0 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3Remediation: Upgrade to io.pivotal.cfenv:java-cfenv-boot@3.5.1.
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-health@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-http-converter@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.8.5 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.8.5 › org.springframework:spring-webmvc@7.0.5 › org.springframework:spring-context@6.2.3Remediation: Upgrade to org.springdoc:springdoc-openapi-starter-webmvc-ui@3.0.0.
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-webmvc@4.1.0-M2 › org.springframework:spring-webmvc@7.0.5 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.ai:spring-ai-openai@1.0.0-M6 › org.springframework.ai:spring-ai-core@1.0.0-M6 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.ai:spring-ai-openai@1.0.0-M6 › org.springframework:spring-context-support@6.2.2 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-actuator-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-actuator-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot-actuator@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-starter-micrometer-metrics@4.1.0-M2 › org.springframework.boot:spring-boot-micrometer-metrics@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-webmvc@4.1.0-M2 › org.springframework.boot:spring-boot-http-converter@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.1.0-M2 › org.springframework.boot:spring-boot-jackson@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-webmvc@4.1.0-M2 › org.springframework.boot:spring-boot-servlet@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.ai:spring-ai-openai@1.0.0-M6 › org.springframework.ai:spring-ai-retry@1.0.0-M6 › org.springframework.ai:spring-ai-core@1.0.0-M6 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springdoc:springdoc-openapi-starter-webmvc-ui@2.8.5 › org.springdoc:springdoc-openapi-starter-webmvc-api@2.8.5 › org.springdoc:springdoc-openapi-starter-common@2.8.5 › org.springframework.boot:spring-boot-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.ai:spring-ai-openai-spring-boot-starter@1.0.0-M6 › org.springframework.ai:spring-ai-spring-boot-autoconfigure@1.0.0-M6 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-starter-micrometer-metrics@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-jackson@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.1.0-M2 › org.springframework.boot:spring-boot-starter@4.1.0-M2 › org.springframework.boot:spring-boot-autoconfigure@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-actuator@4.1.0-M2 › org.springframework.boot:spring-boot-starter-micrometer-metrics@4.1.0-M2 › org.springframework.boot:spring-boot-micrometer-metrics@4.1.0-M2 › org.springframework.boot:spring-boot-micrometer-observation@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.1.0-M2 › org.springframework.boot:spring-boot-tomcat@4.1.0-M2 › org.springframework.boot:spring-boot-web-server@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.1.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.1.0-M2 › org.springframework.boot:spring-boot-web-server@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
-
Introduced through: cf-toolsuite/robert@cf-toolsuite/robert#ae9a8a2fb1f6450511aa2e93a37d2adc06030555 › org.springframework.boot:spring-boot-starter-web@4.1.0-M2 › org.springframework.boot:spring-boot-starter-tomcat@4.1.0-M2 › org.springframework.boot:spring-boot-starter-tomcat-runtime@4.1.0-M2 › org.springframework.boot:spring-boot-tomcat@4.1.0-M2 › org.springframework.boot:spring-boot-web-server@4.1.0-M2 › org.springframework.boot:spring-boot@3.4.3 › org.springframework:spring-context@6.2.3
Overview
Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity due to an incomplete fix for CVE-2024-38820, where it is still possible to bypass the disallowedFields checks.
Note:
This vulnerability was also fixed in commercial versions 6.0.28 and 5.3.43.
Remediation
Upgrade org.springframework:spring-context to version 6.1.20, 6.2.7 or higher.