Intel

AIKIDO-2026-482067

spomky-labs/pki-framework is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource ConsumptionGHSA-v473-mx2x-xqpv Published 5 days ago

75

High Risk

This Affects:

PHPspomky-labs/pki-framework
1.0.0 - 1.6.1
Fixed in 1.6.2
Are you affected? Scan for Free

TL;DR

DER decoder loops accumulate untrusted continuation octets without bounds, including decodeLongFormTag() in Identifier.php and the sub-identifier loops in ObjectIdentifier.php and RelativeOID.php. Each step rebuilds a BigInteger, so a long run of octets costs work quadratic in its length during certificate parsing, before any signature is checked. A few kilobytes of crafted DER cost minutes of CPU. The fix bounds the octet counts and rejects oversized fields.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you decode untrusted ASN.1/DER, certificates, CSRs, or PEM data.

Background info

spomky-labs/pki-framework is vulnerable to Uncontrolled Resource Consumption in versions 1.0.0 - 1.6.1.

How to fix this

Upgrade the spomky-labs/pki-framework 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