Intel

AIKIDO-2026-677824

spomky-labs/cbor-php is vulnerable to Improper Handling of Exceptional Conditions

Improper Handling of Exceptional ConditionsGHSA-pjwm-422x-vvh5 Published Today

53

Medium Risk

This Affects:

PHPspomky-labs/cbor-php
0.0.1 - 3.3.3
Fixed in 3.3.4
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you decode untrusted or externally controlled CBOR data.

Background info

spomky-labs/cbor-php is vulnerable to Improper Handling of Exceptional Conditions in versions 0.0.1 - 3.3.3.

How to fix this

Upgrade the spomky-labs/cbor-php library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform