{"id":"CVE-2026-105280","revision":"41cce8a49ef94f7d9cac623919dbcb7a","records":[{"revision":"41cce8a49ef94f7d9cac623919dbcb7a","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-105280","aliases":[],"title":"Hex writes unverified package tarballs to standard output in mix hex.package fetch","description":"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.","state":0,"publishedAt":"2026-10-12T15:30:14.126+00:00","modifiedAt":"2026-10-16T17:37:21.498+00:00","affected":[{"ecosystem":"Vendor product","name":"hex","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"cpes\": [\n                        \"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Mix.Tasks.Hex.Package'\",\n                        \"'Elixir.Hex.SCM'\"\n                    ],\n                    \"packageName\": \"hex\",\n                    \"packageURL\": \"pkg:otp/hex?repository_url=https:%2F%2Fgithub.com%2Fhexpm%2Fhex&vcs_url=repository_url=git%2Bhttps:%2F%2Fgithub.com%2Fhexpm%2Fhex.git\",\n                    \"product\": \"hex\",\n                    \"programFiles\": [\n                        \"lib/mix/tasks/hex.package.ex\",\n                        \"lib/hex/scm.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Mix.Tasks.Hex.Package':run/1\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Hex.SCM':fetch/3\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/hexpm/hex\",\n                    \"vendor\": \"hexpm\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"2.5.2\",\n                            \"status\": \"affected\",\n                            \"version\": \"0.20.2\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"hexpm/hex","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Mix.Tasks.Hex.Package'\",\n                        \"'Elixir.Hex.SCM'\"\n                    ],\n                    \"packageName\": \"hexpm/hex\",\n                    \"packageURL\": \"pkg:github/hexpm/hex\",\n                    \"product\": \"hex\",\n                    \"programFiles\": [\n                        \"lib/mix/tasks/hex.package.ex\",\n                        \"lib/hex/scm.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Mix.Tasks.Hex.Package':run/1\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Hex.SCM':fetch/3\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/hexpm/hex\",\n                    \"vendor\": \"hexpm\",\n                    \"versions\": [\n                        {\n                            \"changes\": [\n                                {\n                                    \"at\": \"8a14632ca6ba8a8afd2a3f2098bc267c13e13d93\",\n                                    \"status\": \"unaffected\"\n                                },\n                                {\n                                    \"at\": \"69489f8b74213f03db10169e6e5407e6d5fee512\",\n                                    \"status\": \"unaffected\"\n                                }\n                            ],\n                            \"lessThan\": \"*\",\n                            \"status\": \"affected\",\n                            \"version\": \"d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N","score":6.9,"severity":"MEDIUM"}],"references":["https://github.com/hexpm/hex/security/advisories/GHSA-98jr-23pm-vj7c","https://cna.erlef.org/cves/CVE-2026-105280.html","https://osv.dev/vulnerability/EEF-CVE-2026-105280","https://github.com/hexpm/hex/commit/d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c","https://github.com/hexpm/hex/commit/8a14632ca6ba8a8afd2a3f2098bc267c13e13d93","https://github.com/hexpm/hex/commit/69489f8b74213f03db10169e6e5407e6d5fee512"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-105280","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-105280","identifiers":["CVE-2026-105280"]},"retained":false,"historicalAffected":[]}],"coverage":[]}