Skip to content
High 8.8

Apache Karafの脆弱性、低権限ユーザーが設定ファイルを読み書きできる

CVE-2026-129959 First seen on SecPulse

Summary

Apache Karafの SSHポートで使えるSFTPとSCPに、ロールの確認が不足している脆弱性が見つかりました。認証済みの低権限ユーザーでも、etc/users.propertiesなどの設定や鍵ファイルを読んだり、deploy/に任意のバンドルを書き込んだりでき、権限昇格やコードの実行につながるおそれがあります。影響するのは4.4.12以前で、修正版の4.4.13または4.5.0へ更新してください。すぐに更新できない場合は、SFTPとSCPを使わないのであれば、etc/org.apache.karaf.shell.cfgでsftpEnabled=falseに設定してSSHサーバーのバンドルを再起動してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Apache Karafの SSHポートで使えるSFTPとSCPに、ロールの確認が不足している脆弱性が見つかりました。認証済みの低権限ユーザーでも、etc/users.propertiesなどの設定や鍵ファイルを読んだり、deploy/に任意のバンドルを書き込んだりでき、権限昇格やコードの実行につながるおそれがあります。影響するのは4.4.12以前で、修正版の4.4.13または4.5.0へ更新してください。すぐに更新できない場合は、SFTPとSCPを使わないのであれば、etc/org.apache.karaf.shell.cfgでsftpEnabled=falseに設定してSSHサーバーのバンドルを再起動してください。

Affected packages

PackageAffected → Fixed
Apache Software FoundationApache Karaf
≤ 4.4.12→ Not listed

This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.

Original description The description as published by the source.

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).

Source: oss-security (Openwall) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details