Intel

AIKIDO-2026-66459

spomky-labs/pki-framework is vulnerable to Improper Certificate Validation

Improper Certificate ValidationGHSA-6chf-2x6r-fjhg Published 5 days ago

74

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

IPv6Address::octets() and IPv4Address::octets() split their input by delimiter and use the resulting octet count instead of validating the address family. An iPAddress name constraint in compressed IPv6 notation produces eight octets, which the library then uses as an IPv4 address plus subnet mask, and out-of-range values are truncated modulo 256. A permittedSubtrees entry such as 2001:db8:: allows the entire IPv4 address space and drops the intended IPv6 restriction. The fix validates the address family and rejects malformed iPAddress values.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you rely on iPAddress name constraints when validating certification paths.

Background info

spomky-labs/pki-framework is vulnerable to Improper Certificate Validation 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