Authenticated file read/write via FTP argument injection
Published Jan 27, 2025 · Updated Jan 28, 2025
Argument injection in WatchGuard Fireware OS allows remote authenticated users to read or write files through the SSH CLI. The diagnose and import pac commands pass unsanitized username and password values to ftpget and ftpput through librmisvc.so, letting attacker-supplied delimiters become new arguments. SSH access is required; low-privileged accounts can exfiltrate arbitrary system files, including stored password hashes, while file writes are restricted to /tmp, /pending, and /var/run.
Summary
What happened
Argument injection in WatchGuard Fireware OS allows remote authenticated users to read or write files through the SSH CLI. The diagnose and import pac commands pass unsanitized username and password values to ftpget and ftpput through librmisvc.so, letting attacker-supplied delimiters become new arguments. SSH access is required; low-privileged accounts can exfiltrate arbitrary system files, including stored password hashes, while file writes are restricted to /tmp, /pending, and /var/run.
The record
- CVE
- CVE-2022-31749
- Published
- Jan 27, 2025
- Updated
- Jan 28, 2025
- Vendor
- WatchGuard Technologies, Inc.
- Product
- Fireware OS
- Classifications
- CWE-88, T1005
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jan 27, 2025CVE publishedPublication date reported by the CVE source.
- Jan 28, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <12.8.1
- Affected versionversion=12.2.x <12.5.x
- Affected versionversion=12.5.10
- Affected versionversion=12.x <12.1.4
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Hookfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo