GHSA-rrcw-wmw5-fhhf: 
PHP Analyse et atténuation de la vulnérabilité

What goes wrong

Path validation compares every name of a certificate with every name constraint subtree of the same form laid down above it. Nothing bounds the number of comparisons. Constraints only ever restrict, so a CA may add as many subtrees as it likes. Each comparison is also expensive. A directoryName goes through RFC 4518 string preparation again for every subtree it meets, about 24 µs a pair. The host of a URI or a mailbox is checked character by character, with no length limit, once per subtree. A delegated sub-CA, even one with a pathLenConstraint of 0, can therefore add a self-issued certificate with S excluded subtrees and issue a leaf with N subject alternative names. The chain still validates, but slowly. Measured on PHP 8.3 with GMP and intl:

CaseChainTime
directoryName, 500 names × 500 subtrees21.2 KB4.6 s
directoryName, 1000 × 100040.7 KB13.5 s
dNSName, 1000 × 100034.9 KB1.6 s
one 16 KB directoryName × 2000 subtrees59.4 KB1.5 s
Without GMP and intl, the 1000 × 1000 directoryName chain takes 23.5 s.

Impact

An application that validates certification paths it receives can be made to spend seconds of CPU per chain, and a few parallel requests tie up its workers. The attacker needs a CA certificate that chains to a trust anchor the application accepts, since every certificate is checked for its signature before its names are compared. The default PathValidationConfig is affected.

Affected versions

1.6.2 and 1.6.3. Name constraints are not enforced before 1.6.2 (GHSA-3p3r-m556-g5px), so this cost does not arise there.

Patches

1.6.4 prepares each RDN once per validation instead of once per comparison, and refuses a URI or mailbox host longer than 255 octets. It counts the comparisons a path takes before checking the names of each certificate, a directoryName subtree counting once per RDN, and refuses the path with a PathValidationException once it takes more than 65 536. A path at that bound validates in about 0.25 s, and the chains above are refused in about 16 ms. Real paths stay far below the bound.

Workarounds

Upgrade. If you cannot, limit the size of the chains you accept, and refuse a chain whose certificates together carry more than a few dozen name constraint subtrees or subject alternative names.


Source: NVD

Connexe PHP Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-rrcw-wmw5-fhhfMEDIUM5.9
  • PHP logoPHP
  • spomky-labs/pki-framework
NonOuiDec 05, 2026
GHSA-cw43-4q57-3pf3MEDIUM5.9
  • PHP logoPHP
  • spomky-labs/pki-framework
NonOuiDec 05, 2026
GHSA-8455-6cc5-5q3xMEDIUM5.9
  • PHP logoPHP
  • spomky-labs/pki-framework
NonOuiDec 05, 2026
GHSA-ffhw-jhcg-cg73MEDIUM5.3
  • PHP logoPHP
  • spomky-labs/pki-framework
NonOuiDec 05, 2026
GHSA-cj2p-wqcw-66qfMEDIUM5.3
  • PHP logoPHP
  • spomky-labs/pki-framework
NonOuiDec 05, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités