PT-2019-20039 · Unknown · Cbor Library

Published

2019-09-30

·

Updated

2019-09-30

None

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Name of the Vulnerable Software and Affected Versions CBOR library versions prior to 4.0
Description The CBOR library has a denial of service issue due to the automatic resolution of references in CBOR objects. This can cause a significant increase in memory usage when the decoded CBOR object is sent to a serialization method, potentially leading to a denial of service. The risk is higher if the system allows users to send arbitrary CBOR objects without authentication or exposes a remote endpoint for sending CBOR objects without authentication.
Recommendations For versions prior to 3.6, consider using a "limited memory stream" to decode CBOR objects to prevent excessive memory usage. For versions 3.6 and later, set resolvereferences=false in CBOREncodeOptions to disable reference resolution. For versions 3.6 and later, use the overload of CBORObject.DecodeFromBytes() that takes CBOREncodeOptions and set resolvereferences=false. Update to version 4.0 or later, which disables reference resolution by default.
Found an issue in the description? Have something to add? Feel free to write us 👾

Related Identifiers

GHSA-CXW4-9QV9-VX5H

Affected Products

Cbor Library