Intel

AIKIDO-2026-273917

spomky-labs/cbor-php is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource ConsumptionGHSA-jfrf-557c-963v Published 2 days ago

75

High Risk

This Affects:

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

TL;DR

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.

Who does this affect?

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.

Background info

spomky-labs/cbor-php is vulnerable to Uncontrolled Resource Consumption in versions 1.0.0 - 3.3.4.

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