{
  "id": "CVE-2026-129514",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-129514",
  "published_at": "2026-11-24T13:48:12.692Z",
  "title": "Unauthenticated remote code execution through struct values in Erlang term request bodies",
  "vendor": "hexpm",
  "product": "hexpm",
  "cvss": {
    "score": 10,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:A"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-11-24T20:34:53Z",
    "first_seen_at": "2026-11-24T21:08:21.871Z",
    "days_after_publication": 0.3,
    "repo": "hoarseprairie/CVE-2026-129514-Poc",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Deserialization of Untrusted Data vulnerability in the application/vnd.hex+erlang request body parser in hexpm hexpm allows an unauthenticated remote attacker to execute operating system commands via a crafted Erlang external term format request body. This vulnerability was actively exploited against the hex.pm service on 2026-11-23.\n\nHexpmWeb.ErlangFormat.decode/1 in lib/hexpm_web/erlang_format.ex decodes the body with Plug.Crypto.non_executable_binary_to_term/2, which accepts maps that have a __struct__ key. HexpmWeb.PlugParser.parse/5 returns the decoded term as the request params. The parser runs in the endpoint before routing and authentication, so a POST to any route reaches it. Elixir dispatches protocols on the __struct__ key, so the client selects which Inspect and Enumerable implementations run when error reporting inspects the params. A chain through Ecto.Query.DynamicExpr and DBConnection.Stream reaches an apply/3 call on a {module, function, args} tuple taken from the request body.\n\nThis issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533.",
  "cwe": "CWE-502",
  "cvss_by_source": {
    "cna": 10
  },
  "repos": [
    {
      "repo": "hoarseprairie/CVE-2026-129514-Poc",
      "url": "https://github.com/hoarseprairie/CVE-2026-129514-Poc",
      "created_at": "2026-11-24T20:34:53Z",
      "first_seen_at": "2026-11-24T21:08:21.871Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2025-05-03T13:25:24Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "hexpm",
        "product": "hexpm",
        "ranges": [
          "\u003e= 2016-02-23, \u003c 2026-11-23"
        ],
        "fixed_in": [
          "2026-11-23"
        ]
      },
      {
        "vendor": "hexpm",
        "product": "hexpm",
        "ranges": [
          "\u003e= ab1bbcef7cc8395d1056d3b1aa6a174353492d59, \u003c 379b0a29bcc95164249f38ad7d772a37a8ff9533"
        ],
        "fixed_in": [
          "379b0a29bcc95164249f38ad7d772a37a8ff9533"
        ]
      }
    ],
    "upgrade": [
      "Upgrade hexpm to 2026-11-23 or later.",
      "Upgrade hexpm to 379b0a29bcc95164249f38ad7d772a37a8ff9533 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/hexpm/hexpm/commit/ab1bbcef7cc8395d1056d3b1aa6a174353492d59"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
