spomky-labs/cbor-php is vulnerable to Uncontrolled Resource Consumption
75
High Risk
The CBOR decoder normalizes decoded documents without bounding the work each element can cost. Decoding untrusted CBOR triggers quadratic map normalization, eager expansion of decimal fraction and big float exponents into very large strings, and quadratic big number base conversion, so a small hostile document exhausts CPU and memory and can raise an uncatchable fatal error that terminates the PHP process. Other inputs throw exceptions outside the documented error contract. The fix bounds exponents and big number payload sizes, rejects expensive container map keys before normalizing them, and replaces the quadratic map normalization.
You are affected if you are using a version that falls within the vulnerable range and you decode CBOR that comes from outside your application.
spomky-labs/cbor-php is vulnerable to Uncontrolled Resource Consumption in versions 1.0.0 - 3.3.4.
Upgrade the spomky-labs/cbor-php library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.