{"id":"CVE-2026-42789","aliases":["CVE-2026-42789","EEF-CVE-2026-42789","GHSA-c99q-jmpx-v8qq"],"related":[],"kind":"vulnerability","state":"published","title":"Non-CA certificate accepted as intermediate issuer in public_key path validation","summary":"Improper Following of a Certificate's Chain of Trust vulnerability in Erlang OTP public_key (pubkey_cert module) allows a non-CA certificate to be accepted as an intermediate issuer, enabling certificate chain forgery.\n\nIn lib/public_key/src/pubkey_cert.erl, pubkey_cert:validate_extensions/7 contains two flaws that together allow a certificate with basicConstraints cA:false and no keyUsage extension to be used as an intermediate issuer in a chain passed to public_key:pkix_path_validation/3: the cA:false clause recurses into the remaining extensions without rejecting the certificate when it is in issuer position, and the keyUsage check only fires when the extension is present, so a certificate lacking keyUsage entirely bypasses the keyCertSign enforcement.\n\nAny party holding an end-entity certificate with basicConstraints cA:false and no keyUsage extension, issued by any CA in the victim's trust store, can use that certificate's private key to sign forged leaf certificates for arbitrary identities. public_key:pkix_path_validation/3 accepts the resulting chain, and by extension every TLS or mTLS endpoint built on the OTP ssl application that relies on the default verifier is affected, including server identity verification on the client side and client certificate verification on mTLS servers.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.19, OTP 28.5.0.8, and OTP 29.1.2, corresponding to public_key from 0.22 before 1.17.1.7, 1.20.3.6, and 1.21.8. Whether OTP before OTP 17.0, corresponding to public_key before 0.22, is affected is unknown.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Following of a Certificate's Chain of Trust vulnerability in Erlang OTP public_key (pubkey_cert module) allows a non-CA certificate to be accepted as an intermediate issuer, enabling certificate chain forgery.\n\nIn lib/public_key/src/pubkey_cert.erl, pubkey_cert:validate_extensions/7 contains two flaws that together allow a certificate with basicConstraints cA:false and no keyUsage extension to be used as an intermediate issuer in a chain passed to public_key:pkix_path_validation/3: the cA:false clause recurses into the remaining extensions without rejecting the certificate when it is in issuer position, and the keyUsage check only fires when the extension is present, so a certificate lacking keyUsage entirely bypasses the keyCertSign enforcement.\n\nAny party holding an end-entity certificate with basicConstraints cA:false and no keyUsage extension, issued by any CA in the victim's trust store, can use that certificate's private key to sign forged leaf certificates for arbitrary identities. public_key:pkix_path_validation/3 accepts the resulting chain, and by extension every TLS or mTLS endpoint built on the OTP ssl application that relies on the default verifier is affected, including server identity verification on the client side and client certificate verification on mTLS servers.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.19, OTP 28.5.0.8, and OTP 29.1.2, corresponding to public_key from 0.22 before 1.17.1.7, 1.20.3.6, and 1.21.8. Whether OTP before OTP 17.0, corresponding to public_key before 0.22, is affected is unknown.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Following of a Certificate's Chain of Trust vulnerability in Erlang OTP `public_key` (`pubkey_cert` module) allows a non-CA certificate to be accepted as an intermediate issuer, enabling certificate chain forgery.\n\nIn `lib/public_key/src/pubkey_cert.erl`, `pubkey_cert:validate_extensions/7` contains two flaws that together allow a certificate with `basicConstraints cA:false` and no `keyUsage` extension to be used as an intermediate issuer in a chain passed to `public_key:pkix_path_validation/3`: the `cA:false` clause recurses into the remaining extensions without rejecting the certificate when it is in issuer position, and the `keyUsage` check only fires when the extension is present, so a certificate lacking `keyUsage` entirely bypasses the `keyCertSign` enforcement.\n\nAny party holding an end-entity certificate with `basicConstraints cA:false` and no `keyUsage` extension, issued by any CA in the victim's trust store, can use that certificate's private key to sign forged leaf certificates for arbitrary identities. `public_key:pkix_path_validation/3` accepts the resulting chain, and by extension every TLS or mTLS endpoint built on the OTP `ssl` application that relies on the default verifier is affected, including server identity verification on the client side and client certificate verification on mTLS servers.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.19, OTP 28.5.0.8, and OTP 29.1.2, corresponding to public_key from 0.22 before 1.17.1.7, 1.20.3.6, and 1.21.8. Whether OTP before OTP 17.0, corresponding to public_key before 0.22, is affected is unknown.\n\n## Workarounds\n\nThe `verify_fun` option in the `ssl` or `public_key` application can be used to ensure that path validation rejects chains where an intermediate certificate does not have `basicConstraints cA:true`.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de seguimiento incorrecto de la cadena de confianza de un certificado en Erlang OTP public_key (módulo pubkey_cert) permite que un certificado que no es de CA sea aceptado como emisor intermedio, lo que posibilita la falsificación de la cadena de certificados.\n\nEn lib/public_key/src/pubkey_cert.erl, pubkey_cert:validate_extensions/7 contiene dos fallos que juntos permiten que un certificado con basicConstraints cA:false y sin extensión keyUsage sea utilizado como emisor intermedio en una cadena pasada a public_key:pkix_path_validation/3: la cláusula cA:false recurre en las extensiones restantes sin rechazar el certificado cuando está en posición de emisor, y la verificación de keyUsage solo se activa cuando la extensión está presente, por lo que un certificado que carece de keyUsage elude completamente la aplicación de keyCertSign.\n\nCualquier parte que posea un certificado de entidad final con basicConstraints cA:false y sin extensión keyUsage, emitido por cualquier CA en el almacén de confianza de la víctima, puede usar la clave privada de ese certificado para firmar certificados hoja falsificados para identidades arbitrarias. public_key:pkix_path_validation/3 acepta la cadena resultante, y por extensión, cada endpoint TLS o mTLS construido sobre la aplicación OTP ssl que depende del verificador predeterminado se ve afectado, incluyendo la verificación de identidad del servidor en el lado del cliente y la verificación de certificados del cliente en servidores mTLS.\n\nEste problema afecta a OTP desde la versión OTP 17.0 hasta versiones anteriores a la OTP 27.3.4.19, así como a las versiones OTP 28.5.0.8 y OTP 29.1.2, lo que corresponde a public_key desde la versión 0.22 hasta versiones anteriores a la 1.17.1.7, así como a las versiones 1.20.3.6 y 1.21.8. Se desconoce si OTP en versiones anteriores a la OTP 17.0, lo que corresponde a public_key en versiones anteriores a la 0.22, se ve afectado.","source":"nvd"}],"published":"2026-05-27T12:23:06.355Z","modified":"2026-11-25T06:30:21.653Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N","score":7,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N","score":7,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8,"rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-295","CWE-296"],"affected":[{"ranges":[{"type":"otp","introduced":"0.22","fixed":"*","status":"affected"}],"vendor":"Erlang","product":"OTP","package":"public_key","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","repo":"https://github.com/erlang/otp","source":"cvelist"},{"ranges":[{"type":"otp","introduced":"17.0","fixed":"*","status":"affected"}],"vendor":"Erlang","product":"OTP","package":"otp","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"git","introduced":"84adefa331c4159d432d22840663c38f155cd4c1","fixed":"*","status":"affected"},{"type":"git","introduced":"0a05b7ca33fb0b3f0a6cb9ae34252bb3a74032b8","fixed":"*","status":"unaffected"},{"type":"git","introduced":"75ca4c0dc2bbdb286ac3c3fe89cb4b4d2b4dc333","fixed":"*","status":"unaffected"},{"type":"git","introduced":"82af606b5437c4de1276dbcc8855a47e88231226","fixed":"*","status":"unaffected"}],"vendor":"Erlang","product":"OTP","package":"erlang/otp","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","repo":"https://github.com/erlang/otp","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:23.3.4.18-2.el8ost","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenStack Platform 16.2","package":"erlang","cpe":"cpe:/a:redhat:openstack:16.2::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:26.2.5.21-2.el9ost","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenStack Services on OpenShift 18.0","package":"erlang","cpe":"cpe:/a:redhat:openstack:18.0::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"erlang27","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenStack Platform 17.1","package":"erlang","cpe":"cpe:/a:redhat:openstack:17.1","source":"cvelist"},{"ranges":[{"type":"git","introduced":"84adefa331c4159d432d22840663c38f155cd4c1","status":"affected","fixed":"0a05b7ca33fb0b3f0a6cb9ae34252bb3a74032b8"},{"type":"git","status":"affected","fixed":"75ca4c0dc2bbdb286ac3c3fe89cb4b4d2b4dc333"},{"type":"git","status":"affected","fixed":"82af606b5437c4de1276dbcc8855a47e88231226"}],"repo":"https://github.com/erlang/otp","source":"eef"},{"ranges":[{"status":"affected","introduced":"17.0","fixed":"26.2.5.21"},{"status":"affected","introduced":"27.0","fixed":"27.3.4.12"},{"status":"affected","introduced":"28.0","fixed":"28.5.0.1"},{"status":"affected","introduced":"29.0","fixed":"29.0.1"}],"vendor":"erlang","product":"erlang/otp","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-c99q-jmpx-v8qq","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-42789.html","tags":["related","third-party-advisory","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-42789","tags":["related","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["product","web","x-version-scheme"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/0a05b7ca33fb0b3f0a6cb9ae34252bb3a74032b8","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/75ca4c0dc2bbdb286ac3c3fe89cb4b4d2b4dc333","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/82af606b5437c4de1276dbcc8855a47e88231226","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42789","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482093","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42789.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:54757","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:39809","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]}],"credits":["John Downey","Jakub Witczak","Ingela Anderton Andin","Ada Logics"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-27T15:41:47.903Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42789","url":"https://www.cve.org/CVERecord?id=CVE-2026-42789","licence":"CVE Terms of Use","modified":"2026-11-20T06:01:43.965Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-42789","url":"https://osv.dev/vulnerability/EEF-CVE-2026-42789","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:21.653Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42789","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42789","licence":"Public domain","modified":"2026-11-20T06:17:26.443Z"}],"updatedAt":"2026-11-25T22:59:22.471Z","epss":{"score":0.00351,"percentile":0.21176,"date":"2026-11-30T12:00:22.000Z"}}