Vulnerabilities

16 via 17 paths

Dependencies

25

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 16
  • 1
Severity
  • 10
  • 6
  • 1
Status
  • 17
  • 0
  • 0

high severity

Incorrect Implementation of Authentication Algorithm

  • Vulnerable module: org.apache.kafka:kafka-clients
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.7.2.

Overview

org.apache.kafka:kafka-clients is a streaming platform that can publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way, and process streams of records as they occur.

Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm in the form of nonce verification that fails to comply with RFC 5802 in the SCRAM implementation. If TLS is not in use for SCRAM exchanges - which is an insecure configuration in its own right - an attacker can intercept and replay the authentication messages.

Configurations with SASL_PLAINTEXT set for listeners are vulnerable.

Remediation

Upgrade org.apache.kafka:kafka-clients to version 3.7.2, 3.8.1 or higher.

References

high severity

Uncontrolled Recursion

  • Vulnerable module: org.apache.commons:commons-lang3
  • Introduced through: org.apache.commons:commons-lang3@3.12.0

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.commons:commons-lang3@3.12.0
    Remediation: Upgrade to org.apache.commons:commons-lang3@3.18.0.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion via the ClassUtils.getClass function. An attacker can cause the application to terminate unexpectedly by providing excessively long input values.

Remediation

Upgrade org.apache.commons:commons-lang3 to version 3.18.0 or higher.

References

high severity

Out-of-bounds Read

  • Vulnerable module: org.lz4:lz4-java
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1 org.lz4:lz4-java@1.7.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.9.2.

Overview

org.lz4:lz4-java is a Java port of the LZ4 compression algorithm and the xxHash hashing algorithm.

Affected versions of this package are vulnerable to Out-of-bounds Read due to the use of the insecure LZ4_decompress_fast in the underlying lz4 library, which lacks bounds checks. An attacker can cause denial of service or access sensitive memory contents by providing specially crafted compressed input.

Workaround

  • Applications using LZ4Factory.nativeInstance() in conjunction with .fastDecompressor() can switch to .safeInstance() or .safeDecompressor().
  • Applications using LZ4Factory.unsafeInstance(), .fastestInstance() or .fastestJavaInstance() can switch to .safeInstance().

Notes

  • The official org.lz4:lz4-java library has not been patched and the project is discontinued.

  • org.lz4:lz4-java:1.8.1 relocates the pacakge to at.yawk.lz4:lz4-java, which is a community-maintained fork of the library that fixes this vulnerability.

Remediation

Upgrade org.lz4:lz4-java to version 1.8.1 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: org.apache.kafka:kafka-clients
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.9.1.

Overview

org.apache.kafka:kafka-clients is a streaming platform that can publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way, and process streams of records as they occur.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data via the JndiLoginModule process in the SASL authentication mechanism. An attacker can execute arbitrary code or cause a denial of service by supplying a malicious JNDI URI in the broker's configuration.

Note:

This is only exploitable if the attacker can connect to the Kafka cluster and has the AlterConfigs permission on the cluster resource.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade org.apache.kafka:kafka-clients to version 3.9.1 or higher.

References

high severity

Deserialization of Untrusted Data

  • Vulnerable module: org.apache.kafka:kafka-clients
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.9.1.

Overview

org.apache.kafka:kafka-clients is a streaming platform that can publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way, and process streams of records as they occur.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data due to improper handling of configuration data in the sasl.jaas.config property. An attacker can achieve arbitrary code execution by injecting a malicious configuration that causes the server to connect to an attacker-controlled LDAP server and deserialize untrusted data, leading to execution of deserialization gadget chains.

Note:

This is only exploitable if the attacker has access to alterConfig for a cluster resource or Kafka Connect worker and can create or modify connectors with arbitrary Kafka client SASL JAAS configuration.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade org.apache.kafka:kafka-clients to version 3.9.1 or higher.

References

high severity

Insertion of Sensitive Information into Log File

  • Vulnerable module: org.apache.kafka:kafka-clients
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.9.2.

Overview

org.apache.kafka:kafka-clients is a streaming platform that can publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way, and process streams of records as they occur.

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File. Kafka is vulnerable to the disclosure of sensitive information via the toString methods of IncrementalAlterConfigsRequest and AlterUserScramCredentialsRequest. An attacker can expose config values, SCRAM salts, and salted passwords by triggering request logging or any code path that renders these request objects as strings. This leaks administrative secrets and credential material into logs and diagnostics, allowing unauthorized readers of those logs to recover protected configuration values and authentication data.

Workarounds

  • Keep Kafka clients at the default INFO log level and do not enable DEBUG logging for NetworkClient, so request and response objects are not rendered into logs, and sensitive config values, SCRAM salts, and salted passwords are not exposed.

Remediation

Upgrade org.apache.kafka:kafka-clients to version 3.9.2, 4.0.1 or higher.

References

high severity

XML External Entity (XXE) Injection

  • Vulnerable module: org.assertj:assertj-core
  • Introduced through: org.apache.logging.log4j:log4j-api@2.16.0

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.logging.log4j:log4j-api@2.16.0 org.assertj:assertj-core@3.20.2
    Remediation: Upgrade to org.apache.logging.log4j:log4j-api@2.16.0.

Overview

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via the toXmlDocument function of XmlStringPrettyFormatter. An attacker can read arbitrary local files, perform server-side request forgery, or cause denial of service by providing crafted XML input containing external entities.

Note: This formatter is used by isXmlEqualTo(CharSequence) and xmlPrettyFormat(String) and could be exploited if untrusted XML input is processed by the methods.

Workaround

Replace use of isXmlEqualTo(CharSequence) with XMLUnit.

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.assertj:assertj-core to version 3.27.7 or higher.

References

high severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: org.lz4:lz4-java
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1 org.lz4:lz4-java@1.7.1

Overview

org.lz4:lz4-java is a Java port of the LZ4 compression algorithm and the xxHash hashing algorithm.

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data in the decompression process when the output buffer is reused without being cleared. An attacker can access sensitive information from previous buffer contents by providing crafted compressed input.

Note:

  • JNI implementations are not vulnerable.
  • LZ4Factory.safeInstance(), LZ4Factory.unsafeInstance(), and LZ4Factory.fastestJavaInstance() are all vulnerable.
  • nativeInstance().fastDecompressor() is vulnerable but nativeInstance().safeDecompressor() is not.
  • This vulnerability is distinct from the one described in CVE-2025-12183, and was discovered during follow-up research.

Workaround

This vulnerability can be mitigated by zeroing the output buffer before passing it to the decompression function.

Remediation

There is no fixed version for org.lz4:lz4-java.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.xerial.snappy:snappy-java
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1 org.xerial.snappy:snappy-java@1.1.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.5.2.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to a missing upper bound check on chunk length in the SnappyInputStream function. An attacker can decompress data with an excessively large chunk size.

Remediation

Upgrade org.xerial.snappy:snappy-java to version 1.1.10.4 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: org.xerial.snappy:snappy-java
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1 org.xerial.snappy:snappy-java@1.1.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.5.1.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) via the hasNextChunk function due to improper validation of the chunkSize variable value.

Exploiting this vulnerability is possible by passing a negative number (such as 0xFFFFFFFF, which is -1), which will cause the code to raise a java.lang.NegativeArraySizeException exception. A worse case would happen when passing a huge positive value (such as 0x7FFFFFFF), raising the fatal java.lang.OutOfMemoryError error.

PoC

package org.example;
import org.xerial.snappy.SnappyInputStream;

import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException {
        byte[] data = {-126, 'S', 'N', 'A', 'P', 'P', 'Y', 0, 0, 0, 0, 0, 0, 0, 0, 0,(byte) 0x7f, (byte) 0xff, (byte) 0xff, (byte) 0xff};
        SnappyInputStream in = new SnappyInputStream(new ByteArrayInputStream(data));
        byte[] out = new byte[50];
        try {
            in.read(out);
        }
        catch (Exception ignored) {

        }
    }
}

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 ws package

Remediation

Upgrade org.xerial.snappy:snappy-java to version 1.1.10.1 or higher.

References

medium severity

Race Condition

  • Vulnerable module: org.apache.kafka:kafka-clients
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.9.2.

Overview

org.apache.kafka:kafka-clients is a streaming platform that can publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way, and process streams of records as they occur.

Affected versions of this package are vulnerable to Race Condition in Sender.sendProducerData, involving ByteBuffer reuse. An attacker can cause messages to be delivered to unintended topics by forcing the premature deallocation of a buffer via delivery.timeout.ms expiration, before the original network request completes, leaving it in the buffer pool. Consumers who have access to the destination topic but not the intended source topic may receive the deallocated buffer, without an error being emitted. The corrupted messages may themselves cause errors or deserialization failures.

The project maintainers note: "This bug has existed for more than a decade (since Kafka 0.x it seems), but never manifested because prior to 2.8.0 the pooled ByteBuffer (which contained record data aka your publishes) was copied into a freshly allocated ByteBuffer before any potential reuse and that fresh ByteBuffer was what got written over the network to the broker. With a change included in 2.8.0, the pooled ByteBuffer remains as-is inside of a MemoryRecords instance and this pooled ByteBuffer (which in some cases can be reused and overwritten with other data) is written over the network."

Remediation

Upgrade org.apache.kafka:kafka-clients to version 3.9.2, 4.0.2, 4.1.2 or higher.

References

medium severity

Files or Directories Accessible to External Parties

  • Vulnerable module: org.apache.kafka:kafka-clients
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.8.0.

Overview

org.apache.kafka:kafka-clients is a streaming platform that can publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way, and process streams of records as they occur.

Affected versions of this package are vulnerable to Files or Directories Accessible to External Parties through ConfigProviders interface, including the FileConfigProvider, DirectoryConfigProvider, and EnvVarConfigProvider class objects, which allows attackers to read arbitrary contents of the disk and environment variables.

Note:

  1. Users should upgrade to the fixed version, and it is recommended that the JVM system property be set to org.apache.kafka.automatic.config.providers=none.

  2. Users of Kafka Connect with one of the above ConfigProvider implementations specified in their worker config are also recommended to add appropriate allowlist.pattern and allowed.paths to restrict their operation to appropriate bounds.

Remediation

Upgrade org.apache.kafka:kafka-clients to version 3.8.0 or higher.

References

medium severity

Integer Overflow or Wraparound

  • Vulnerable module: org.xerial.snappy:snappy-java
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1 org.xerial.snappy:snappy-java@1.1.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.5.1.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the shuffle(int[] input) function due to improper validation of the multiplications done on the input length. Exploiting this vulnerability is possible by passing negative, zero, float, very small, or very long values to the shuffle functions, which later on are multiplicated by four. A successful exploration results in “java.lang.ArrayIndexOutOfBoundsException" or “java.lang.NegativeArraySizeException” exceptions which can crash the program.

PoC

package org.example;
import org.xerial.snappy.BitShuffle;

import java.io.*;


public class Main {

    public static void main(String[] args) throws IOException {
        int[] original = new int[0x40000000];
        byte[] shuffled = BitShuffle.shuffle(original);
        System.out.println(shuffled[0]);
    }
}

The program will crash, showing the following error (or similar):

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
    at org.example.Main.main(Main.java:12)

Process finished with exit code 1

Remediation

Upgrade org.xerial.snappy:snappy-java to version 1.1.10.1 or higher.

References

medium severity

Integer Overflow or Wraparound

  • Vulnerable module: org.xerial.snappy:snappy-java
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1 org.xerial.snappy:snappy-java@1.1.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.5.1.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the function compress(char[] input) in Snappy.java due to improper validation of the array length.

Exploiting this vulnerability is possible when the “buf” array compiled by the maxCompressedLength function is successfully allocated but its size might be too small to use for the compression, causing a fatal Access Violation error.

Note: The issue most likely won’t occur when using a byte array since creating a byte array of size 0x80000000 (or any other negative value) is impossible in the first place.

PoC

package org.example;
import org.xerial.snappy.Snappy;

import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException {
        char[] uncompressed = new char[0x40000000];
        byte[] compressed = Snappy.compress(uncompressed);
    }
}

Remediation

Upgrade org.xerial.snappy:snappy-java to version 1.1.10.1 or higher.

References

medium severity

Deserialization of Untrusted Data

  • Vulnerable module: org.apache.kafka:kafka-clients
  • Introduced through: org.apache.kafka:kafka-clients@2.8.1

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.kafka:kafka-clients@2.8.1
    Remediation: Upgrade to org.apache.kafka:kafka-clients@3.4.0.

Overview

org.apache.kafka:kafka-clients is a streaming platform that can publish and subscribe to streams of records, store streams of records in a fault-tolerant durable way, and process streams of records as they occur.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data when there are gadgets in the classpath. The server will connect to the attacker's LDAP server and deserialize the LDAP response, which the attacker can use to execute java deserialization gadget chains on the Kafka connect server.

Note: Exploitation requires access to a Kafka Connect worker, and the ability to create/modify connectors on it with an arbitrary Kafka client SASL JAAS config and a SASL-based security protocol.

Mitigation

  1. Kafka Connect users are advised to validate connector configurations and only allow trusted JNDI configurations.

  2. Users should examine connector dependencies for vulnerable versions and either upgrade their connectors, upgrading that specific dependency, or removing the connectors as options for remediation.

  3. Kafka Connect users can also implement their own connector client config override policy, which can be used to control which Kafka client properties can be overridden directly in a connector config and which cannot.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade org.apache.kafka:kafka-clients to version 3.4.0 or higher.

References

medium severity

EPL-1.0 license

  • Module: junit:junit
  • Introduced through: org.apache.logging.log4j:log4j-api@2.16.0

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.logging.log4j:log4j-api@2.16.0 org.junit.jupiter:junit-jupiter-migrationsupport@5.7.2 junit:junit@4.13
  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.logging.log4j:log4j-api@2.16.0 org.junit.vintage:junit-vintage-engine@5.7.2 junit:junit@4.13

EPL-1.0 license

low severity

Information Exposure

  • Vulnerable module: junit:junit
  • Introduced through: org.apache.logging.log4j:log4j-api@2.16.0

Detailed paths

  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.logging.log4j:log4j-api@2.16.0 org.junit.jupiter:junit-jupiter-migrationsupport@5.7.2 junit:junit@4.13
    Remediation: Upgrade to org.apache.logging.log4j:log4j-api@2.16.0.
  • Introduced through: finn-no/retriable-kafka-consumer@finn-no/retriable-kafka-consumer org.apache.logging.log4j:log4j-api@2.16.0 org.junit.vintage:junit-vintage-engine@5.7.2 junit:junit@4.13
    Remediation: Upgrade to org.apache.logging.log4j:log4j-api@2.16.0.

Overview

junit:junit is an unit testing framework for Java

Affected versions of this package are vulnerable to Information Exposure. The JUnit4 test rule TemporaryFolder contains a local information disclosure vulnerability. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system.

Note: This vulnerability does not allow other users to overwrite the contents of these directories or files. This only affects Unix like systems.

Remediation

Upgrade junit:junit to version 4.13.1 or higher.

References