---
title: Apache Karaf through 4.4.12: SFTP/SCP on the SSH port ignores role checks, letting low-privileged users read host keys and drop bundles for code execution (CVE-2026-129959) | ctxsec
url: https://ctxsec.com/items/apache-karaf-cve-2026-129959-sftp-scp-bypasses-command-acl-low-priv-to-rce-fixed-4-4-13-4-5-0
description: "With sftpEnabled=true, the default, Karaf's SSH server exposes the karaf.base tree over SFTP and SCP after only the sshRole login check, so a user with roles like viewer can read etc/users.properties and etc/host.key or write into deploy/ and etc/ to get code execution. Karaf 4.4.13 and 4.5.0 add an sftpRole setting (default admin). Rated important."
status: "primary (Apache Karaf advisory on oss-security, Nov 24, 2026)"
published: 2026-11-24
---

> With sftpEnabled=true, the default, Karaf's SSH server exposes the karaf.base tree over SFTP and SCP after only the sshRole login check, so a user with roles like viewer can read etc/users.properties and etc/host.key or write into deploy/ and etc/ to get code execution. Karaf 4.4.13 and 4.5.0 add an sftpRole setting (default admin). Rated important.

[← Cybersecurity News](/news) · [markdown](/items/apache-karaf-cve-2026-129959-sftp-scp-bypasses-command-acl-low-priv-to-rce-fixed-4-4-13-4-5-0.md)

primary (Apache Karaf advisory on oss-security, Nov 24, 2026)

2026-11-24 4:46 AM ET

### Apache Karaf through 4.4.12: SFTP/SCP on the SSH port ignores role checks, letting low-privileged users read host keys and drop bundles for code execution (CVE-2026-129959)

- Fixed: 4.4.13 and 4.5.0, which enforce the new sftpRole (default admin) on SFTP, SCP and the virtual filesystem.
- Workaround on older versions: set sftpEnabled=false in etc/org.apache.karaf.shell.cfg and restart the SSH bundle or Karaf.
- If low-privileged SSH users exist, review deploy/ and etc/ for unexpected files and rotate etc/host.key.

Sources: [oss-security: CVE-2026-129959 Apache Karaf (Nov 24, 2026)](https://seclists.org/oss-sec/2026/q4/865)
