{"schema":"threatline.record/2","record":{"id":"CVE-2026-103503","aliases":["GHSA-rw8q-hg7m-cxgr"],"summary":"Hex trusts its bundled CA certificates when cacerts_path is set","details":"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.","categories":["Unclassified"],"product":"hex","vendor":"hexpm","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-103503","source_modified_at":"2026-10-16T17:32:45.735Z","fetched_at":"2026-10-23T18:48:36.087640Z","product":"hex","vendor":"hexpm","versions":[{"lessThan":"2.5.2","status":"affected","version":"0.20.2","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-103503","source_modified_at":"2026-10-16T17:32:45.735Z","fetched_at":"2026-10-23T18:48:36.087640Z","product":"hex","vendor":"hexpm","versions":[{"changes":[{"at":"5f5a2136c7cf5991b6e8a30d645ca9f8e74b0785","status":"unaffected"},{"at":"6232a6498015e559743bec4f4fbec9138837cec8","status":"unaffected"}],"lessThan":"*","status":"affected","version":"c9b26a46928bfcd546773571e09c1d05f4cd9fb7","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"GitHub Advisory Database","source_url":"https://github.com/hexpm/hex/security/advisories/GHSA-rw8q-hg7m-cxgr","source_modified_at":"2026-10-12T15:17:39Z","fetched_at":"2026-10-23T20:39:26.410340Z","package":{"ecosystem":"otp","name":"hex"},"range":">= 0.20.2, < 2.5.2"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-103503","source_modified_at":"2026-10-16T17:32:45.735Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"hex","ecosystem":null},"version":"2.5.2","basis":"first unaffected version stated in the CVE record"},{"source":"GitHub Advisory Database","source_url":"https://github.com/hexpm/hex/security/advisories/GHSA-rw8q-hg7m-cxgr","source_modified_at":"2026-10-12T15:17:39Z","fetched_at":"2026-10-23T20:39:26.410340Z","package":{"ecosystem":"otp","name":"hex"},"version":"2.5.2"}],"cvss":5.9,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00191,"percentile":0.08329,"score_date":"2026-10-23"},"published_at":"2026-10-12T15:17:45.545Z","modified_at":"2026-10-16T17:32:45.735Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-103503","fetched_at":"2026-10-23T18:48:36.087640Z","source_modified_at":"2026-10-16T17:32:45.735Z"},{"source":"GitHub Advisory Database","url":"https://github.com/hexpm/hex/security/advisories/GHSA-rw8q-hg7m-cxgr","fetched_at":"2026-10-23T20:39:26.410340Z","source_modified_at":"2026-10-12T15:17:39Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-103503","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","GitHub Advisory Database","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/hexpm/hex/security/advisories/GHSA-rw8q-hg7m-cxgr","tags":["related","vendor-advisory"]},{"source":"CVE List","url":"https://cna.erlef.org/cves/CVE-2026-103503.html","tags":["related"]},{"source":"CVE List","url":"https://osv.dev/vulnerability/EEF-CVE-2026-103503","tags":["related"]},{"source":"CVE List","url":"https://github.com/hexpm/hex/commit/c9b26a46928bfcd546773571e09c1d05f4cd9fb7","tags":["related"]},{"source":"CVE List","url":"https://github.com/hexpm/hex/commit/5f5a2136c7cf5991b6e8a30d645ca9f8e74b0785","tags":["patch"]},{"source":"CVE List","url":"https://github.com/hexpm/hex/commit/6232a6498015e559743bec4f4fbec9138837cec8","tags":["patch"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-16T17:30:53.768172Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-16T17:32:45.735Z","content_hash":"3dda8cad4bc074e024065d310d40ac2c25d6bf345481c7197bf7dbbcb69062c1"}}
