CVE-2026-32148
Lockfile checksums not verified in Hex allows dependency integrity bypass
Check your servers for CVE-2026-32148
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-32148 affects hex, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Insufficient Verification of Data Authenticity vulnerability in hexpm hex (Hex.RemoteConverger module) allows dependency integrity bypass via unverified lockfile checksums.
Hex stores checksums for dependencies in the mix.lock file to ensure reproducible and integrity-checked builds. However, Hex.RemoteConverger.verify_resolved/2 never executes checksum verification because the lock data returned by Hex.Utils.lock/1 uses string-based dependency names, while the verification logic compares against atom-based names. This type mismatch causes the verification code path to be silently skipped. Checksums are still validated when packages are initially downloaded from the registry, but mismatches between the lockfile and resolved dependencies are not detected.
An attacker who can influence cached packages (e.g., via local cache poisoning or a compromised registry) can provide modified dependency contents that will be accepted without detection. The mix.lock file is silently rewritten with the checksum values from the registry, erasing evidence of tampering.
This issue affects hex: from 0.16.0 before 2.4.2.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 30 Apr 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-354 Improper Validation of Integrity Check Value
- CWE-494 Download of Code Without Integrity Check
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
hex
package
hex |
affected from 0.16.0, before 2.4.2
Other versions: unaffected
|
|
hex
package
hexpm/hex |
affected from e01576f28c64af9fae6eb17e2dad30f6efcb303c, before d7528c8199a1144511508bf3a6460026a5a14c8e
Other versions: unaffected
|
Is my server affected?
Find the installed version of hex and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i hex
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-32148 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-32148RHEL, Rocky, Alma, Fedora
rpm -q hex
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-32148Alpine
apk list --installed | grep -i hexWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-32148
trivy image --scanners vuln IMAGE | grep CVE-2026-32148
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit d7528c8 in hexpm/hex github.com · patch
Exploits and proof of concept
- Lockfile checksums not verified in Hex allows dependency integrity bypass github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-32148 cna.erlef.org · related
- OSV record EEF-CVE-2026-32148 osv.dev · related
- Introducing commit e01576f in hexpm/hex github.com · related
Source: the record CVE-2026-32148 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse