{"schema":"threatline.record/2","record":{"id":"CVE-2026-105280","aliases":["GHSA-98jr-23pm-vj7c"],"summary":"Hex writes unverified package tarballs to standard output in mix hex.package fetch","details":"Improper Validation of Integrity Check Value vulnerability in hexpm hex allows a package mirror to substitute the tarball that mix hex.package fetch PACKAGE VERSION --output - writes to standard output.\n\nHex compares a fetched tarball's inner and outer checksums with the repository's signed registry before writing it to a file or unpacking it. The standard output branch of mix hex.package fetch writes the bytes returned by Hex.SCM.fetch/3 without that comparison, and Hex.SCM.fetch/3 doesn't verify freshly downloaded tarballs itself. When a mirror configured with HEX_MIRROR_URL or mirror_url serves altered bytes, the command prints them and exits successfully, while the same fetch with --output FILE fails with a checksum mismatch.\n\nHex also prints diagnostics to standard output while the command runs: the body of a failed HTTP response from the update check or a registry fetch, and API warnings from the x-hex-message header. A mirror that answers one of those requests with an error whose body is a tar archive gets that archive written to standard output ahead of the verified tarball, so a pipeline that unpacks standard output extracts the mirror's files. This happens even when the checksum check then fails, because the archive is already on standard output.\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-105280","source_modified_at":"2026-10-16T17:37:21.498Z","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-105280","source_modified_at":"2026-10-16T17:37:21.498Z","fetched_at":"2026-10-23T18:48:36.087640Z","product":"hex","vendor":"hexpm","versions":[{"changes":[{"at":"8a14632ca6ba8a8afd2a3f2098bc267c13e13d93","status":"unaffected"},{"at":"69489f8b74213f03db10169e6e5407e6d5fee512","status":"unaffected"}],"lessThan":"*","status":"affected","version":"d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"GitHub Advisory Database","source_url":"https://github.com/hexpm/hex/security/advisories/GHSA-98jr-23pm-vj7c","source_modified_at":"2026-10-12T15:29:53Z","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-105280","source_modified_at":"2026-10-16T17:37:21.498Z","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-98jr-23pm-vj7c","source_modified_at":"2026-10-12T15:29:53Z","fetched_at":"2026-10-23T20:39:26.410340Z","package":{"ecosystem":"otp","name":"hex"},"version":"2.5.2"}],"cvss":6.9,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00195,"percentile":0.0869,"score_date":"2026-10-23"},"published_at":"2026-10-12T15:30:14.126Z","modified_at":"2026-10-16T17:37:21.498Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-105280","fetched_at":"2026-10-23T18:48:36.087640Z","source_modified_at":"2026-10-16T17:37:21.498Z"},{"source":"GitHub Advisory Database","url":"https://github.com/hexpm/hex/security/advisories/GHSA-98jr-23pm-vj7c","fetched_at":"2026-10-23T20:39:26.410340Z","source_modified_at":"2026-10-12T15:29:53Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-105280","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-98jr-23pm-vj7c","tags":["related","vendor-advisory"]},{"source":"CVE List","url":"https://cna.erlef.org/cves/CVE-2026-105280.html","tags":["related"]},{"source":"CVE List","url":"https://osv.dev/vulnerability/EEF-CVE-2026-105280","tags":["related"]},{"source":"CVE List","url":"https://github.com/hexpm/hex/commit/d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c","tags":["related"]},{"source":"CVE List","url":"https://github.com/hexpm/hex/commit/8a14632ca6ba8a8afd2a3f2098bc267c13e13d93","tags":["patch"]},{"source":"CVE List","url":"https://github.com/hexpm/hex/commit/69489f8b74213f03db10169e6e5407e6d5fee512","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:35:17.920015Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-16T17:37:21.498Z","content_hash":"c1c1ffc1bc164b55cff22fd60def0649ae1958b5e042076ab586cb77da04d3bf"}}
