CVE-2023-3247: Missing error check and insufficient random bytes in HTTP Digest authentication for SOAP
Fixed bug GHSA-76gg-c692-v2mw (Missing error check and insufficient random bytes in HTTP Digest authentication for SOAP). (CVE-2023-3247)
Other sources
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.
— Ubuntu
The random byte generation function used in the SOAP HTTP Digest authentication code is not checked for failure. This can result in a stack information leak. Furthermore, there's an insufficient number of random bytes used.
https://github.com/php/php-src/security/advisories/GHSA-76gg-c692-v2mw
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/php7.4to a version that resolves this vulnerability.Fixed in 7.4.3-4ubuntu2.19 - Upgrade
Upgrade
ubuntu/php8.1to a version that resolves this vulnerability.Fixed in 8.1.2-1ubuntu2.13 - Upgrade
Upgrade
ubuntu/php8.1to a version that resolves this vulnerability.Fixed in 8.1.7-1ubuntu3.5 - Upgrade
Upgrade
ubuntu/php8.1to a version that resolves this vulnerability.Fixed in 8.1.12-1ubuntu4.2 - Upgrade
Upgrade
ubuntu/php8.1to a version that resolves this vulnerability.Fixed in 8.1.20 - Upgrade
Upgrade
ubuntu/php8.2to a version that resolves this vulnerability.Fixed in 8.2.7-1 - Upgrade
Upgrade
ubuntu/php7.0to a version that resolves this vulnerability.Fixed in 7.0.33-0ubuntu0.16.04.16+ - Upgrade
Upgrade
ubuntu/php7.2to a version that resolves this vulnerability.Fixed in 7.2.24-0ubuntu0.18.04.17+ - Upgrade
Upgrade
debian/php7.3to a version that resolves this vulnerability.Fixed in 7.3.31-1~deb10u5 - Upgrade
Upgrade
debian/php7.4to a version that resolves this vulnerability.Fixed in 7.4.33-1+deb11u4 - Upgrade
Upgrade
debian/php8.2to a version that resolves this vulnerability.Fixed in 8.2.7-1~deb12u1Fixed in 8.2.12-1Fixed in 8.2.16-2 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 8.0.29 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 8.1.20 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 8.2.7 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 8.0.29 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch GHSA-76gg-c692-v2mw - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.0.29 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.1.20 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.2.7
Event History
Frequently Asked Questions
What is the vulnerability ID for this bug?
The vulnerability ID for this bug is CVE-2023-3247.
What is the title of this bug?
The title of this bug is 'Fixed bug GHSA-76gg-c692-v2mw (Missing error check and insufficient random bytes in HTTP Digest auth…'.
Which versions of PHP are affected by this vulnerability?
PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, and 8.2.* before 8.2.7 are affected by this vulnerability.
What is the severity of this vulnerability?
The severity of this vulnerability is medium with a CVSS score of 4.3.
How can I fix this vulnerability?
To fix this vulnerability, upgrade PHP to version 8.1.20 or apply the necessary patches.