spomky-labs/cbor-php is vulnerable to Improper Handling of Exceptional Conditions
53
Medium Risk
Several decoder paths let exceptions escape that fall outside the library's documented InvalidArgumentException contract. Eight-byte length, count, and tag headers that exceed the PHP integer range reach BigInteger::toInt() and surface a Brick\Math overflow exception, while empty bignum payloads reach BigInteger::fromBase() because the guarding assert() is compiled out under the production default. Callers that guard decoding against the documented exception type therefore see unexpected exceptions and can crash on untrusted input. The fix translates these overflow and invalid-input failures into InvalidArgumentException.
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 Improper Handling of Exceptional Conditions in versions 0.0.1 - 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.