Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-105274— hex_core decompresses registry and Erlang term API responses without size limits

Quick assessment

Affected
erlang rebar3
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Erlang 虚拟机中 hex_core 模块存在“高度压缩数据处理不当(数据放大)”漏洞。该漏洞允许不受信任的仓库镜像或响应 hex_core API 请求的服务器耗尽运行 hex_core 的 Erlang 虚拟机的内存。相同的代码也被内联(vendored)到 Hex(mix_hex_repo、mix_hex_api)和 rebar3(r3_hex_repo、r3_hex_api)中。 hex_repo 模块中的 、 、 和 函数会先使用 解压注册表响应数据,并在验证签名之前解码签名信封。由于镜像服务器没有仓

CVSS 2.1 · Low

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 6

VendorProduct Version RangeStatus
erlang rebar3 3.9.1< 3.27.3 affected
209c02ec57c2cc3207ee0174c3af3675b8dc8f79< 360838a22f5b3a88c0358207f2923059bcbb3afb affected
hexpm hex 2.1.0< 2.5.2 affected
671f695ac548ed01f5828c2a739ecaa942b21007< d8b60eee97abb119d525306f048969a217d793a5 affected
hexpm hex_core 0.1.0< 0.20.0 affected
fbb6d9de472e5edb8d6fb6b32a91cb266137892e< ebe25d110717f6a3addba5232cd4a7dc1c76b628 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-105274

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
hex_core decompresses registry and Erlang term API responses without size limits
Source: CVE Program / CVE List V5
Vulnerability 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; hex_core: from 0.1.0 before 0.20.0.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
对高度压缩数据的处理不恰当(数据放大攻击)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
erlang rebar3 3.9.1 ~ 3.27.3 cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*
erlang rebar3 209c02ec57c2cc3207ee0174c3af3675b8dc8f79 ~ 360838a22f5b3a88c0358207f2923059bcbb3afb cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*
hexpm hex_core 0.1.0 ~ 0.20.0 cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*
hexpm hex_core fbb6d9de472e5edb8d6fb6b32a91cb266137892e ~ ebe25d110717f6a3addba5232cd4a7dc1c76b628 cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*
hexpm hex 2.1.0 ~ 2.5.2 cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*
hexpm hex 671f695ac548ed01f5828c2a739ecaa942b21007 ~ d8b60eee97abb119d525306f048969a217d793a5 cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-105274

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-105274

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-105274 (1)

Vendor Advisories for CVE-2026-105274 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-105274

No comments yet


Leave a comment