CVE-2026-103502
Vulnerabilidad de Validación Incorrecta de Certificados en hexpm hex_core que permite a un atacante que pueda interceptar conexiones HTTPS suplantar hex.pm, repo.hex.pm o cualquier otro servidor de repositorio o API para programas que utilizan el adaptador HTTP predeterminado de hex_core en Erlang/OTP 24, o en OTP 25 cuando los certificados CA del sistema operativo no se pueden cargar.
hex_core:default_config/0 selecciona el adaptador hex_http_httpc incorporado. Para una solicitud HTTPS cuya configuración de adaptador no tiene opción ssl, hex_http_httpc:http_options/2 construye opciones que verifican el certificado del servidor contra public_key:cacerts_get/0. Cuando esa llamada genera una excepción, el adaptador imprime una advertencia y envía la solicitud sin opciones ssl, por lo que httpc utiliza los valores predeterminados de la aplicación ssl, que antes de OTP 26 no verifican el certificado del servidor. public_key:cacerts_get/0 no existe en OTP 24, por lo que cada solicitud HTTPS vuelve a recurrir a ese comportamiento, y en OTP 25 genera una excepción cuando no se encuentra un almacén de CA. Las versiones de hex_core anteriores a 0.11.0 nunca establecen opciones ssl, por lo que no verifican el certificado del servidor en OTP 25 y anteriores independientemente de si se encuentra o no un almacén de CA.
Leer descripción completaMostrar menos
El mecanismo de reserva fue intencionado y documentado, pero la documentación no dejaba claro que significaba no verificar el certificado. Desde hex_core 0.8.2 el README ha advertido que el adaptador httpc incorporado "tiene configuraciones ssl inseguras de forma predeterminada" y ha recomendado otros clientes HTTP, y el adaptador imprime "usando opciones ssl predeterminadas que son inseguras" en cada solicitud que recurre al mecanismo de reserva. hex_core 0.11.0 añadió verificación de certificados con la entrada del registro de cambios "Usar valores ssl seguros predeterminados para OTP 25+". Ni el README ni la advertencia dicen que el certificado del servidor no se verifica, el README no dice en qué versiones de OTP se aplica la advertencia, y en OTP 25 sin certificados de CA la advertencia dice a los usuarios que actualicen a OTP 25 o posterior, que ya están ejecutando. Este aviso de seguridad se publica para que los usuarios que tomaron esos avisos como consejo general sepan que sus solicitudes HTTPS no fueron autenticadas.
Este problema afecta a hex_core: desde 0.1.0 antes de 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 Executionexecution70 % - Impacto principal
T1557Adversary-in-the-Middlecredential access · collection85 % - Impacto secundario
T1078Valid Accountsstealth · persistence · privilege escalation · initial access60 %
UI:A requiere interacción (aceptar/confiar certificado auto-firmado). T1557 por interceptación HTTPS sin validación. T1078 por suplantación de repositorio para inyectar credenciales o código malicioso.
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 (1)
⚠ 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
- 16 oct 2026
- Vector CVSS
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/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-295, CWE-636
Referencias
- Parchegithub.com/hexpm/hex_core/commit/b7b3a42defb4ed8e20a5c68a4412ce…
- Parchegithub.com/hexpm/hex_core/commit/fbb6d9de472e5edb8d6fb6b32a91cb…
- Referenciacna.erlef.org/cves/CVE-2026-103502.html
- Referenciagithub.com/hexpm/hex_core/security/advisories/GHSA-p26c-h8c2-rw…
- Referenciaosv.dev/vulnerability/EEF-CVE-2026-103502
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-103502",
"cveTags": [],
"metrics": {
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-103502",
"role": "CISA Coordinator",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-10-16T16:55:40.731433Z"
}
}
],
"cvssMetricV40": [
{
"type": "Secondary",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"cvssData": {
"Safety": "NOT_DEFINED",
"version": "4.0",
"Recovery": "NOT_DEFINED",
"baseScore": 5.9,
"Automatable": "NOT_DEFINED",
"attackVector": "NETWORK",
"baseSeverity": "MEDIUM",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/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": "LOW",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"vulnAvailabilityImpact": "NONE",
"availabilityRequirement": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"subConfidentialityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"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:hexpm:hex_core:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex_core",
"vendor": "hexpm",
"modules": [
"hex_http_httpc"
],
"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_http_httpc.erl"
],
"collectionURL": "https://repo.hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "hex_http_httpc:request/5"
},
{
"name": "hex_http_httpc:request_to_file/6"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex_core",
"vendor": "hexpm",
"modules": [
"hex_http_httpc"
],
"product": "hex_core",
"versions": [
{
"status": "affected",
"version": "fbb6d9de472e5edb8d6fb6b32a91cb266137892e",
"lessThan": "b7b3a42defb4ed8e20a5c68a4412ce68a95b7938",
"versionType": "git"
}
],
"packageURL": "pkg:github/hexpm/hex_core",
"packageName": "hexpm/hex_core",
"programFiles": [
"src/hex_http_httpc.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "hex_http_httpc:request/5"
},
{
"name": "hex_http_httpc:request_to_file/6"
}
]
}
]
}
],
"published": "2026-10-12T14:17:08.610",
"references": [
{
"url": "https://cna.erlef.org/cves/CVE-2026-103502.html",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hex_core/commit/b7b3a42defb4ed8e20a5c68a4412ce68a95b7938",
"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-p26c-h8c2-rwqj",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-103502",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"vulnStatus": "Deferred",
"weaknesses": [
{
"type": "Secondary",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"description": [
{
"lang": "en",
"value": "CWE-295"
},
{
"lang": "en",
"value": "CWE-636"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Improper Certificate Validation vulnerability in hexpm hex_core allows an attacker who can intercept HTTPS connections to impersonate hex.pm, repo.hex.pm or any other repository or API server to programs that use hex_core's default HTTP adapter on Erlang/OTP 24, or on OTP 25 when the operating system's CA certificates can't be loaded.\n\nhex_core:default_config/0 selects the built-in hex_http_httpc adapter. For an HTTPS request whose adapter config has no ssl option, hex_http_httpc:http_options/2 builds options that verify the server certificate against public_key:cacerts_get/0. When that call raises, the adapter prints a warning and sends the request without ssl options, so httpc uses the defaults of the ssl application, which before OTP 26 don't verify the server certificate. public_key:cacerts_get/0 doesn't exist on OTP 24, so every HTTPS request falls back there, and on OTP 25 it raises when no CA store is found. hex_core versions before 0.11.0 never set ssl options, so they don't verify the server certificate on OTP 25 and earlier whether or not a CA store is found.\n\nThe fallback was intended and documented, but the documentation didn't make clear that it meant no certificate verification. Since hex_core 0.8.2 the README has warned that the built-in httpc adapter \"has insecure default settings\" and recommended other HTTP clients, and the adapter prints \"using default ssl options which are insecure\" on every request that falls back. hex_core 0.11.0 added certificate verification with the changelog entry \"Use secure SSL defaults for OTP 25+\". Neither the README nor the warning says that the server certificate isn't verified, the README doesn't say which OTP versions the warning applies to, and on OTP 25 without CA certificates the warning tells users to upgrade to OTP 25 or later, which they already run. This advisory is published so that users who took those notices as general advice know their HTTPS requests weren't authenticated.\n\nThis issue affects hex_core: from 0.1.0 before 0.20.0."
}
],
"lastModified": "2026-10-16T17:17:19.113",
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}