CVE-2026-119189 pathLenConstraint de X.509 no aplicado por verifyCertificateChain() en Forge sin keyUsage
node-forge aplicaba basicConstraints.pathLenConstraint de un certificado CA X.509 solo si ese certificado también incluía la extensión keyUsage. La explotación requiere una CA con restricción de longitud de ruta sin keyUsage que encadene a una raíz confiable y un atacante con la clave privada de esa CA o un certificado de CA subordinada; así podía construir una cadena que excediera la longitud declarada y aun pasar pki.verifyCertificateChain(). Corregido en la versión 1.4.1.
CVSS 3.1
- Probabilidad de explotación · EPSS del 09/110,2 % · percentil 5
- Explotada activamenteNo confirmada
- Exploit públicoNo conocido
Afectados
digitalbazaar forge
< 1.4.1
Qué hacer
- Verificá si usás forge y en qué versión.
- Actualizá a la versión corregida que indique el fabricante en su aviso o aplicá su mitigación.
- Revisá registros y accesos de los sistemas expuestos para descartar un uso previo.
Calculadora CVSS
CVSS 3.1 · 5.9 MEDIA
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- Vector de ataqueRed
- Complejidad del ataqueAlta
- Privilegios requeridosNinguno
- Interacción del usuarioNinguna
- AlcanceSin cambio
- ConfidencialidadNinguna
- IntegridadAlta
- DisponibilidadNinguna
Descripción original
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, node-forge enforced an X.509 CA certificate's basicConstraints.pathLenConstraint only when that certificate also carried a keyUsage extension. Exploitation requires a path-length-constrained CA without keyUsage that chains to a root trusted by the application, and an attacker who holds that CA's private key or obtains a subordinate CA certificate from it. The attacker could then construct a chain exceeding the declared path length that still passed pki.verifyCertificateChain(). Public web PKI CA certificates normally include keyUsage; private PKIs with CA certificates created without it are more likely to be affected. This issue is fixed in version 1.4.1.
Referencias (3)
Resumen traducido automáticamente de la descripción original. Fuente: Nureq Monitor. Cómo funciona.