Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-105274

LOW 2.1EPSS 49%

hex_core decompresses registry and Erlang term API responses without size limits

Mitigation

  • Upgrade rebar3 to 3.27.3 or later.
  • Upgrade rebar3 to 360838a22f5b3a88c0358207f2923059bcbb3afb or later.
  • Upgrade hex_core to 0.20.0 or later.
  • Vendor workaround: Point repository URLs at repo.hex.pm or a mirror you operate, and the API URL at hex.pm.

Who should check

  • Anyone running erlang rebar3 >= 3.9.1, < 3.27.3
  • Anyone running erlang rebar3 >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 360838a22f5b3a88c0358207f2923059bcbb3afb
  • Anyone running hexpm hex >= 2.1.0, < 2.5.2; >= 2.6.0, < *
  • Anyone running hexpm hex >= 671f695ac548ed01f5828c2a739ecaa942b21007, < d8b60eee97abb119d525306f048969a217d793a5
  • Anyone running hexpm hex_core >= 0.1.0, < 0.20.0
  • Anyone running hexpm hex_core >= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < ebe25d110717f6a3addba5232cd4a7dc1c76b628

Vulnerability facts

Affected
erlang rebar3 >= 3.9.1, < 3.27.3; erlang rebar3 >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 360838a22f5b3a88c0358207f2923059bcbb3afb; hexpm hex >= 2.1.0, < 2.5.2; >= 2.6.0, < *; hexpm hex >= 671f695ac548ed01f5828c2a739ecaa942b21007, < d8b60eee97abb119d525306f048969a217d793a5; hexpm hex_core >= 0.1.0, < 0.20.0; hexpm hex_core >= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < ebe25d110717f6a3addba5232cd4a7dc1c76b628
Fixed in
erlang rebar3 3.27.3, erlang rebar3 360838a22f5b3a88c0358207f2923059bcbb3afb, hexpm hex 2.5.2, hexpm hex_core 0.20.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
2.1 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Active
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: Low
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.70% chance of exploitation in 30 days (percentile 49, 2026-11-26)
CWE
CWE-409
Published
Modified

Description

Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in hexpm hex_core allows an untrusted repository mirror, or a server answering hex_core's API requests, to exhaust the memory of the Erlang VM running hex_core. The same code is vendored in Hex (mix_hex_repo, mix_hex_api) and rebar3 (r3_hex_repo, r3_hex_api). hex_repo:get_names/1, hex_repo:get_versions/1, hex_repo:get_package/2 and hex_repo:get_policy/2 decompress the registry response with zlib:gunzip/1 and decode the signed envelope before verifying its signature. A mirror doesn't have the repository's private key, but it chooses the compressed bytes, so a small response decompresses into an envelope of any size before the signature check rejects it. hex_api decodes responses with the application/vnd.hex+erlang content type through hex_safe_binary_to_term:safe_binary_to_term/1, which calls binary_to_term(Binary, [safe]). The safe option prevents atom creation, but it accepts compressed terms and doesn't limit the size of the decoded term, and the check that rejects functions and ports runs after the term has been built. The fix for CVE-2026-21619 added the safe option and that check without bounding the decoded size. This issue affects rebar3: from 3.9.1 before 3.27.3; hex: from 2.1.0 before 2.5.2 and from 2.6.0 onward; hex_core: from 0.1.0 before 0.20.0.

Affected and fixed versions

Package / productAffectedFixedSource
erlang rebar3>= 3.9.1, < 3.27.3—cvelist
erlang rebar3>= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 360838a22f5b3a88c0358207f2923059bcbb3afb—cvelist
hexpm hex>= 2.1.0, < 2.5.2; >= 2.6.0, < *—cvelist
hexpm hex>= 671f695ac548ed01f5828c2a739ecaa942b21007, < d8b60eee97abb119d525306f048969a217d793a5—cvelist
hexpm hex_core>= 0.1.0, < 0.20.0—cvelist
hexpm hex_core>= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < ebe25d110717f6a3addba5232cd4a7dc1c76b628—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-105274. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-105274.md
Affected: erlang rebar3 >= 3.9.1, < 3.27.3; erlang rebar3 >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 360838a22f5b3a88c0358207f2923059bcbb3afb; hexpm hex >= 2.1.0, < 2.5.2; >= 2.6.0, < *; hexpm hex >= 671f695ac548ed01f5828c2a739ecaa942b21007, < d8b60eee97abb119d525306f048969a217d793a5; hexpm hex_core >= 0…
Fixed in: erlang rebar3 3.27.3, erlang rebar3 360838a22f5b3a88c0358207f2923059bcbb3afb, hexpm hex 2.5.2, hexpm hex_core 0.20.0

Steps:
1. Search this machine and project for erlang rebar3, hexpm hex, hexpm hex_core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-105274 being exploited?

There is no confirmed exploitation: CVE-2026-105274 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-105274?

Low: CVSS 2.1 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-105274?

erlang rebar3 >= 3.9.1, < 3.27.3; erlang rebar3 >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 360838a22f5b3a88c0358207f2923059bcbb3afb; hexpm hex >= 2.1.0, < 2.5.2; >= 2.6.0, < *; hexpm hex >= 671f695ac548ed01f5828c2a739ecaa942b21007, < d8b60eee97abb119d525306f048969a217d793a5; hexpm hex_core >= 0.1.0, < 0.20.0; hexpm hex_core >= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < ebe25d110717f6a3addba5232cd4a7dc1c76b628.

Is there a fix for CVE-2026-105274?

Yes. Fixed in erlang rebar3 3.27.3, erlang rebar3 360838a22f5b3a88c0358207f2923059bcbb3afb, hexpm hex 2.5.2, hexpm hex_core 0.20.0. Upgrade rebar3 to 3.27.3 or later. Upgrade rebar3 to 360838a22f5b3a88c0358207f2923059bcbb3afb or later. Upgrade hex_core to 0.20.0 or later. Vendor workaround: Point repository URLs at repo.hex.pm or a mirror you operate, and the API URL at hex.pm.

How do I check if I'm affected by CVE-2026-105274?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors