org.bouncycastle:bctls-debug-jdk14@1.84

  • latest version

    1.86

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.bouncycastle:bctls-debug-jdk14 package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Memory Allocation with Excessive Size Value

    Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value in the processRecord() method of DTLSReliableHandshake, where the DTLSReassembler constructor allocates a byte[length] buffer directly from the 24-bit handshake length field without checking it against peer.getMaxHandshakeMessageSize(), unlike the stream-TLS path. An attacker can drive the JVM to OutOfMemoryError with a handful of small UDP datagrams by sending a single ~205-byte epoch-0 record carrying 16 fragment headers with length=0xFFFFFF and fragment_length=0, forcing roughly 256 MiB of allocation before any authentication. This requires only the ability to send UDP records to a DTLS listener, with each connection buffering up to 16 message_seq values.

    How to fix Memory Allocation with Excessive Size Value?

    Upgrade org.bouncycastle:bctls-debug-jdk14 to version 1.85 or higher.

    [,1.85)