com.upokecenter:cbor@4.5.1 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the com.upokecenter:cbor package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Denial of Service (DoS)

com.upokecenter:cbor is a Java implementation of Concise Binary Object Representation.

Affected versions of this package are vulnerable to Denial of Service (DoS) via an inefficient algorithm when a maliciously crafted input is passed to DecodeFromBytes or other CBOR decoding mechanisms.

Workaround

An input that decodes to a single CBOR object is not capable of containing a CBOR map if:

  1. It begins with a byte other than 0x80 through 0xDF, or
  2. It does not contain a byte in the range 0xa0 through 0xBF Such an input is not affected by this vulnerability and an application can choose to perform this check before passing it to a CBOR decoding mechanism.

How to fix Denial of Service (DoS)?

Upgrade com.upokecenter:cbor to version 4.5.2 or higher.

[4.0.0,4.5.2)