# CVE-2026-129959: Apache Karaf: SFTP SCP file transfer on the SSH port bypasses the command ACL entirely

> Low-privileged Karaf users can use SFTP/SCP to read sensitive config and keys or write arbitrary bundles, gaining code execution.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 24 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-8774-j92h-q63r

## What is CVE-2026-129959?

CVE-2026-129959 is a high-severity missing authorization vulnerability in Apache Karaf, published on 24 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

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 (Missing Authorization)

## Which versions are affected by CVE-2026-129959?

1 open source package ship an affected version, including org.apache.karaf.shell:org.apache.karaf.shell.ssh.

An affected version is exposed as installed. No special setting or call is needed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `org.apache.karaf.shell:org.apache.karaf.shell.ssh` | Maven | `pkg:maven/org.apache.karaf.shell/org.apache.karaf.shell.ssh` | All versions to 4.4.12 | None |

## How do I fix CVE-2026-129959?

No fix has been published for CVE-2026-129959 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-129959 being exploited?

There is no known exploitation of CVE-2026-129959 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-129959 and fix it if it is affected.

What it is: CVE-2026-129959 is a high-severity missing authorization vulnerability in Apache Karaf, published on 24 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-129959 in the wild and no public exploit code.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected packages and fixed versions:
- org.apache.karaf.shell:org.apache.karaf.shell.ssh (Maven): affected all versions up to 4.4.12; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-129959/ (Markdown: https://insights.sbomify.com/CVE-2026-129959/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-129959
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-129959
- OSV: https://osv.dev/vulnerability/CVE-2026-129959

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-129959/
Summaries are generated and may contain mistakes; the official description above is the record.
