spomky-labs/pki-framework: is it safe?

Short answer: Version 1.6.2 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Composer spomky-labs/pki-framework has 27 known advisories in the phpwarden feed. Feed 2026.11.29.3, updated 2026-11-29.

27advisories
0critical
0on CISA KEV
0no fix recorded
CVETitleSeverityCVSSAffectedFixed in
GHSA-2rhj-2r69-j232Distinguished name comparison is defeated by the ASN.1 string type and by invisible characters, and made to collide by lossy transcodingunknown0.0<1.6.21.6.2
GHSA-34rx-vp5j-q2wrThe certificate policy tree grows multiplicatively per certificate, so a signed chain from a delegated sub-CA exhausts memoryunknown0.0<1.6.21.6.2
GHSA-3p3r-m556-g5pxName constraints are never enforced during certification path validationunknown0.0<1.6.21.6.2
GHSA-5474-45mw-c3xqTBSCertificate::fromCSR() copies attacker-controlled extensions, allowing a requester to obtain a CA certificateunknown0.0<1.6.21.6.2
GHSA-5gp6-jr6q-ffx7MD4, MD5 and SHA-1 certificate signatures are accepted with no way to restrict the algorithm setunknown0.0<1.6.21.6.2
GHSA-6chf-2x6r-fjhgiPAddress GeneralNames silently encode a different address, turning an IPv6 name constraint into a wildcard IPv4 constraintunknown0.0<1.6.21.6.2
GHSA-6pj8-5pjp-gj6wAn unsupported critical extension in an attribute certificate is ignored, so the issuer's restrictions are silently discardedunknown0.0<1.6.21.6.2
GHSA-6q28-45jq-2628No syntax validation on dNSName / rfc822Name allows embedded NUL bytes in subjectAltNameunknown0.0<1.6.21.6.2
GHSA-85g4-f9rx-c6wwAttribute certificate signatures are exempt from the configured signature algorithm and RSA key size policyunknown0.0<1.6.21.6.2
GHSA-894f-9q28-7w2xComparing a multi-valued RDN re-encodes and re-parses both names, so a 14 KB certificate costs 0.3 s per name comparisonunknown0.0<1.6.21.6.2
GHSA-8qrh-8g3j-pxvvCertificate serial numbers default to 0 and withRandomSerialNumber() yields under 64 bits of entropyunknown0.0<1.6.21.6.2
GHSA-9hcj-84c7-2pj8A second [3] extensions element in tbsCertificate silently replaces the first, hiding basicConstraints and keyUsageunknown0.0<1.6.21.6.2
GHSA-c67f-8q64-6hxhMissing loop detection in CertificationPathBuilder allows memory exhaustion with two crafted certificatesunknown0.0<1.6.21.6.2
GHSA-f28f-xc9q-m482Signature is verified over a re-encoded TBSCertificate, making certificates malleableunknown0.0<1.6.21.6.2
GHSA-gjx8-fvx6-qg7qKeyUsage and reasonFlags bits are read from the wrong end of an over-long BIT STRING, so keyCertSign can be forgedunknown0.0<1.6.21.6.2
GHSA-j49g-8r6c-p7w2UTCTime two-digit years 50-69 are decoded with the wrong century, so expired certificates can be seen as validunknown0.0<1.6.21.6.2
GHSA-jj8p-rwmj-6rjjMalformed ASN.1 input raises a TypeError that escapes catch(Exception), crashing the callerunknown0.0<1.6.21.6.2
GHSA-mh5j-7xj5-9h45Name constraints are evaded by names the matcher does not canonicalise: a trailing dot, and URIs PHP parses differently from browsersunknown0.0<1.6.21.6.2
GHSA-mx53-vr97-rxr2ECDSA signature values are re-encoded before verification, so one certificate has an unlimited supply of accepted byte encodingsunknown0.0<1.6.21.6.2
GHSA-mxjh-6r54-88x9CertificationPath::validate() silently treats the first certificate of the chain as the trust anchorunknown0.0<1.6.21.6.2
GHSA-rfxw-c9pp-xvfwThe MAX_PATHS bound never fires when no path reaches a trust anchor, so 7 KB of certificates costs minutes of CPUunknown0.0<1.6.21.6.2
GHSA-v473-mx2x-xqpvA few kilobytes of crafted DER cost minutes of CPU: unbounded quadratic accumulation in tag numbers, OID sub-identifiers and REAL mantissasunknown0.0<1.6.21.6.2
GHSA-v76j-9ghr-85frUnrecognized critical certificate extensions are silently ignored during path validationunknown0.0<1.6.21.6.2
GHSA-vw7q-hxmh-m835X.509 v1/v2 certificates are accepted as intermediate CAs without any basicConstraints checkunknown0.0<1.6.21.6.2
GHSA-wc4q-rp39-hwpfDuplicate certificate extensions are silently merged, last occurrence winsunknown0.0<1.6.21.6.2
GHSA-x673-qv99-7268PEM_REGEX backtracks cubically, so 4 KB of text costs more CPU than parsing thousands of real certificatesunknown0.0<1.6.21.6.2
GHSA-xjj7-24gw-437vUnbounded recursion in the ASN.1/DER decoder causes a stack-exhaustion crash (SIGSEGV)unknown0.0<1.6.21.6.2

Quick answers

Is spomky-labs/pki-framework safe to use?

Version 1.6.2 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Is spomky-labs/pki-framework being actively exploited?

None of its 27 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/spomky-labs/pki-framework.svg)](https://phpwarden.io/packages/spomky-labs/pki-framework)