USN-5902-1: PHP vulnerabilities

Published Feb 28, 2023
·
Updated

It was discovered that PHP incorrectly handled certain invalid Blowfish password hashes. An invalid password hash could possibly allow applications to accept any password as valid, contrary to expectations. (CVE-2023-0567) It was discovered that PHP incorrectly handled resolving long paths. A remote attacker could possibly use this issue to obtain or modify sensitive information. (CVE-2023-0568) It was discovered that PHP incorrectly handled a large number of parts in HTTP form uploads. A remote attacker could possibly use this issue to cause PHP to consume resources, leading to a denial of service. (CVE-2023-0662)

Affected Software

40 affected componentsFixes available
All of the following
ubuntu/php8.1-fpm<8.1.7-1ubuntu3.3
8.1.7-1ubuntu3.3
Ubuntu Ubuntu=22.10
All of the following
ubuntu/php8.1-cli<8.1.7-1ubuntu3.3
8.1.7-1ubuntu3.3
Ubuntu Ubuntu=22.10
All of the following
ubuntu/php8.1-cgi<8.1.7-1ubuntu3.3
8.1.7-1ubuntu3.3
Ubuntu Ubuntu=22.10
All of the following
ubuntu/php8.1<8.1.7-1ubuntu3.3
8.1.7-1ubuntu3.3
Ubuntu Ubuntu=22.10
All of the following
ubuntu/libapache2-mod-php8.1<8.1.7-1ubuntu3.3
8.1.7-1ubuntu3.3
Ubuntu Ubuntu=22.10
All of the following
ubuntu/php8.1-fpm<8.1.2-1ubuntu2.11
8.1.2-1ubuntu2.11
Ubuntu Ubuntu=22.04
All of the following
ubuntu/php8.1-cli<8.1.2-1ubuntu2.11
8.1.2-1ubuntu2.11
Ubuntu Ubuntu=22.04
All of the following
ubuntu/php8.1-cgi<8.1.2-1ubuntu2.11
8.1.2-1ubuntu2.11
Ubuntu Ubuntu=22.04
All of the following
ubuntu/php8.1<8.1.2-1ubuntu2.11
8.1.2-1ubuntu2.11
Ubuntu Ubuntu=22.04
All of the following
ubuntu/libapache2-mod-php8.1<8.1.2-1ubuntu2.11
8.1.2-1ubuntu2.11
Ubuntu Ubuntu=22.04
All of the following
ubuntu/libapache2-mod-php7.4<7.4.3-4ubuntu2.18
7.4.3-4ubuntu2.18
Ubuntu Ubuntu=20.04
All of the following
ubuntu/php7.4-cgi<7.4.3-4ubuntu2.18
7.4.3-4ubuntu2.18
Ubuntu Ubuntu=20.04
All of the following
ubuntu/php7.4<7.4.3-4ubuntu2.18
7.4.3-4ubuntu2.18
Ubuntu Ubuntu=20.04
All of the following
ubuntu/php7.4-fpm<7.4.3-4ubuntu2.18
7.4.3-4ubuntu2.18
Ubuntu Ubuntu=20.04
All of the following
ubuntu/php7.4-cli<7.4.3-4ubuntu2.18
7.4.3-4ubuntu2.18
Ubuntu Ubuntu=20.04
All of the following
ubuntu/php7.2-fpm<7.2.24-0ubuntu0.18.04.17
7.2.24-0ubuntu0.18.04.17
Ubuntu Ubuntu=18.04
All of the following
ubuntu/php7.2-cli<7.2.24-0ubuntu0.18.04.17
7.2.24-0ubuntu0.18.04.17
Ubuntu Ubuntu=18.04
All of the following
ubuntu/php7.2<7.2.24-0ubuntu0.18.04.17
7.2.24-0ubuntu0.18.04.17
Ubuntu Ubuntu=18.04
All of the following
ubuntu/php7.2-cgi<7.2.24-0ubuntu0.18.04.17
7.2.24-0ubuntu0.18.04.17
Ubuntu Ubuntu=18.04
All of the following
ubuntu/libapache2-mod-php7.2<7.2.24-0ubuntu0.18.04.17
7.2.24-0ubuntu0.18.04.17
Ubuntu Ubuntu=18.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 8.1.7-1ubuntu3.3
  2. Upgrade

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

    Fixed in 8.1.7-1ubuntu3.3
  3. Upgrade

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

    Fixed in 8.1.7-1ubuntu3.3
  4. Upgrade

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

    Fixed in 8.1.7-1ubuntu3.3
  5. Upgrade

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

    Fixed in 8.1.7-1ubuntu3.3
  6. Upgrade

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

    Fixed in 8.1.2-1ubuntu2.11
  7. Upgrade

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

    Fixed in 8.1.2-1ubuntu2.11
  8. Upgrade

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

    Fixed in 8.1.2-1ubuntu2.11
  9. Upgrade

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

    Fixed in 8.1.2-1ubuntu2.11
  10. Upgrade

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

    Fixed in 8.1.2-1ubuntu2.11
  11. Upgrade

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

    Fixed in 7.4.3-4ubuntu2.18
  12. Upgrade

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

    Fixed in 7.4.3-4ubuntu2.18
  13. Upgrade

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

    Fixed in 7.4.3-4ubuntu2.18
  14. Upgrade

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

    Fixed in 7.4.3-4ubuntu2.18
  15. Upgrade

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

    Fixed in 7.4.3-4ubuntu2.18
  16. Upgrade

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

    Fixed in 7.2.24-0ubuntu0.18.04.17
  17. Upgrade

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

    Fixed in 7.2.24-0ubuntu0.18.04.17
  18. Upgrade

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

    Fixed in 7.2.24-0ubuntu0.18.04.17
  19. Upgrade

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

    Fixed in 7.2.24-0ubuntu0.18.04.17
  20. Upgrade

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

    Fixed in 7.2.24-0ubuntu0.18.04.17
  21. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Patch USN-5902-1

Event History

Feb 28, 2023
Advisory Published
via Ubuntu·12:00 AM

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID for this security advisory?

The vulnerability ID for this security advisory is USN-5902-1.

2

What is the severity of the PHP vulnerabilities mentioned in this advisory?

The severity of the PHP vulnerabilities mentioned in this advisory is not specified.

3

Which versions of PHP are affected by these vulnerabilities?

The affected versions of PHP are 7.2, 7.4, and 8.1.

4

What can an attacker do with these vulnerabilities?

The details of the impact of these vulnerabilities are not specified in the advisory.

5

How can I fix these vulnerabilities?

To fix these vulnerabilities, update your PHP packages to the specified remedial versions.

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