title: Missing error check and insufficient random bytes in HTTP Digest authentication for SOAP
description: In PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generator failure, it could lead to a disclosure of 31 bits of uninitialized memory from the client to the server, and it also made easier to a malicious server to guess the client's nonce.
problem types: CWE-252 Unchecked Return Value
affected:
{
defaultStatus: unaffected
product: PHP
vendor: PHP Group
versions:
lessThan: 8.0.29, status: affected, version: 8.0.*, versionType: semver
lessThan: 8.1.20, status: affected, version: 8.1.*, versionType: semver
lessThan: 8.2.7, status: affected, version: 8.2.*, versionType: semver
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 2.6
baseSeverity: LOW
confidentialityImpact: LOW
integrityImpact: NONE
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL