CVE-2023-3247
PHP vulnerability analysis and mitigation

Overview

CVE-2023-3247 affects PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, and 8.2.* before 8.2.7. The vulnerability is related to SOAP HTTP Digest Authentication, where the random value generator was not checked for failure and used a narrower range of values than intended (PHP Advisory, NVD).

Technical details

The vulnerability stems from a missing error check in the random byte generation function used in the SOAP HTTP Digest authentication code. Additionally, there was an insufficient number of random bytes used in the implementation. The random value generator was using only 31 bits of randomness, which was significantly less than required for secure operation (PHP Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 4.3 (Medium) by NVD (NVD).

Impact

The vulnerability can lead to two primary security issues: first, it could result in the disclosure of 31 bits of uninitialized memory from the client to the server. Second, it made it easier for a malicious server to guess the client's nonce. The small size of the client nonce (cnonce) could cause the server to erroneously reject requests due to repeated (cnonce, nc) pairs (PHP Advisory).

Mitigation and workarounds

The vulnerability has been patched in PHP versions 8.0.29, 8.1.20, and 8.2.7. The fix includes increasing the nonce size and implementing proper checking of the return value of php_random_bytes_throw(). Users should upgrade to these patched versions or later to mitigate the vulnerability (PHP Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2026-23493HIGH8.6
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026
CVE-2026-23495MEDIUM4.3
  • PHPPHP
  • pimcore/admin-ui-classic-bundle
NoYesJan 15, 2026
CVE-2026-23494MEDIUM4.3
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management