{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-103503","id":"CVE-2026-103503","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","descriptionLong":"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.","published":"2026-10-12T15:17:45.545Z","updated":"2026-11-19T09:46:07.437211479Z","reserved":"2026-10-08T15:45:02.372Z","status":"Deferred","rejected":false,"assigner":"EEF","metric":{"version":"4.0","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","rating":"medium","source":"EEF"},"metrics":[{"version":"4.0","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","rating":"medium","source":"EEF"},{"version":"4.0","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","rating":"medium","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"medium","products":["hexpm hex"],"affectedProducts":[{"vendor":"hexpm","product":"hex","defaultStatus":"unaffected","versions":[{"lessThan":"2.5.2","status":"affected","version":"0.20.2","versionType":"semver"}],"platforms":[]},{"vendor":"hexpm","product":"hex","defaultStatus":"unaffected","versions":[{"changes":[{"at":"5f5a2136c7cf5991b6e8a30d645ca9f8e74b0785","status":"unaffected"},{"at":"6232a6498015e559743bec4f4fbec9138837cec8","status":"unaffected"}],"lessThan":"*","status":"affected","version":"c9b26a46928bfcd546773571e09c1d05f4cd9fb7","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-295"],"aliases":["EEF-CVE-2026-103503","GHSA-rw8q-hg7m-cxgr"],"references":[{"url":"https://github.com/hexpm/hex/security/advisories/GHSA-rw8q-hg7m-cxgr","tags":["related","vendor-advisory","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-103503.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-103503","tags":["related","web"]},{"url":"https://github.com/hexpm/hex/commit/c9b26a46928bfcd546773571e09c1d05f4cd9fb7","tags":["related","fix"]},{"url":"https://github.com/hexpm/hex/commit/5f5a2136c7cf5991b6e8a30d645ca9f8e74b0785","tags":["patch","fix"]},{"url":"https://github.com/hexpm/hex/commit/6232a6498015e559743bec4f4fbec9138837cec8","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103503.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103503","tags":["advisory"]},{"url":"https://github.com/hexpm/hex","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00207,"epssPercentile":0.1097,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-103503","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103503","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-103503","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-103503","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}