CVE-2026-105274
Manejo inadecuado de datos altamente comprimidos (amplificación de datos) en la vulnerabilidad de hexpm hex_core que permite a un espejo de repositorio no fiable, o a un servidor que responde a las peticiones de la API de hex_core, agotar la memoria de la máquina virtual de Erlang que ejecuta hex_core. El mismo código está incluido en Hex (mix_hex_repo, mix_hex_api) y en rebar3 (r3_hex_repo, r3_hex_api).
hex_repo:get_names/1, hex_repo:get_versions/1, hex_repo:get_package/2 y hex_repo:get_policy/2 descomprimen la respuesta del registro con zlib:gunzip/1 y deserializan el envoltorio firmado antes de verificar su firma.
Leer descripción completaMostrar menos
Un espejo no tiene la clave privada del repositorio, pero sí elige los bytes comprimidos, de modo que una respuesta pequeña puede descomprimirse en un envoltorio de tamaño arbitrario antes de que la comprobación de la firma la rechace.
hex_api decodifica las respuestas con el tipo de contenido application/vnd.hex+erlang mediante hex_safe_binary_to_term:safe_binary_to_term/1, que llama a binary_to_term(Binary, [safe]). La opción safe evita la creación de átomos, pero acepta términos comprimidos y no limita el tamaño del término decodificado, y la comprobación que rechaza funciones y puertos se ejecuta después de que el término ya se ha construido. La corrección de CVE-2026-21619 añadió la opción safe y esa comprobación, pero sin acotar el tamaño decodificado.
Este problema afecta a rebar3: desde la 3.9.1 hasta antes de la 3.27.3; a hex: desde la 2.1.0 hasta antes de la 2.5.2 y desde la 2.6.0 en adelante; y a hex_core: desde la 0.1.0 hasta antes de la 0.20.0.
Traducción automática del texto original de NVD (en inglés).
Cronología
Elaborada con nuestros propios datos: NVD, CISA KEV y otros catálogos de explotación, FIRST EPSS, exploits públicos, prensa especializada y la cobertura de Orbitaley.
- Registro CVE publicado en NVD
- Última modificación del registro en NVD
Técnicas ATT&CK
Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.
- Explotación
T1203Exploitation for Client Executionexecution75 % - Impacto principal
T1499.004Application or System Exploitationimpact80 % - Impacto secundario
T1565.001Stored Data Manipulationimpact60 %
Requiere interacción del usuario (UI:A) al consumir respuestas de un espejo untrusted; causa amplificación de datos (decompresión sin límite) que agota memoria (DoS). El ataque necesita que hex_core procese datos comprimidos antes de validar la firma.
Inferido por nuestro agente de análisis a partir de la descripción oficial, el vector CVSS y la CWE, y comprobado por un supervisor. Puede contener errores.
Mitigaciones ATT&CK que cubren estas técnicas
Tecnologías afectadas (3)
⚠ Inferidas por IA a partir de la descripción — NVD aún no ha analizado esta CVE; no son CPE verificados.
Registro NVD
- Estado en NVD
- Aplazada
- Publicada
- 12 oct 2026
- Última modificación
- 20 nov 2026
- Vector CVSS
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Debilidad (CWE)
- CWE-409
Referencias
- Parchegithub.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af367…
- Parchegithub.com/erlang/rebar3/commit/360838a22f5b3a88c0358207f292305…
- Parchegithub.com/hexpm/hex/commit/671f695ac548ed01f5828c2a739ecaa942b…
- Parchegithub.com/hexpm/hex/commit/d8b60eee97abb119d525306f048969a217d…
- Parchegithub.com/hexpm/hex_core/commit/ebe25d110717f6a3addba5232cd4a7…
- Parchegithub.com/hexpm/hex_core/commit/fbb6d9de472e5edb8d6fb6b32a91cb…
Mostrar 3 referencias másMostrar menos
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-105274",
"cveTags": [],
"metrics": {
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-105274",
"role": "CISA Coordinator",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-10-15T17:51:41.556015Z"
}
}
],
"cvssMetricV40": [
{
"type": "Secondary",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"cvssData": {
"Safety": "NOT_DEFINED",
"version": "4.0",
"Recovery": "NOT_DEFINED",
"baseScore": 2.1,
"Automatable": "NOT_DEFINED",
"attackVector": "NETWORK",
"baseSeverity": "LOW",
"valueDensity": "NOT_DEFINED",
"vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"exploitMaturity": "NOT_DEFINED",
"providerUrgency": "NOT_DEFINED",
"userInteraction": "ACTIVE",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"privilegesRequired": "NONE",
"subIntegrityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"vulnAvailabilityImpact": "LOW",
"availabilityRequirement": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"subConfidentialityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"confidentialityRequirement": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"vulnerabilityResponseEffort": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED"
}
}
]
},
"affected": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"affectedData": [
{
"cpes": [
"cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/rebar3",
"vendor": "erlang",
"modules": [
"r3_hex_repo",
"r3_hex_api"
],
"product": "rebar3",
"versions": [
{
"status": "affected",
"version": "3.9.1",
"lessThan": "3.27.3",
"versionType": "semver"
}
],
"packageURL": "pkg:otp/rebar3?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Frebar3&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Frebar3.git",
"packageName": "rebar3",
"programFiles": [
"apps/rebar/src/vendored/r3_hex_repo.erl",
"apps/rebar/src/vendored/r3_hex_api.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "r3_hex_repo:get_names/1"
},
{
"name": "r3_hex_repo:get_versions/1"
},
{
"name": "r3_hex_repo:get_package/2"
},
{
"name": "r3_hex_api:request/4"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/rebar3",
"vendor": "erlang",
"modules": [
"r3_hex_repo",
"r3_hex_api"
],
"product": "rebar3",
"versions": [
{
"status": "affected",
"version": "209c02ec57c2cc3207ee0174c3af3675b8dc8f79",
"lessThan": "360838a22f5b3a88c0358207f2923059bcbb3afb",
"versionType": "git"
}
],
"packageURL": "pkg:github/erlang/rebar3",
"packageName": "erlang/rebar3",
"programFiles": [
"apps/rebar/src/vendored/r3_hex_repo.erl",
"apps/rebar/src/vendored/r3_hex_api.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "r3_hex_repo:get_names/1"
},
{
"name": "r3_hex_repo:get_versions/1"
},
{
"name": "r3_hex_repo:get_package/2"
},
{
"name": "r3_hex_api:request/4"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex",
"vendor": "hexpm",
"modules": [
"mix_hex_repo",
"mix_hex_api"
],
"product": "hex",
"versions": [
{
"status": "affected",
"version": "2.1.0",
"lessThan": "2.5.2",
"versionType": "semver"
},
{
"status": "affected",
"version": "2.6.0",
"lessThan": "*",
"versionType": "semver"
}
],
"packageURL": "pkg:otp/hex?repository_url=https:%2F%2Fgithub.com%2Fhexpm%2Fhex&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Fhexpm%2Fhex.git",
"packageName": "hex",
"programFiles": [
"src/mix_hex_repo.erl",
"src/mix_hex_api.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "mix_hex_repo:get_names/1"
},
{
"name": "mix_hex_repo:get_versions/1"
},
{
"name": "mix_hex_repo:get_package/2"
},
{
"name": "mix_hex_repo:get_policy/2"
},
{
"name": "mix_hex_api:request/4"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex",
"vendor": "hexpm",
"modules": [
"mix_hex_repo",
"mix_hex_api"
],
"product": "hex",
"versions": [
{
"status": "affected",
"version": "671f695ac548ed01f5828c2a739ecaa942b21007",
"lessThan": "d8b60eee97abb119d525306f048969a217d793a5",
"versionType": "git"
}
],
"packageURL": "pkg:github/hexpm/hex",
"packageName": "hexpm/hex",
"programFiles": [
"src/mix_hex_repo.erl",
"src/mix_hex_api.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "mix_hex_repo:get_names/1"
},
{
"name": "mix_hex_repo:get_versions/1"
},
{
"name": "mix_hex_repo:get_package/2"
},
{
"name": "mix_hex_repo:get_policy/2"
},
{
"name": "mix_hex_api:request/4"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex_core",
"vendor": "hexpm",
"modules": [
"hex_repo",
"hex_api",
"hex_safe_binary_to_term"
],
"product": "hex_core",
"versions": [
{
"status": "affected",
"version": "0.1.0",
"lessThan": "0.20.0",
"versionType": "semver"
}
],
"packageURL": "pkg:hex/hex_core",
"packageName": "hex_core",
"programFiles": [
"src/hex_repo.erl",
"src/hex_api.erl",
"src/hex_safe_binary_to_term.erl"
],
"collectionURL": "https://repo.hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "hex_repo:get_names/1"
},
{
"name": "hex_repo:get_versions/1"
},
{
"name": "hex_repo:get_package/2"
},
{
"name": "hex_repo:get_policy/2"
},
{
"name": "hex_api:request/4"
},
{
"name": "hex_safe_binary_to_term:safe_binary_to_term/1"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex_core",
"vendor": "hexpm",
"modules": [
"hex_repo",
"hex_api",
"hex_safe_binary_to_term"
],
"product": "hex_core",
"versions": [
{
"status": "affected",
"version": "fbb6d9de472e5edb8d6fb6b32a91cb266137892e",
"lessThan": "ebe25d110717f6a3addba5232cd4a7dc1c76b628",
"versionType": "git"
}
],
"packageURL": "pkg:github/hexpm/hex_core",
"packageName": "hexpm/hex_core",
"programFiles": [
"src/hex_repo.erl",
"src/hex_api.erl",
"src/hex_safe_binary_to_term.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "hex_repo:get_names/1"
},
{
"name": "hex_repo:get_versions/1"
},
{
"name": "hex_repo:get_package/2"
},
{
"name": "hex_repo:get_policy/2"
},
{
"name": "hex_api:request/4"
},
{
"name": "hex_safe_binary_to_term:safe_binary_to_term/1"
}
]
}
]
}
],
"published": "2026-10-12T17:17:12.457",
"references": [
{
"url": "https://cna.erlef.org/cves/CVE-2026-105274.html",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/erlang/rebar3/commit/360838a22f5b3a88c0358207f2923059bcbb3afb",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hex/commit/671f695ac548ed01f5828c2a739ecaa942b21007",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hex/commit/d8b60eee97abb119d525306f048969a217d793a5",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hex_core/commit/ebe25d110717f6a3addba5232cd4a7dc1c76b628",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hex_core/commit/fbb6d9de472e5edb8d6fb6b32a91cb266137892e",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hex_core/security/advisories/GHSA-7c4r-cgf9-9jmq",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-105274",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"vulnStatus": "Deferred",
"weaknesses": [
{
"type": "Secondary",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"description": [
{
"lang": "en",
"value": "CWE-409"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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).\n\nhex_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.\n\nhex_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.\n\nThis 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."
}
],
"lastModified": "2026-11-20T06:17:16.940",
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}