CVE-2026-129514
Unauthenticated remote code execution through struct values in Erlang term request bodies
Check your servers for CVE-2026-129514
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-129514 affects hex.pm, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
HexpmWeb.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.
This issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 3.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 88.2% of all scored CVEs. Scores of 2 Dec 2026.
The assessment of CISA (SSVC, 30 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-502 Deserialization of Untrusted Data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
hexpm
package
hex.pm |
affected from 2016-02-23, before 2026-11-23
Other versions: unaffected
|
|
hexpm
package
hexpm/hexpm |
affected from ab1bbcef7cc8395d1056d3b1aa6a174353492d59, before 379b0a29bcc95164249f38ad7d772a37a8ff9533
Other versions: unaffected
|
Is my server affected?
Find the installed version of hex.pm and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i hex.pm
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-129514 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-129514RHEL, Rocky, Alma, Fedora
rpm -q hex.pm
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-129514Alpine
apk list --installed | grep -i hex.pmWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-129514
trivy image --scanners vuln IMAGE | grep CVE-2026-129514
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- Unauthenticated remote code execution through struct values in Erlang term request bodies github.com · vendor advisory, related
Patches and release notes
- Fix commit 379b0a2 in hexpm/hexpm github.com · patch
Other references
- EEF CNA record for CVE-2026-129514 cna.erlef.org · related
- OSV record EEF-CVE-2026-129514 osv.dev · related
- Security incident on hex.pm hex.pm · technical description
- Introducing commit ab1bbce in hexpm/hexpm github.com · related
Source: the record CVE-2026-129514 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse