Vulnerabilities

10 via 12 paths

Dependencies

41

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 10
  • 4
Severity
  • 4
  • 9
  • 1
Status
  • 14
  • 0
  • 0

high severity

Stack-based Buffer Overflow

  • Vulnerable module: com.google.protobuf:protobuf-java
  • Introduced through: com.mysql:mysql-connector-j@8.3.0

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › com.mysql:mysql-connector-j@8.3.0 › com.google.protobuf:protobuf-java@3.25.1
    Remediation: Upgrade to com.mysql:mysql-connector-j@9.2.0.

Overview

com.google.protobuf:protobuf-java is a Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the parsing of nested groups or series of SGROUP tags as unknown fields with DiscardUnknownFieldsParser or Java Protobuf Lite parser, or against Protobuf map fields. An attacker can cause infinite recursion by sending malicious Protocol Buffer data.

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 com.google.protobuf:protobuf-java to version 3.25.5, 4.27.5, 4.28.2 or higher.

References

high severity

Improper Validation of Certificate with Host Mismatch

  • Vulnerable module: com.microsoft.sqlserver:mssql-jdbc
  • Introduced through: com.microsoft.sqlserver:mssql-jdbc@12.6.1.jre11

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › com.microsoft.sqlserver:mssql-jdbc@12.6.1.jre11
    Remediation: Upgrade to com.microsoft.sqlserver:mssql-jdbc@12.6.5.jre8.

Overview

Affected versions of this package are vulnerable to Improper Validation of Certificate with Host Mismatch via the parseCommonName() method . An attacker can gain unauthorized access or impersonate users by crafting malicious X.509 certificates that bypass hostname validation through embedding of fake hostnames within other certificate attributes.

Remediation

Upgrade com.microsoft.sqlserver:mssql-jdbc to version 10.2.4.jre8, 11.2.4.jre8, 12.2.1.jre8, 12.4.3.jre8, 12.6.5.jre8, 12.8.2.jre8, 12.10.2.jre8, 13.2.1.jre8 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.json:json
  • Introduced through: redis.clients:jedis@5.2.0-beta1 and org.apache.oltu.oauth2:org.apache.oltu.oauth2.client@1.0.2

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › redis.clients:jedis@5.2.0-beta1 › org.json:json@20240303
    Remediation: Upgrade to redis.clients:jedis@jedis-3.6.2.
  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › org.apache.oltu.oauth2:org.apache.oltu.oauth2.client@1.0.2 › org.apache.oltu.oauth2:org.apache.oltu.oauth2.common@1.0.2 › org.json:json@20240303

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via numeric conversion in the JSONObject.stringToValue() and XML.stringToValue() methods. An attacker can send JSON or XML containing an extremely long numeric literal to an application that parses attacker-controlled input with org.json; constructing a BigInteger or BigDecimal from it consumes excessive CPU and blocks request-handling threads, causing legitimate requests to time out.

Workarounds

  • Set nginx’s client_max_body_size 64k; to limit request bodies and reduce the maximum size of numeric literals reaching the parser.
  • In Spring Boot, register a CommonsRequestLoggingFilter or OncePerRequestFilter that caps Content-Length before the request reaches the controller, limiting the size of inputs the parser processes.

Remediation

Upgrade org.json:json to version 20260719 or higher.

References

high severity

GPL-2.0 license

  • Module: com.mysql:mysql-connector-j
  • Introduced through: com.mysql:mysql-connector-j@8.3.0

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › com.mysql:mysql-connector-j@8.3.0

GPL-2.0 license

medium severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: org.ow2.asm:asm
  • Introduced through: org.ow2.asm:asm@9.7.1

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › org.ow2.asm:asm@9.7.1
    Remediation: Upgrade to org.ow2.asm:asm@9.11.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the computeAllFrames method in MethodWriter. An attacker can exhaust CPU and tie up class-file transformation threads for an unbounded time by supplying crafted class files for processing with ClassWriter.COMPUTE_FRAMES; their methods make frame computation’s fixpoint algorithm converge slowly.

Remediation

Upgrade org.ow2.asm:asm to version 9.11 or higher.

References

medium severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: org.ow2.asm:asm
  • Introduced through: org.ow2.asm:asm@9.7.1

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › org.ow2.asm:asm@9.7.1
    Remediation: Upgrade to org.ow2.asm:asm@9.11.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the computeAllFrames() and computeMaxStackAndLocal() methods in MethodWriter. When ASM processes a crafted class file with thousands of overlapping exception handlers using COMPUTE_FRAMES or COMPUTE_MAXS, it allocates excessive Edge objects, causing an OutOfMemoryError that crashes the JVM.

Remediation

Upgrade org.ow2.asm:asm to version 9.11 or higher.

References

medium severity
new

Memory Allocation with Excessive Size Value

  • Vulnerable module: org.ow2.asm:asm
  • Introduced through: org.ow2.asm:asm@9.7.1

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › org.ow2.asm:asm@9.7.1
    Remediation: Upgrade to org.ow2.asm:asm@9.11.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via readBootstrapMethodsAttribute() in ClassReader. When an application parses an attacker-supplied class file, a crafted BootstrapMethods attribute with an unchecked declared length can trigger an allocation of roughly 2 GB from a file of about 100 bytes, causing an OutOfMemoryError that crashes the JVM or the thread processing the class.

Remediation

Upgrade org.ow2.asm:asm to version 9.11 or higher.

References

medium severity
new

Memory Allocation with Excessive Size Value

  • Vulnerable module: org.ow2.asm:asm
  • Introduced through: org.ow2.asm:asm@9.7.1

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › org.ow2.asm:asm@9.7.1
    Remediation: Upgrade to org.ow2.asm:asm@9.11.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the addSubroutineRetSuccessors() method in the Label class. An attacker can crash the JVM by supplying a crafted invalid class file with multiple RET instructions for one JSR while ASM processes the subroutine.

Notes

  • The attacker must get a user to load or process the crafted class file.

Remediation

Upgrade org.ow2.asm:asm to version 9.11 or higher.

References

medium severity
new

Uncontrolled Recursion

  • Vulnerable module: org.ow2.asm:asm
  • Introduced through: org.ow2.asm:asm@9.7.1

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › org.ow2.asm:asm@9.7.1
    Remediation: Upgrade to org.ow2.asm:asm@9.11.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion via the parseType method in SignatureReader. An attacker can trigger a StackOverflowError and disrupt class transformation by supplying a crafted class file with a Signature attribute containing deeply nested generic type arguments.

Remediation

Upgrade org.ow2.asm:asm to version 9.11 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: com.squareup.okio:okio
  • Introduced through: com.squareup.okhttp:okhttp@2.7.5 and com.squareup.okhttp:logging-interceptor@2.7.5

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › com.squareup.okhttp:okhttp@2.7.5 › com.squareup.okio:okio@1.6.0
  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › com.squareup.okhttp:logging-interceptor@2.7.5 › com.squareup.okhttp:okhttp@2.7.5 › com.squareup.okio:okio@1.6.0

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) due to improper exception handling by the GzipSource class when parsing a malformed gzip buffer.

This vulnerability can be exploited on the Okio client when handling a crafted GZIP archive.

PoC

val gzBuf: Buffer = Buffer()
    try {
        val gzByteString: ByteString = ("1f8b41ff424242424343ffff").decodeHex()
        gzBuf.write(gzByteString)
        val gz: GzipSource = GzipSource(gzBuf)
        val sinkBuf: Buffer = Buffer()
        gz.read(sinkBuf, 5)
    }
    catch(e: IOException) {
        println("got error: " + e.toString())
    }

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 com.squareup.okio:okio to version 1.17.6, 3.4.0 or higher.

References

medium severity

MPL-2.0 license

  • Module: net.sourceforge.jchardet:jchardet
  • Introduced through: net.sourceforge.jchardet:jchardet@1.0

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › net.sourceforge.jchardet:jchardet@1.0

MPL-2.0 license

medium severity

EPL-1.0 license

  • Module: org.eclipse.lsp4j:org.eclipse.lsp4j
  • Introduced through: org.eclipse.lsp4j:org.eclipse.lsp4j@0.22.0

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › org.eclipse.lsp4j:org.eclipse.lsp4j@0.22.0

EPL-1.0 license

medium severity

EPL-1.0 license

  • Module: org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc
  • Introduced through: org.eclipse.lsp4j:org.eclipse.lsp4j@0.22.0

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › org.eclipse.lsp4j:org.eclipse.lsp4j@0.22.0 › org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc@0.22.0

EPL-1.0 license

low severity

Information Exposure

  • Vulnerable module: junit:junit
  • Introduced through: com.googlecode.json-simple:json-simple@1.1.1

Detailed paths

  • Introduced through: EngineHub/CommandHelper@EngineHub/CommandHelper › com.googlecode.json-simple:json-simple@1.1.1 › junit:junit@4.10

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