Skip to content
NewA calmer, faster ZeroHour

CVE-2026-129959

SFTP/SCP ACL bypass in Apache Karaf SSH (default sftpEnabled)

CVSS 3.1
8.8 high
EPSS
—
Published
·
Modified
Analyze CVE-2026-129959 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

With sftpEnabled=true (the default in etc/org.apache.karaf.shell.cfg), Apache Karaf's SSH server exposes the karaf.base tree over MINA SSHD SFTP and SCP without checking roles beyond the initial sshRole login. An authenticated low-privileged user (for example viewer or ssh) can read files such as etc/users.properties and etc/host.key, or write bundles and configuration into deploy/ or etc/, causing privilege escalation and arbitrary code execution.

What to do: Upgrade to Apache Karaf 4.4.13 or 4.5.0. If SFTP/SCP is not required, set sftpEnabled=false in etc/org.apache.karaf.shell.cfg and restart the SSH server bundle or Karaf instance.

ProductAffectedFixed in
Apache Karafearlier versions (before the sftpRole controls)4.4.13 and 4.5.0
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

When sftpEnabled=true (the default configuration in etc/org.apache.karaf.shell.cfg), the SSH server exposes the karaf.base directory tree through the MINA SSHD SFTP subsystem and SCP command factory without verifying the authenticated user's roles beyond the initial sshRole login check. Consequently, an authenticated user with only low-privileged roles (such as viewer and ssh) can read sensitive configuration and key files (including etc/users.properties and etc/host.key) or write arbitrary bundles/configurations into monitored directories (such as deploy/ or etc/), leading to privilege escalation and arbitrary code execution. Apache Karaf 4.4.13 and 4.5.0 introduce the sftpRole configuration property in org.apache.karaf.shell (defaulting to admin) and enforce role-based access control on SFTP subsystem creation, SCP command execution, and virtual filesystem access. Mitigation / WorkaroundUsers are recommended to upgrade to Apache Karaf 4.4.13 or 4.5.0. On earlier versions where SFTP/SCP access is not required, set sftpEnabled=false in etc/org.apache.karaf.shell.cfg and restart the SSH server bundle (or Karaf instance).

Weakness
CWE-862
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

1 story