{"id":"EEF-CVE-2026-32148","summary":"Lockfile checksums not verified in Hex allows dependency integrity bypass","details":"## Summary\n\nInsufficient Verification of Data Authenticity vulnerability in hexpm hex (`Hex.RemoteConverger` module) allows dependency integrity bypass via unverified lockfile checksums.\n\nHex 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.\n\nAn 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.\n\nThis issue affects hex: from 0.16.0 before 2.4.2.","aliases":["CVE-2026-32148","GHSA-hmv9-4mfr-m92v"],"modified":"2026-11-25T06:30:21.804229416Z","published":"2026-04-30T18:17:03.783Z","database_specific":{"cpe_ids":["cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-354","CWE-494"],"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json","capec_ids":["CAPEC-185"]},"references":[{"type":"ADVISORY","url":"https://github.com/hexpm/hex/security/advisories/GHSA-hmv9-4mfr-m92v"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-32148.html"},{"type":"WEB","url":"https://github.com/hexpm/hex/commit/e01576f28c64af9fae6eb17e2dad30f6efcb303c"},{"type":"FIX","url":"https://github.com/hexpm/hex/commit/d7528c8199a1144511508bf3a6460026a5a14c8e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hexpm/hex","events":[{"introduced":"e01576f28c64af9fae6eb17e2dad30f6efcb303c"},{"fixed":"d7528c8199a1144511508bf3a6460026a5a14c8e"}]}],"versions":["v2.2.2","v2.4.1","v2.4.0","v2.2.1","v2.2.0","v2.0.6","v2.1.1","v0.21.3","v2.1.0","v2.0.5","v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.0.1","v1.0.0","v0.21.2","v0.21.1","v0.21.0","v0.20.5","v0.20.4","v0.20.3","v0.20.2","v0.18.2","v0.19.0","v0.16.1","v0.20.1","v0.20.0","v0.18.1","v0.18.0","v0.17.7","v0.17.6","v0.17.5","v0.17.4","v0.17.3","v0.17.2","v0.17.1","v0.17.0","v0.16.0"],"database_specific":{"modules":["'Elixir.Hex.RemoteConverger'"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-32148.json","program_files":["lib/hex/remote_converger.ex"],"program_routines":["'Elixir.Hex.RemoteConverger':verify_resolved/2"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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","source":"CNA"}],"credits":[{"name":"Paul Fleischer","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"REMEDIATION_DEVELOPER"},{"name":"Eric Meadows-Jönsson / Hex.pm","type":"REMEDIATION_REVIEWER"}]}