GHSA-cw43-4q57-3pf3: 
PHP Analyse et atténuation de la vulnérabilité

What goes wrong

The path validator and the attribute certificate validator check the key that made each signature against a policy. That policy only measured the size of RSA moduli. Two kinds of issuer key went through under every configuration, the hardened one included. An RSA key whose public exponent is 1. Verification computes s^e mod n, which is s itself when e = 1. The EMSA-PKCS1-v1_5 encoding of any digest is then a valid signature under that key. Anyone can produce it without a private key. OpenSSL 3 verifies such signatures, and nothing in the library refused the exponent. An EC key on a small curve. OpenSSL verifies ECDSA signatures on curves such as secp112r1, secp128r1 and sect113r1. A discrete logarithm on secp112r1 was computed publicly in 2009. The policy had no floor for EC keys, and its docblock said that all the curves the library knows are strong enough. The issuer key was also decoded outside the block that turns a failure into a validation failure. An issuer key that does not decode made validate() throw a DecodeException instead of a PathValidationException.

Impact

The precondition is a CA the application trusts that holds, or has certified, such a key. With an RSA exponent of 1, anyone can then issue certificates and attribute certificates for any subject under that CA, and PathValidator and ACValidator accept them. With a curve below 160 bits, an attacker who computes the discrete logarithm can do the same. The application cannot refuse these keys: no option of PathValidationConfig covers them, and the hardened settings did not help. Public certificate authorities refuse such keys. Private, enterprise and device PKIs, and the trust anchors an application loads from elsewhere, are not bound to.

Affected versions

All versions up to 1.6.3. No version checked the RSA exponent or the size of an EC curve.

Patches

1.6.4. An RSA issuer key whose public exponent is even or below 3 is always refused. RFC 8017 does not allow such an exponent, and no private key matches an even one. Keys with e = 3 and e = 65537 are accepted as before. PathValidationConfig gains a floor on the size of the group order of an EC issuer key's curve. The default, DEFAULT_MINIMUM_EC_KEY_SIZE, is 160 bits, which matches the strength of the default 1024 bit RSA floor. It refuses secp112r1, secp112r2, secp128r1, secp128r2, sect113r1, sect113r2, sect131r1, sect131r2 and the WTLS curves below 160 bits. HARDENED_MINIMUM_EC_KEY_SIZE is 224 bits, which matches 2048 bit RSA, to be passed to withMinimumECKeySize() together with HARDENED_MINIMUM_RSA_KEY_SIZE. While a floor is set, a key on a curve whose size the library does not know is refused. withMinimumECKeySize(0) disables the EC check. ACValidator applies the same rules to the attribute authority key. An issuer key or an attribute authority key that does not decode now fails the validation with a PathValidationException or an ACValidationException, the decoding error kept as the previous exception.

Workarounds

Before trusting a validated path, read the public key of every certificate that signed another one, from the trust anchor down. Refuse an RSA key whose exponent is even or below 3, and an EC key whose named curve is not one you accept, such as P-256, P-384 or P-521.


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