critical · CVSS v3 8.8 · CVSS v4 8.7
CVE-2026-62943
btrbk, a Btrfs snapshot and backup tool, had a flaw in its ssh_filter_btrbk.sh script that allowed attackers to bypass the command allowlist
Overview
btrbk, a Btrfs snapshot and backup tool, had a flaw in its ssh_filter_btrbk.sh script that allowed attackers to bypass the command allowlist via a forced command in authorized_keys, enabling arbitrary command execution on the backup target. The vulnerability exists in versions 0.29.0 through 0.32.6 and is fixed in 0.32.7. It can be exploited by users who have SSH access to the backup target but are restricted to btrbk commands.
Description
btrbk is a tool for creating snapshots and remote backups of Btrfs subvolumes. From 0.29.0 until 0.32.7, btrbk's ssh_filter_btrbk.sh constructs allow_stream_match with a start anchor but without an end-of-string anchor for the complete command. A user restricted through an authorized_keys forced command can append a trailing pipe command after a valid btrbk command prefix, bypassing the allowlist and executing arbitrary commands with the privileges of the backup-target SSH account. Deployments that do not use ssh_filter_btrbk.sh in authorized_keys are not affected. This issue is fixed in version 0.32.7.
Impact
Confidentiality: potential exposure of backup data. Integrity: attacker can modify or inject malicious files into backups. Availability: attacker could disrupt backup operations. Impacted parties: administrators of systems using btrbk with SSH forced commands, especially those with restricted authorized_keys.
Remediation
Upgrade to btrbk 0.32.7 or later. If upgrade is not possible, remove or disable ssh_filter_btrbk.sh from authorized_keys, or enforce stricter command restrictions. Ensure SSH forced commands are limited to the exact btrbk command syntax and include end-of-string anchors. Monitor SSH logs for unexpected command patterns.
Risk context
Critical severity with a CVSS v3 score of 8.8 indicates a high risk to affected deployments. No EPSS data is available, so immediate attention is recommended.
Affected products
- btrbk 0.29.0-0.32.6
Scores
- Severity
- critical
- CVSS v2
- 10
- CVSS v3
- 8.8
- CVSS v4
- 8.7
- EPSS
- —