{"schemaVersion":4,"id":"CVE-2026-103503","aliases":["DEBIAN-CVE-2026-103503","UBUNTU-CVE-2026-103503"],"status":"published","duplicateOf":null,"title":"Hex trusts its bundled CA certificates when cacerts_path is set","description":"Improper Certificate Validation vulnerability in hexpm hex allows an attacker who can intercept HTTPS connections, and holds a certificate for a Hex host issued by a CA in Hex's bundled CA store, to impersonate that host to users who set cacerts_path to a CA store that leaves that CA out.\n\ncacerts_path (HEX_CACERTS_PATH) is documented as the path to the CA certificate store, used instead of the CA bundle that ships with Hex. Hex.HTTP.SSL.ssl_opts/1 passes the configured store as the cacerts option, but builds the partial_chain callback from the bundled store whether cacerts_path is set or not. Hex.HTTP.SSL.partial_chain/2 accepts a server chain when any certificate in it has the same public key as a bundled CA certificate, so a chain that leads to a bundled CA passes verification although the configured store doesn't contain that CA. Hostname verification still applies.\n\nThis issue affects hex: from 0.20.2 before 2.5.2.","dates":{"published":"2026-10-12T15:17:45.545Z","modified":"2026-11-19T08:21:17.781Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"NVD","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/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":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/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":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":5.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.00252,"percentile":0.17695,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.04500000000000003,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00207},"history":[{"date":"2026-10-13T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00191,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00252,"percentile":0.17695}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00207,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00303,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00252,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00252,"percentile":0.17695}]},"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"}],"affected":[{"vendor":"debian","product":"erlang-hex","name":"erlang-hex","label":"erlang-hex","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/erlang-hex","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 2.5.3-2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.5.3-2","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 2.5.3-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"erlang-hex","name":"erlang-hex","label":"erlang-hex","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/erlang-hex","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"hexpm","product":"hex","name":"hex","label":"hex","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.20.2, < 2.5.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.20.2","startInclusive":true,"end":"2.5.2","endInclusive":false}},{"text":"≥ c9b26a46928bfcd546773571e09c1d05f4cd9fb7","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"range","start":"c9b26a46928bfcd546773571e09c1d05f4cd9fb7","startInclusive":true,"end":null,"endInclusive":false}}],"versionsText":"≥ 0.20.2, < 2.5.2 | ≥ c9b26a46928bfcd546773571e09c1d05f4cd9fb7 (No fix recorded)","eol":null,"hubHref":"/vendor/hexpm/hex"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-103503.html","label":"cna.erlef.org/cves/CVE-2026-103503.html","hostname":"cna.erlef.org","tags":["Related","REPORT"]},{"url":"https://github.com/hexpm/hex/commit/5f5a2136c7cf5991b6e8a30d645ca9f8e74b0785","label":"github.com/hexpm/hex/commit/5f5a2136c7cf5991b6e8a30d645ca9f8e74b0785","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://github.com/hexpm/hex/commit/6232a6498015e559743bec4f4fbec9138837cec8","label":"github.com/hexpm/hex/commit/6232a6498015e559743bec4f4fbec9138837cec8","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://github.com/hexpm/hex/commit/c9b26a46928bfcd546773571e09c1d05f4cd9fb7","label":"github.com/hexpm/hex/commit/c9b26a46928bfcd546773571e09c1d05f4cd9fb7","hostname":"github.com","tags":["Related","REPORT"]},{"url":"https://github.com/hexpm/hex/security/advisories/GHSA-rw8q-hg7m-cxgr","label":"github.com/hexpm/hex/security/advisories/GHSA-rw8q-hg7m-cxgr","hostname":"github.com","tags":["Related","Vendor Advisory","REPORT"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-103503","label":"osv.dev/vulnerability/EEF-CVE-2026-103503","hostname":"osv.dev","tags":["Related","REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-103503","label":"security-tracker.debian.org/tracker/CVE-2026-103503","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-103503","label":"ubuntu.com/security/CVE-2026-103503","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-103503","label":"www.cve.org/CVERecord?id=CVE-2026-103503","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-12T15:17:45.545Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-19T08:21:17.781Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,59],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00252,"stale":false,"promoted":null},{"type":"cvss","source":"nvd","date":"2026-11-19T08:21:17.781Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/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","version":"4.0"},{"type":"cvss","source":"cve.org","date":"2026-11-19T08:21:17.781Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"osv_debian","date":"2026-11-19T08:21:17.781Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/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","version":"4.0"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-19T08:21:17.781Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-10-16T17:30:53.768Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00252,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:18:40.648Z","stale":false,"partial":false}}