GHSA-8455-6cc5-5q3x: 
PHP Analyse et atténuation de la vulnérabilité

What goes wrong

GHSA-34rx-vp5j-q2wr bounded the number of nodes in the valid policy tree. It did not bound the work done on the tree, nor the memory held by the expected policy sets of its nodes. Every lookup in PolicyTree walked the tree again from the root, and built each level with array_merge() in a loop, which is quadratic in the width of the level. A certificate with K policies walked the level above it up to 2K times. A policy mapping walked it once per issuer domain policy. Pruning walked every level from the root again, once per certificate. A policy mapping also gave every node of the mapped policy its own copy of the subject domain policies, and the node bound never counted them.

Impact and exposed configurations

A delegated sub-CA under a trust anchor of the application, or any CA below it, can make one validation cost seconds to minutes of CPU, or exhaust the memory of the PHP process. Every signature of the chain is valid. A pathLenConstraint of 0 on the sub-CA does not prevent it, since self-issued certificates are not counted. The default configuration is exposed, and no option of PathValidationConfig turns policy processing off. Measured on 1.6.3 with PHP 8.3 and GMP:

ChainSizeValidation
A level of 2400 policies, then a leaf with 200 policies20 KB9.0 s
The same with 400 leaf policies22 KB19.2 s
A level of 2400 policies, then 400 policy mappings24 KB23.2 s
400 self-issued certificates asserting anyPolicy280 KB4.3 s
800 self-issued certificates asserting anyPolicy560 KB39 s
2400 nodes mapped to 4000 policies each88 KBfatal error, 128 MB memory limit exhausted
Doubling the width of the level multiplies the time by about four. The node bound of GHSA-34rx-vp5j-q2wr fires only after the work is done, or not at all. The memory exhaustion is a fatal error that no catch block stops.
An application is exposed when it validates certificate chains that it did not issue itself, and one of its trust anchors has certified a CA run by someone else: a delegated, cross-certified or bridged CA.

Affected versions

Every release from 1.0.0 to 1.6.3.

Patches

Fixed in 1.6.4. Each step of the policy processing gathers the levels it needs in one walk down the tree, and looks nodes up by expected or valid policy instead of scanning them. The tree counts the nodes it visits, the expected policies it reads or hands out, and the policies and mappings it processes, over the whole path. A path that takes more than 262 144 steps is refused with a PathValidationException. That is a fraction of a second. The widest tree the node bound allows now validates in 20 ms instead of 9 seconds. The results of the policy processing are unchanged for every other path.

Workarounds

No configuration option avoids it. Limiting the size of the chains you accept, and the number of certificates in them, reduces the cost but does not remove it: a 12 KB chain still takes 1.8 seconds. A time limit on the validation stops the CPU exhaustion, not the memory exhaustion.


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