# CVE-2026-105280: Hex writes unverified package tarballs to standard output in mix hex.package fetch

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-12 · Modified: 2026-11-20
- Aliases: DEBIAN-CVE-2026-105280, UBUNTU-CVE-2026-105280
- Record: https://cvemate.com/vulnerability/CVE-2026-105280 · JSON: https://cvemate.com/vulnerability/CVE-2026-105280/json

## Description

```text
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.

Hex 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.

Hex 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.

This issue affects hex: from 0.20.2 before 2.5.2.
```

## Signals

- CVSS: 6.9 medium (v4.0, NVD) 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/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
- EPSS: 0.264%, percentile 19.525%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian erlang-hex (Debian): All versions (No fix recorded) \| \< 2.5.3-2
- ubuntu erlang-hex (Ubuntu): All versions (No fix recorded)
- hexpm hex: ≥ 0.20.2, \< 2.5.2 \| ≥ d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c (No fix recorded)

## References

- <https://cna.erlef.org/cves/CVE-2026-105280.html>
- <https://github.com/hexpm/hex/commit/69489f8b74213f03db10169e6e5407e6d5fee512>
- <https://github.com/hexpm/hex/commit/8a14632ca6ba8a8afd2a3f2098bc267c13e13d93>
- <https://github.com/hexpm/hex/commit/d1f5a085d9d4748e1f7d195e4bc39ebd77c28d9c>
- <https://github.com/hexpm/hex/security/advisories/GHSA-98jr-23pm-vj7c>
- <https://osv.dev/vulnerability/EEF-CVE-2026-105280>
- <https://security-tracker.debian.org/tracker/CVE-2026-105280>
- <https://ubuntu.com/security/CVE-2026-105280>
- <https://www.cve.org/CVERecord?id=CVE-2026-105280>

---

Data as of 2026-12-05T07:09:30.722Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
