llamaCVEVulnerability Intelligence
/
Log4j

CVE-2021-45046

Log4j code execution in Thread Context pattern lookups

An attacker who controls logged input can leak sensitive data and run code, remotely in some setups or locally in all.

Texto original en inglés · Ver en español

CISA KEV · explotación activaCrítica · en CISA KEV, CVSS alto en tecnología listada, EPSS ≥ 10 %Parche disponible
Descargar PNG JSON
CVSS 3.1
9.0
Crítica
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H Fuente: NVD
ExplotaciónActivaEn CISA KEV desde 1 may 2023
Exploits públicos0Explotada, pero sin código público enlazado
Parche7 versionesPrimer parche a -1 d de la divulgación
Exposición1.803 dDesde la divulgación, 14 dic 2021, 11:55 a. m.
EPSS ≥ 10 %22 oct 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión estimadaAtender
Priorizar en el próximo ciclo de cambios
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): explotación activa (CISA KEV), no automatizable e impacto técnico total. Plazo KEV: 22 may 2023.
Apaga la música lo-fi: esto es una emergencia.Esto está en KEV: la lista donde nadie quiere salir.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
CISA KEV
Umbral EPSS
Remediación
Parche 2.16.0
Parche 2.12.2 +2
Parche 1.10.8
Parche 2.3.1
Parche 1.9.2
Plazo KEV
Monitoreo
Detectada
Verificada
13 dic 21
19 dic 21
31 ene 22
22 may 23
22 oct 26
21 nov 26
13 dic 21
9 mar 23
2 jun 24
27 ago 25
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.16.0 org.apache.logging.log4j:log4j-core · -1 d desde divulgación
Divulgación Publicada CVE-2021-45046 divulgada · CVSS 9 (NVD)
Remediación Parche 2.12.2 org.apache.logging.log4j:log4j-core · 0 d desde divulgación
Remediación Parche 1.11.11 org.ops4j.pax.logging:pax-logging-log4j2 · 0 d desde divulgación
Remediación Parche 2.0.12 org.ops4j.pax.logging:pax-logging-log4j2 · 0 d desde divulgación
Remediación Parche 1.10.8 org.ops4j.pax.logging:pax-logging-log4j2 · 5 d desde divulgación
Remediación Parche 2.3.1 org.apache.logging.log4j:log4j-core · 7 d desde divulgación
Remediación Parche 1.9.2 org.ops4j.pax.logging:pax-logging-log4j2 · 48 d desde divulgación
Explotación CISA KEV Agregada al catálogo de vulnerabilidades explotadas
Remediación Plazo KEV Fecha límite de remediación para agencias federales (EE. UU.)
Divulgación Modificada Última actualización del registro
Explotación Umbral EPSS La probabilidad de explotación supera el 10 %
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 12 nov 2026

Apache Log4j (including the log4j-core and pax-logging-log4j2 packages) can be crashed by an attacker who controls thread context data and sends crafted input using a JNDI lookup pattern, which causes a denial of service. The attacker can do this remotely without logging in, but only when logging uses a non-default pattern layout with a context lookup or thread context map pattern, and the bug is being exploited in attacks.

Affects Log4j2 2.15.0 and earlier with a non-default Pattern Layout using Context Lookup or Thread Context Map patterns. Fixed in 2.16.0, or 2.12.2 and 2.3.1 on older lines.

¿Qué significa?The earlier fix for CVE-2021-44228 was incomplete in some non-default configurations. An attacker who controls thread context (MDC) data can craft input using a JNDI Lookup pattern and cause a denial of service.
¿Quién está afectado?Affected are Apache Log4j2 2.15.0 and earlier where the logging configuration uses a non-default Pattern Layout with a Context Lookup (such as $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC). Version ranges are also listed for log4j-core and for pax-logging-log4j2. To check, look at the log4j-core version in the build files or jar name, and review the logging configuration for those patterns.
¿Qué hacer?Upgrade log4j-core to 2.16.0, or to 2.12.2 on the 2.4.0 line or 2.3.1 on the older line. For pax-logging-log4j2, the fixed versions are 1.9.2, 1.10.8, 1.11.11 and 2.0.12, depending on the release line.
Descripción original del registro

It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in an information leak and remote code execution in some environments and local code execution in all environments. Log4j 2.16.0 (Java 8) and 2.12.2 (Java 7) fix this issue by removing support for message lookup patterns and disabling JNDI functionality by default.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Logging configuration uses a non-default Pattern Layout with a Context Lookup or a Thread Context Map pattern“when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC)”
02
Attacker controls Thread Context Map (MDC) input data“attackers with control over Thread Context Map (MDC) input data”
03
Apache Log4j 2.15.0 and earlier, where the CVE-2021-44228 fix was incomplete“the fix to address CVE-2021-44228 in Apache Log4j, a Logging Framework for Java, was incomplete in certain non-default configurations”
¿Quién debe revisar?Teams running Apache Log4j 2.15.0 or earlier (e.g. Debian apache-log4j2 packages) with a non-default Pattern Layout using Context Lookup or %X/%mdc/%MDC patterns.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · NVD
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 7.1 (fácil) · +2.9 por explotación activa.
Versiones

Rangos afectados

Afectada Corregida Última
Apache Log4j≥ Apache Log4j2 < 2.16.0
org.apache.logging.log4j:log4j-core< 2.3.1
org.ops4j.pax.logging:pax-logging-log4j2≥ 1.8.0 < 1.9.2
org.ops4j.pax.logging:pax-logging-log4j2≥ 1.10.0 < 1.10.8
org.ops4j.pax.logging:pax-logging-log4j2≥ 1.11.0 < 1.11.11
org.ops4j.pax.logging:pax-logging-log4j2≥ 2.0.0 < 2.0.12
org.apache.logging.log4j:log4j-core≥ 2.4.0 < 2.12.2
org.apache.logging.log4j:log4j-core≥ 2.13.0 < 2.16.0
Apache Log4j2
1.9.2
1.10.0
1.10.8
1.11.11
2.0.0
2.0.12
2.3.1
2.3.5
2.4.0
2.12.2
2.13.0
2.16.0
2.26.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
mavenorg.apache.logging.log4j:log4j-core
Corregida 2.3.1, 2.12.2, 2.16.0 7 d · 0 d · -1 d 2.26.1 no afectada
mavenorg.ops4j.pax.logging:pax-logging-log4j2
Corregida 1.9.2, 1.10.8, 1.11.11, 2.0.12 48 d · 5 d · 0 d · 0 d 2.3.5 no afectada
Versiones corregidas1.9.21.10.81.11.112.0.122.3.12.12.22.16.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
Advisoryhttps://www.debian.org/security/2021/dsa-5022
Advisoryhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/
Advisoryhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/
Fabricantehttps://logging.apache.org/log4j/2.x/security.html
Análisishttp://www.openwall.com/lists/oss-security/2021/12/14/4
Análisishttp://www.openwall.com/lists/oss-security/2021/12/15/3
Análisishttp://www.openwall.com/lists/oss-security/2021/12/18/1
Otrahttps://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
Otrahttps://www.oracle.com/security-alerts/alert-cve-2021-44228.html
Otrahttps://www.kb.cert.org/vuls/id/930724
Otrahttps://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
Ver 9 referencias más
Otrahttps://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
Otrahttps://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf
Otrahttps://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf
Otrahttps://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf
Otrahttps://www.oracle.com/security-alerts/cpujan2022.html
Otrahttps://www.oracle.com/security-alerts/cpuapr2022.html
Otrahttps://www.oracle.com/security-alerts/cpujul2022.html
Otrahttps://security.gentoo.org/glsa/202310-16
recordhttps://www.cve.org/CVERecord?id=CVE-2021-44228

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.