Intel

AIKIDO-2026-402067

spomky-labs/cbor-php is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-pf28-pvhp-7mm5 Published Today

75

High Risk

This Affects:

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

TL;DR

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.

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 Denial of Service (DoS) in versions 1.0.0 - 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