Skip to content
Heist/ feed
Back to feed
High

erlang-hex — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-32148

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.

Products
erlang-hex
Affected versions
2.0.5-1, 2.0.6-2, 2.0.6-2build1
Fixed versions
Not specified
CVEs
CVE-2026-32148
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 09:08 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-32148

core-osv · Original source

Published 30 Apr 2026, 19:16 UTC

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.

osv:UBUNTU-CVE-2026-32148

erlang-hex

Fixed versions: Not specified

erlang-hex

Fixed versions: Not specified

Complete source record
{
  "id": "3b84d35ab20c35c0df2c1911f7a5bd6c9f0048a6b576a62747793e8e92b8c38e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-32148",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-32148",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-32148",
    "products": [
      {
        "name": {
          "value": "erlang-hex",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.5-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "erlang-hex",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.6-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.0.6-2build1",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-32148",
      "aliases": [
        "UBUNTU-CVE-2026-32148"
      ],
      "metrics": [
        {
          "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"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "erlang-hex",
            "purl": "pkg:deb/ubuntu/erlang-hex?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.0.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32148.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "erlang-hex",
                "binary_version": "2.0.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "erlang-hex",
            "purl": "pkg:deb/ubuntu/erlang-hex?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.0.6-2",
            "2.0.6-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32148.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "erlang-hex",
                "binary_version": "2.0.6-2build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-08T12:53:50.827732829Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-32148"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-32148",
        "https://www.cve.org/CVERecord?id=CVE-2026-32148",
        "https://github.com/hexpm/hex/security/advisories/GHSA-hmv9-4mfr-m92v",
        "https://cna.erlef.org/cves/CVE-2026-32148.html",
        "https://osv.dev/vulnerability/EEF-CVE-2026-32148"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-32148",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 99576,
  "published_at": "2026-04-30T19:16:00+00:00"
}