{"id":"CVE-2026-129514","aliases":["EUVD-2026-134070","EEF-CVE-2026-129514","GHSA-9pmm-hf4r-27pg"],"title":"Unauthenticated remote code execution through struct values in Erlang term request bodies","originalDescription":"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.","severity":{"cvss":10,"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","label":"critical"},"exploitation":{"kev":null,"epss":{"score":0.03162,"percentile":0.88755},"exploitDb":null},"affected":[{"ecosystem":"unknown","name":"hex.pm","range":">=2016-02-23, <2026-11-23","fixed":"2026-11-23"},{"ecosystem":"unknown","name":"hexpm/hexpm","range":">=ab1bbcef7cc8395d1056d3b1aa6a174353492d59, <379b0a29bcc95164249f38ad7d772a37a8ff9533","fixed":"379b0a29bcc95164249f38ad7d772a37a8ff9533"}],"references":[{"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg","type":"vendor-advisory"},{"url":"https://cna.erlef.org/cves/CVE-2026-129514.html","type":"related"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-129514","type":"related"},{"url":"https://github.com/hexpm/hexpm/commit/ab1bbcef7cc8395d1056d3b1aa6a174353492d59","type":"related"},{"url":"https://github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533","type":"patch"},{"url":"https://github.com","type":"web"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129514.json","type":"advisory"},{"url":"https://github.com/hexpm/hexpm","type":"package"},{"url":"https://hex.pm","type":"web"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129514","type":"advisory"},{"url":"https://hex.pm/blog/security-incident-on-hexpm","type":"technical-description"}],"sources":[{"name":"nvd","at":"2026-11-24T19:35:15.294Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129514","license":"NVD terms of use","firstSeenAt":"2026-11-24T14:35:52.310Z"},{"name":"osv","at":"2026-11-25T06:33:38.152Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-129514","license":"CC-BY 4.0","firstSeenAt":"2026-11-24T15:09:28.770Z"},{"name":"euvd","at":"2026-11-24T15:42:26.766Z","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-134070","license":"ENISA","firstSeenAt":"2026-11-24T15:09:07.506Z"},{"name":"cvelistV5","at":"2026-11-29T04:12:25.189Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-129514","license":"CVE Terms of Use","firstSeenAt":"2026-11-24T14:00:32.943Z"}],"firstSeenAt":"2026-11-24T14:00:32.943Z","publishedAt":"2026-11-24T13:48:12.000Z","modifiedAt":"2026-11-25T06:30:19.341Z"}