An authentication bypass exists in the `sshd` daemon on Linux systems using musl libc without PAM (Pluggable Authentication Modules). The issue occurs when an account is configured to be key-only or password-disabled, typically represented by a single asterisk (`*`) in the password hash field of `/etc/shadow`. Due to a misinterpretation of whether a string is a password hash, the system may grant access if a password between 256 and 1024 characters is provided. This happens because musl libc's `crypt()` function returns a literal asterisk as an error marker for passwords exceeding 256 bytes, which OpenSSH then mistakenly matches against the stored asterisk in the account record.
Real-world incidents have been reported where attackers gained root access to vulnerable systems, deployed the TAC Agent (a Python-based remote management implant), and performed reconnaissance on cloud metadata services (AWS, Azure, and Alibaba Cloud) and sensitive files like `/etc/shadow` using `doas`.