{"schemaVersion":3,"id":"CVE-2026-42789","aliases":["UBUNTU-CVE-2026-42789","DEBIAN-CVE-2026-42789"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-05-27T12:23:06.355Z","modified":"2026-10-14T16:55:37.359Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":7,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":5.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":5.6,"impact":4.2,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7,"severity":"high","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00351,"percentile":0.27266,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.02100000000000001,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0033},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00351,"percentile":0.27266}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0033,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00351,"percentile":0.27266}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-295","name":"Improper Certificate Validation","description":"The product does not validate, or incorrectly validates, a certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-296","name":"Improper Following of a Certificate's Chain of Trust","description":"The product does not follow, or incorrectly follows, the chain of trust for a certificate back to a trusted root certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/296.html"}],"affected":[{"vendor":"debian","product":"erlang","name":"erlang","label":"erlang","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/erlang","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1:27.3.4.1+dfsg-1+deb13u3","noFixRecorded":false,"fixedIn":null},{"text":"< 1:27.3.4.12+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1:27.3.4.1+dfsg-1+deb13u3 | < 1:27.3.4.12+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"erlang","name":"erlang","label":"erlang","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/erlang","purlType":"deb","versions":[{"text":"< 1:16.b.3-dfsg-1ubuntu2.2+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 1:18.3-dfsg-1ubuntu3.1+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 1:20.2.2+dfsg-1ubuntu2+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 1:22.2.7+dfsg-1ubuntu0.5+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 1:24.2.1+dfsg-1ubuntu0.8","noFixRecorded":false,"fixedIn":null},{"text":"< 1:25.3.2.8+dfsg-1ubuntu4.8","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1:27.3.4.6+dfsg-1ubuntu0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:16.b.3-dfsg-1ubuntu2.2+esm3 | < 1:18.3-dfsg-1ubuntu3.1+esm4 | < 1:20.2.2+dfsg-1ubuntu2+esm4 | < 1:22.2.7+dfsg-1ubuntu0.5+esm3 | < 1:24.2.1+dfsg-1ubuntu0.8 | < 1:25.3.2.8+dfsg-1ubuntu4.8 | All versions (No fix recorded) | < 1:27.3.4.6+dfsg-1ubuntu0.2","eol":null,"hubHref":null},{"vendor":"erlang","product":"erlang\\/otp","name":"Erlang/OTP","label":"erlang\\/otp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 17.0, < 26.2.5.21","noFixRecorded":false,"fixedIn":null},{"text":"≥ 27.0, < 27.3.4.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 28.0, < 28.5.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 29.0, < 29.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 17.0, < 26.2.5.21 | ≥ 27.0, < 27.3.4.12 | ≥ 28.0, < 28.5.0.1 | ≥ 29.0, < 29.0.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"erlang","label":"Erlang","category":"lang"}},"hubHref":"/vendor/erlang/erlangotp"},{"vendor":"erlang","product":"otp","name":"OTP","label":"otp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 17.0","noFixRecorded":true,"fixedIn":null},{"text":"≥ 0.22","noFixRecorded":true,"fixedIn":null},{"text":"≥ 84adefa331c4159d432d22840663c38f155cd4c1","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 17.0 (No fix recorded) | ≥ 0.22 (No fix recorded) | ≥ 84adefa331c4159d432d22840663c38f155cd4c1 (No fix recorded)","eol":null,"hubHref":"/vendor/erlang/otp"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-c99q-jmpx-v8qq","label":"github.com/erlang/otp/security/advisories/GHSA-c99q-jmpx-v8qq","hostname":"github.com","tags":["Related","Vendor Advisory","REPORT"]},{"url":"https://cna.erlef.org/cves/CVE-2026-42789.html","label":"cna.erlef.org/cves/CVE-2026-42789.html","hostname":"cna.erlef.org","tags":["Related","REPORT","Third Party Advisory"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-42789","label":"osv.dev/vulnerability/EEF-CVE-2026-42789","hostname":"osv.dev","tags":["Related","REPORT","Third Party Advisory"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","label":"www.erlang.org/doc/system/versions.html","hostname":"www.erlang.org","tags":["X Version Scheme","REPORT","Product"]},{"url":"https://github.com/erlang/otp/commit/471cd2f664300a95353c467873800bbe706005db","label":"github.com/erlang/otp/commit/471cd2f664300a95353c467873800bbe706005db","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://github.com/erlang/otp/commit/59c8d824386b2eb1614ff9340624843ef6aca0fd","label":"github.com/erlang/otp/commit/59c8d824386b2eb1614ff9340624843ef6aca0fd","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42789","label":"access.redhat.com/security/cve/CVE-2026-42789","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482093","label":"bugzilla.redhat.com/show_bug.cgi?id=2482093","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42789.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42789.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:54757","label":"access.redhat.com/errata/RHSA-2026:54757","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:39809","label":"access.redhat.com/errata/RHSA-2026:39809","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://ubuntu.com/security/CVE-2026-42789","label":"ubuntu.com/security/CVE-2026-42789","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-42789","label":"www.cve.org/CVERecord?id=CVE-2026-42789","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8901-1","label":"ubuntu.com/security/notices/USN-8901-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-42789","label":"security-tracker.debian.org/tracker/CVE-2026-42789","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42789","label":"nvd.nist.gov/vuln/detail/CVE-2026-42789","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]},{"url":"https://github.com/erlang/otp/commit/0a05b7ca33fb0b3f0a6cb9ae34252bb3a74032b8","label":"github.com/erlang/otp/commit/0a05b7ca33fb0b3f0a6cb9ae34252bb3a74032b8","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/erlang/otp/commit/75ca4c0dc2bbdb286ac3c3fe89cb4b4d2b4dc333","label":"github.com/erlang/otp/commit/75ca4c0dc2bbdb286ac3c3fe89cb4b4d2b4dc333","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/erlang/otp/commit/82af606b5437c4de1276dbcc8855a47e88231226","label":"github.com/erlang/otp/commit/82af606b5437c4de1276dbcc8855a47e88231226","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:10947-1","OPENSUSE-SU-2026:11559-1","OPENSUSE-SU-2026:20907-1","RHSA-2026:39809","RHSA-2026:54757","RHSA-2026:63160","SUSE-SU-2026:22082-1","SUSE-SU-2026:3579-1","SUSE-SU-2026:3645-1","USN-8901-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:10947-1","OPENSUSE-SU-2026:11559-1","OPENSUSE-SU-2026:20907-1","SUSE-SU-2026:22082-1","SUSE-SU-2026:3579-1","SUSE-SU-2026:3645-1","USN-8901-1"]},"timeline":[{"kind":"published","date":"2026-05-27T12:23:06.355Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T16:55:37.359Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T11:52:29.031Z","stale":false,"partial":false}}