Intel

AIKIDO-2026-380946

spomky-labs/pki-framework is vulnerable to Improper Verification of Cryptographic Signature

Improper Verification of Cryptographic SignatureGHSA-mx53-vr97-rxr2 Published 5 days ago

53

Medium Risk

This Affects:

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

TL;DR

OpenSSLCrypto::verify() verifies ECDSA signatures against a canonical re-encoding of the parsed r and s values rather than the received bytes, and ECSignature decodes those values with permissive BER. Many distinct byte encodings of one signature pass verification. Controls that pin, deny list, deduplicate, revoke, or log certificates by fingerprint can be bypassed because a mutated encoding validates while its digest differs, and the library accepts encodings that OpenSSL rejects. The fix verifies the originally received signature bytes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you rely on ECDSA certificate fingerprints for pinning, deny listing, deduplication, or revocation.

Background info

spomky-labs/pki-framework is vulnerable to Improper Verification of Cryptographic Signature in versions 0.0.1 - 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