Skip to main content

CVE-2026-105280: CWE-354 Improper Validation of Integrity Check Value in hexpm hex

0
Medium
VulnerabilityCVE-2026-105280cvecve-2026-105280cwe-354
Published: 10/12/2026 (10/12/2026, 15:30:14 UTC)
Source: CVE Database V5
Vendor/Project: hexpm
Product: hex

Description

CVE-2026-105280 is a vulnerability in the hexpm hex package manager affecting versions from 0.20.2 up to but not including 2.5.2. It involves improper validation of integrity check values when fetching packages with the command 'mix hex.package fetch' using the --output - option. This flaw allows a malicious package mirror to substitute altered tarball bytes that are written to standard output without checksum verification, potentially leading to untrusted code being processed. Additionally, diagnostic messages and error responses containing tar archives can be written to standard output before verification, enabling extraction of untrusted files in pipelines. The CVSS 4.0 score is 6.9, indicating a medium severity impact.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
High
Subsq. Availability
None
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

Affected software

hexpm

hex

Affected versions
>=0.20.2 <2.5.2

hexpm

hex

GitHub Actionsmore threats →cve
hex
pkg:github/hex
Affected versions
>=0.20.2 <2.5.2
GitHub Actionsmore threats →cve
hexpm/hex
pkg:github/hexpm/hex
CPE configurations
cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/12/2026, 16:03:58 UTC

Technical Analysis

The vulnerability arises because hex compares checksums of fetched tarballs only when writing to a file or unpacking, but not when writing to standard output via 'mix hex.package fetch PACKAGE VERSION --output -'. The Hex.SCM.fetch/3 function returns bytes without verifying the tarball's integrity, allowing a mirror configured with HEX_MIRROR_URL or mirror_url to serve altered tarballs that are output and accepted by the command. Furthermore, diagnostic output such as HTTP error bodies or API warnings can include tar archives that are emitted to standard output before checksum verification, enabling extraction of potentially malicious files even if the checksum later fails. This affects hex versions >=0.20.2 and <2.5.2.

Potential Impact

An attacker controlling a package mirror can serve altered or malicious tarballs that bypass integrity checks when the package is fetched with the --output - option, potentially leading to execution or extraction of untrusted code. Pipelines that unpack standard output may inadvertently process malicious archives included in error responses or diagnostics. This undermines the trust model of package integrity verification in hex for these specific fetch scenarios.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using 'mix hex.package fetch' with the --output - option against untrusted or mirrored repositories. Prefer fetching packages with checksum verification enabled by writing to files or using the --output FILE option. Monitor vendor communications for updates and apply official patches once released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-10-08T13:45:02.134Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6acd01702cdf04f656aa7066

Added to database: 10/12/2026, 15:49:04 UTC

Last enriched: 10/12/2026, 16:03:58 UTC

Last updated: 10/12/2026, 18:57:55 UTC

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses