# CVE-2026-105274: hex\_core decompresses registry and Erlang term API responses without size limits

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.1
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.70% (percentile 49, 2026-11-28)
- **CWE:** CWE-409
- **Published:** 2026-10-12T16:43:58.730Z
- **Modified:** 2026-11-20T06:17:16.940Z

## 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

## 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

- 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)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://github.com/hexpm/hex_core/security/advisories/GHSA-7c4r-cgf9-9jmq>
- patch: <https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79>
- patch: <https://github.com/erlang/rebar3/commit/360838a22f5b3a88c0358207f2923059bcbb3afb>
- patch: <https://github.com/hexpm/hex/commit/671f695ac548ed01f5828c2a739ecaa942b21007>
- patch: <https://github.com/hexpm/hex/commit/d8b60eee97abb119d525306f048969a217d793a5>
- patch: <https://github.com/hexpm/hex_core/commit/fbb6d9de472e5edb8d6fb6b32a91cb266137892e>
- patch: <https://github.com/hexpm/hex_core/commit/ebe25d110717f6a3addba5232cd4a7dc1c76b628>
- other: <https://cna.erlef.org/cves/CVE-2026-105274.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-105274>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-105274>

HTML: <https://flawdb.com/CVE-2026-105274> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-105274>
