Unauthenticated RCE via Erlang term request bodies in hexpm
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.
Summary
hex.pm (hexpm/hexpm) is affected from 2016-02-23 before 2026-11-23. Deserialization of untrusted data in the application/vnd.hex+erlang request body parser (CWE-502) lets a crafted Erlang external term body reach an apply call that runs operating system commands. An unauthenticated remote attacker can exploit this by sending a POST to any route, because the parser runs before routing and authentication. The flaw was actively exploited against the hex.pm service on 2026-11-23.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| hexpm | hexpm | 2016-02-23 to before 2026-11-23 | 2026-11-23 | Patch available | CNA |
- hexpm Vendorhexpm Affected 2016-02-23 to before 2026-11-23 Fixed in 2026-11-23 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
The fixed version for hexpm/hexpm is 2026-11-23. Upgrade hexpm/hexpm to 2026-11-23 or a later build to remove the affected parser behavior.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · CNA hexpm (hexpm) Fixed in 2026-11-23
Timeline
- 2026-11-24 Threatist record created from CVE-2026-129514
- 2026-11-24 1 new reference · CNA
- 2026-11-30 CVSS score added · CISA ADP
- 2026-11-30 Weakness changed · CISA ADP
- 2026-11-30 CISA SSVC decision points changed
References
More hexpm vulnerabilities
- TI-2026-24685 Lockfile checksums not verified in Hex allows dependency integrity bypass CVSS 4.0HIGH 8.9
- TI-2026-52887 OAuth token exchange grants repository scopes for organizations the principal cannot access CVSS 4.0HIGH 8.3
- TI-2026-17414 Password Reset Tokens Do Not Expire CVSS 4.0CRITICAL 9.5
- TI-2026-59264 Refresh tokens accepted as private repository credentials at the CDN CVSS 4.0LOW 2.3
- TI-2026-52890 Explicit organization scopes survive token refresh after membership ends CVSS 4.0LOW 2.3
- TI-2026-17410 Cross-site scripting (XSS) in OAuth Device Authorization screen CVSS 4.0HIGH 8.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences