Unauthenticated root access via predictable device password
Published Apr 14, 2022 · Updated Apr 15, 2025
Authentication bypass in Swift Sensors Gateway SG3-1010 allows remote attackers to gain root access through its default SSH service. The device derives the pi account password from its eight-character Gateway ID using a fixed substitution-and-encoding process, AES, and Base64. Network access to SSH plus knowledge or discovery of the printed ID permits login and passwordless sudo to root.
Summary
What happened
Authentication bypass in Swift Sensors Gateway SG3-1010 allows remote attackers to gain root access through its default SSH service. The device derives the pi account password from its eight-character Gateway ID using a fixed substitution-and-encoding process, AES, and Base64. Network access to SSH plus knowledge or discovery of the printed ID permits login and passwordless sudo to root.
The record
- CVE
- CVE-2021-40422
- Published
- Apr 14, 2022
- Updated
- Apr 15, 2025
- Vendor
- Swift Sensors
- Product
- Swift Sensors Gateway
- Classifications
- CWE-330, CWE-798, T1078.001
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 14, 2022CVE publishedPublication date reported by the CVE source.
- Apr 15, 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=SG3-1010
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
- Cisco Talos SSH login proof of conceptproof of concept · 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