In PHP version 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, if a password stored with password_hash() starts with a null byte (\x00), testing a blank string as the password via password_verify() will incorrectly return true.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
Alpine | edge-community | noarch | php82 | < 8.2.18-r0 | UNKNOWN |
Alpine | edge-community | noarch | php83 | < 8.3.5-r0 | UNKNOWN |
Alpine | 3.19-community | noarch | php81 | < 8.1.28-r0 | UNKNOWN |
Alpine | 3.19-community | noarch | php82 | < 8.2.18-r0 | UNKNOWN |
Alpine | 3.19-community | noarch | php83 | < 8.3.6-r0 | UNKNOWN |