USN-6757-2: PHP vulnerabilities
2 May 2024
Several security issues were fixed in PHP.
Releases
Packages
- php7.4 - HTML-embedded scripting language interpreter
- php8.1 - HTML-embedded scripting language interpreter
- php8.2 - server-side, HTML-embedded scripting language (metapackage)
Details
USN-6757-1 fixed vulnerabilities in PHP. Unfortunately these fixes were incomplete for
Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 23.10. This update fixes the problem.
Original advisory details:
It was discovered that PHP incorrectly handled PHP_CLI_SERVER_WORKERS variable.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code. This issue only affected Ubuntu 20.04 LTS, and
Ubuntu 22.04 LTS. (CVE-2022-4900)
It was discovered that PHP incorrectly handled certain cookies.
An attacker could possibly use this issue to cookie by pass.
(CVE-2024-2756)
It was discovered that PHP incorrectly handled some passwords.
An attacker could possibly use this issue to cause an account takeover
attack. (CVE-2024-3096)
Update instructions
The problem can be corrected by updating your system to the following package versions:
Ubuntu 23.10
-
libapache2-mod-php8.2
-
8.2.10-2ubuntu2.1
-
php8.2
-
8.2.10-2ubuntu2.1
-
php8.2-cgi
-
8.2.10-2ubuntu2.1
-
php8.2-cli
-
8.2.10-2ubuntu2.1
-
php8.2-fpm
-
8.2.10-2ubuntu2.1
-
php8.2-xml
-
8.2.10-2ubuntu2.1
Ubuntu 22.04
-
libapache2-mod-php8.1
-
8.1.2-1ubuntu2.17
-
php8.1
-
8.1.2-1ubuntu2.17
-
php8.1-cgi
-
8.1.2-1ubuntu2.17
-
php8.1-cli
-
8.1.2-1ubuntu2.17
-
php8.1-fpm
-
8.1.2-1ubuntu2.17
-
php8.1-xml
-
8.1.2-1ubuntu2.17
Ubuntu 20.04
-
libapache2-mod-php7.4
-
7.4.3-4ubuntu2.22
-
php7.4
-
7.4.3-4ubuntu2.22
-
php7.4-cgi
-
7.4.3-4ubuntu2.22
-
php7.4-cli
-
7.4.3-4ubuntu2.22
-
php7.4-fpm
-
7.4.3-4ubuntu2.22
-
php7.4-xml
-
7.4.3-4ubuntu2.22
In general, a standard system update will make all the necessary changes.
References
Related notices
- USN-6757-1: php7.0-gmp, php8.1-fpm, php7.2-imap, php8.1-dba, libphp8.1-embed, php7.2-xsl, php7.4-xml, php7.2-bz2, php7.0-dev, php8.1-xsl, php7.2-gd, php8.1-xml, php7.0-mcrypt, php7.4-mbstring, php7.0, php7.2-sybase, php7.2-json, php8.1-bcmath, php7.4, php8.1-curl, php7.0-zip, php8.1-intl, php8.1-readline, php7.0-phpdbg, php7.0-cli, php7.0-pgsql, php7.2-recode, php7.4-soap, php8.1-snmp, php8.1-gd, php7.0-mysql, php7.4-dev, php8.1, libphp7.2-embed, php7.0-soap, php8.1-imap, libapache2-mod-php8.1, php7.2-odbc, php8.1-phpdbg, php7.4-gd, php7.4-tidy, php7.4-gmp, libapache2-mod-php8.0, php7.2-curl, libapache2-mod-php7.4, php7.2-xmlrpc, php7.4-common, php7.0-recode, php7.4-opcache, php7.0-fpm, php7.0-opcache, php7.0-intl, libphp7.4-embed, php7.0-xml, php7.0-cgi, php7.2-zip, php7.4-odbc, php7.0-sybase, php7.0-snmp, php8.1-interbase, php7.2, libapache2-mod-php7.0, php7.0-dba, php8.1-mbstring, php7.0-interbase, php7.0-odbc, php7.0-bcmath, php7.2-ldap, php7.4-interbase, php7.0-sqlite3, php7.2-cgi, php7.0-bz2, php7.4-dba, php7.4-mysql, php7.0-tidy, php7.2-gmp, php7.0-xmlrpc, php8.1-tidy, php7.4-json, php7.4-pspell, php7.2-sqlite3, php7.2-pgsql, php8.1-enchant, php7.0-pspell, php7.0-imap, php7.2-cli, php7.2-mbstring, php7.4-zip, php7.2-dba, php7.0-xsl, php7.2-fpm, php8.1-common, php7.4-curl, php7.2-snmp, php7.2-pspell, php7.2-soap, php8.1-mysql, php8.1-soap, php7.4-phpdbg, php7.4-sybase, php8.1-zip, php7.2-dev, php7.2-readline, php8.1-pspell, php7.2-intl, php7.4-imap, php8.1-gmp, php7.4-cgi, libapache2-mod-php7.2, php7.2-mysql, php7.4-cli, php7.4-pgsql, php7.0-mbstring, php7.0-enchant, php8.1-ldap, php7.0-readline, php7.4-sqlite3, php7.4-enchant, php7.2-interbase, php7.2-opcache, php7.4-readline, php7.2-enchant, php7.4-xsl, php7.4-xmlrpc, php8.1-dev, php8.1-cgi, php8.1-pgsql, php7.2-phpdbg, php8.1-odbc, php7.2-xml, libphp7.0-embed, php7.4-bcmath, php8.1-opcache, php8.1-bz2, php7.2-bcmath, php7.2-common, php7.4-ldap, php7.0-curl, php8.1-sybase, php7.4-fpm, php8.1-sqlite3, php8.1-cli, php7.4-bz2, php7.0-gd, php7.0-json, php7.4-snmp, php7.0-common, php7.0-ldap, php7.2-tidy, php7.4-intl