CVE-2023-3247: Missing error check and insufficient random bytes in HTTP Digest authentication for SOAP

Published Jun 8, 2023
·
Updated

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

18 affected componentsFixes available
ubuntu/php7.4<7.4.3-4ubuntu2.19
7.4.3-4ubuntu2.19
ubuntu/php8.1<8.1.2-1ubuntu2.13
8.1.2-1ubuntu2.13
ubuntu/php8.1<8.1.7-1ubuntu3.5
8.1.7-1ubuntu3.5
ubuntu/php8.1<8.1.12-1ubuntu4.2
8.1.12-1ubuntu4.2
ubuntu/php8.1<8.1.20
8.1.20
ubuntu/php8.2<8.2.7-1
8.2.7-1
ubuntu/php7.0<7.0.33-0ubuntu0.16.04.16+
7.0.33-0ubuntu0.16.04.16+
ubuntu/php7.2<7.2.24-0ubuntu0.18.04.17+
7.2.24-0ubuntu0.18.04.17+
debian/php7.3<=7.3.31-1~deb10u1
7.3.31-1~deb10u5
debian/php7.4
7.4.33-1+deb11u4
debian/php8.2
8.2.7-1~deb12u18.2.12-18.2.16-2
redhat/php<8.0.29
8.0.29
redhat/php<8.1.20
8.1.20
redhat/php<8.2.7
8.2.7
PHP PHP>=8.0.0<8.0.29
PHP PHP>=8.1.0<8.1.20
PHP PHP>=8.2.0<8.2.7
PHP PHP<8.0.29
8.0.29

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/php7.4 to a version that resolves this vulnerability.

    Fixed in 7.4.3-4ubuntu2.19
  2. Upgrade

    Upgrade ubuntu/php8.1 to a version that resolves this vulnerability.

    Fixed in 8.1.2-1ubuntu2.13
  3. Upgrade

    Upgrade ubuntu/php8.1 to a version that resolves this vulnerability.

    Fixed in 8.1.7-1ubuntu3.5
  4. Upgrade

    Upgrade ubuntu/php8.1 to a version that resolves this vulnerability.

    Fixed in 8.1.12-1ubuntu4.2
  5. Upgrade

    Upgrade ubuntu/php8.1 to a version that resolves this vulnerability.

    Fixed in 8.1.20
  6. Upgrade

    Upgrade ubuntu/php8.2 to a version that resolves this vulnerability.

    Fixed in 8.2.7-1
  7. Upgrade

    Upgrade ubuntu/php7.0 to a version that resolves this vulnerability.

    Fixed in 7.0.33-0ubuntu0.16.04.16+
  8. Upgrade

    Upgrade ubuntu/php7.2 to a version that resolves this vulnerability.

    Fixed in 7.2.24-0ubuntu0.18.04.17+
  9. Upgrade

    Upgrade debian/php7.3 to a version that resolves this vulnerability.

    Fixed in 7.3.31-1~deb10u5
  10. Upgrade

    Upgrade debian/php7.4 to a version that resolves this vulnerability.

    Fixed in 7.4.33-1+deb11u4
  11. Upgrade

    Upgrade debian/php8.2 to a version that resolves this vulnerability.

    Fixed in 8.2.7-1~deb12u1Fixed in 8.2.12-1Fixed in 8.2.16-2
  12. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 8.0.29
  13. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 8.1.20
  14. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 8.2.7
  15. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.0.29
  16. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch GHSA-76gg-c692-v2mw
  17. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.29
  18. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.1.20
  19. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.2.7

Event History

Jun 8, 2023
CVE Published
via PHP·12:00 AM
Jul 22, 2023
CVE Published
via MITRE·04:17 AM
Data Sourced
via MITRE·04:17 AM
DescriptionSeverityWeakness
Data Sourced
05:15 AM
Description
Data Sourced
via NVD·05:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:20 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this bug?

The vulnerability ID for this bug is CVE-2023-3247.

2

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…'.

3

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.

4

What is the severity of this vulnerability?

The severity of this vulnerability is medium with a CVSS score of 4.3.

5

How can I fix this vulnerability?

To fix this vulnerability, upgrade PHP to version 8.1.20 or apply the necessary patches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203