spomky-labs/cbor-php is vulnerable to Denial of Service (DoS)
75
High Risk
The BigFloatTag and DecimalFractionTag normalization computes the tag value by raising 2 or 10 to an exponent taken directly from the decoded document using bcpow(). The exponent is never bounded, so a tiny CBOR payload can request a number with billions of digits and force a huge memory allocation. Because this surfaces as a fatal memory-exhaustion error it cannot be caught by the caller, terminating the PHP process when decoding untrusted input. The fix rejects exponents whose absolute value exceeds a fixed maximum before the expensive computation.
You are affected if you are using a version that falls within the vulnerable range and you decode untrusted or externally controlled CBOR data.
spomky-labs/cbor-php is vulnerable to Denial of Service (DoS) in versions 1.0.0 - 3.3.3.
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.