-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2022.3256
                      USN-5479-2: PHP vulnerabilities
                                5 July 2022

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           PHP
Publisher:         Ubuntu
Operating System:  Ubuntu
Resolution:        Patch/Upgrade
CVE Names:         CVE-2022-31626 CVE-2022-31625 

Original Bulletin: 
   https://ubuntu.com/security/notices/USN-5479-2

Comment: CVSS (Max):  9.8 CVE-2022-31625 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
         CVSS Source: NVD
         Calculator:  https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

- --------------------------BEGIN INCLUDED TEXT--------------------

USN-5479-2: PHP vulnerabilities
4 July 2022

Several security issues were fixed in PHP.
Releases

  o Ubuntu 16.04 ESM

Packages

  o php7.0 - HTML-embedded scripting language interpreter

Details

USN-5479-1 fixed vulnerabilities in PHP. This update provides the
corresponding updates for Ubuntu 16.04 ESM.

Original advisory details:

Charles Fol discovered that PHP incorrectly handled initializing certain
arrays when handling the pg_query_params function. A remote attacker could
use this issue to cause PHP to crash, resulting in a denial of service, or
possibly execute arbitrary code. ( CVE-2022-31625 )

Charles Fol discovered that PHP incorrectly handled passwords in mysqlnd. A
remote attacker could use this issue to cause PHP to crash, resulting in a
denial of service, or possibly execute arbitrary code. ( CVE-2022-31626 )

Update instructions

The problem can be corrected by updating your system to the following package
versions:

Ubuntu 16.04

  o php7.0-cgi - 7.0.33-0ubuntu0.16.04.16+esm4
    Available with UA Infra or UA Desktop
  o php7.0-fpm - 7.0.33-0ubuntu0.16.04.16+esm4
    Available with UA Infra or UA Desktop
  o php7.0-cli - 7.0.33-0ubuntu0.16.04.16+esm4
    Available with UA Infra or UA Desktop
  o php7.0-pgsql - 7.0.33-0ubuntu0.16.04.16+esm4
    Available with UA Infra or UA Desktop
  o libapache2-mod-php7.0 - 7.0.33-0ubuntu0.16.04.16+esm4
    Available with UA Infra or UA Desktop
  o php7.0-mysql - 7.0.33-0ubuntu0.16.04.16+esm4
    Available with UA Infra or UA Desktop

In general, a standard system update will make all the necessary changes.

References

  o CVE-2022-31626
  o CVE-2022-31625

Related notices

  o USN-5479-1 : php7.2-gmp, php7.4-cli, php7.2-cli, php8.0-gd, php7.4-intl,
    php8.1-tidy, php8.1-dev, php7.2-xml, php7.2-fpm, php7.2, php8.0-xsl,
    php8.0-sybase, php8.0-enchant, php8.1-gmp, php7.4-dev, php8.0-cli,
    php7.2-dev, php8.0-bcmath, php7.2-phpdbg, php8.1-phpdbg, php8.1-pspell,
    libapache2-mod-php8.1, php7.4-opcache, php8.0-xml, php7.2-interbase,
    php8.0-sqlite3, php8.1-interbase, php8.1-mysql, php8.1, php7.2-tidy,
    php7.4-pspell, php7.2-snmp, php7.2-readline, php8.0-ldap, php7.2-pgsql,
    php7.2-pspell, php7.4-xml, php8.1-curl, php8.1-pgsql, php7.4-cgi,
    php8.0-opcache, php7.4-bz2, php7.2-zip, php8.0-phpdbg, php7.2-opcache,
    php7.2-curl, php7.4-common, php8.0-gmp, php7.2-mbstring, php8.0-pgsql,
    libapache2-mod-php8.0, php7.4-gmp, php7.4-phpdbg, php7.4-sqlite3,
    php7.2-dba, php8.0-curl, php7.4-json, php7.4-mbstring, php7.2-cgi,
    php8.1-gd, php8.0-mbstring, php8.0-mysql, libapache2-mod-php7.4,
    php7.4-tidy, php8.0-cgi, php7.4-soap, php7.4-zip, php8.0-odbc,
    php8.1-bcmath, php7.4-ldap, php7.4-bcmath, php8.0-fpm, php8.1-sqlite3,
    php8.0-dev, php7.4, php8.1-bz2, php8.1-snmp, php7.4-xsl, php8.0-tidy,
    php8.1-odbc, php8.0-snmp, php7.2-intl, php7.4-sybase, php8.0-zip,
    php8.1-intl, php8.1-sybase, php7.2-enchant, php7.2-mysql, php7.2-imap,
    php7.2-recode, php7.4-gd, php8.0-bz2, php8.0-imap, php7.2-sqlite3,
    php7.2-xsl, php8.1-cgi, php7.2-gd, php8.1-common, php8.1-enchant,
    libphp7.4-embed, libphp8.1-embed, php8.1-soap, php7.4-pgsql,
    libphp7.2-embed, php7.4-fpm, php8.0-pspell, php8.1-readline, php7.2-common,
    php8.0-interbase, php7.4-xmlrpc, php7.4-imap, php7.4-enchant, php8.0,
    php7.2-bcmath, php8.0-soap, php7.4-interbase, php7.4-dba, php7.2-ldap,
    php7.4-curl, php7.2-odbc, php7.4-readline, php8.0-common, php8.0-dba,
    php8.1-ldap, php8.1-zip, php8.1-xsl, php8.1-imap, php7.2-xmlrpc,
    php8.1-cli, php7.2-sybase, php7.4-snmp, php8.1-xml, php8.1-dba,
    php7.2-json, php7.2-bz2, php8.1-fpm, php7.4-odbc, php7.2-soap, php8.0-intl,
    php8.1-mbstring, php8.1-opcache, libphp8.0-embed, php7.4-mysql,
    libapache2-mod-php7.2, php8.0-readline

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: https://auscert.org.au/gpg-key/

iQIVAwUBYsPJnckNZI30y1K9AQge2g//Qc7tTTT92g7CM1Lgh6xcwhHLcFxZIJOQ
kZ+1VsIEYwzmFPv6csy9jJVTAmt6OZvjDXxy9jlfcbCPas+YnSzvPCZUlX8H7jS6
zYuAfPKZE0hwDEhzTZqvS1SL+5qnOJYDm82ReMXWjTl2EbQWoxuPvZrgClp17vm9
lSnKbEZBlfYfEMhx3rN2gRxTs5TfzS5tLRznzfM2LZAzAMI34Oe3rZYwn7UF0AfU
tvdFKXZrc732ayxhj1Guu/qIINr69H4m/AFFPilgImrz4jJPl/+zIyCZCTawm7Pf
pXClf5/mItMHXo6bU29gc5UolVtFtqQ0i0GkN/8X4cDJ8BZZal7OeQDK/4ssYvvc
IdMQSm3PnQNR7uLrlbarFOyTbdgS/hdi+/MeYFkUXEUqc9F1D95HjAKw8ZqjDD+p
JlJqqWwNjivrfhp8LXMJVSOkwFxuaV+8hyqu39ECZfPYyvVVxWZTSFgpRkZWUhSn
YzoPTmtBtN17n1Nvn8lNFf97lZr0HtzWIJSnZXilcTjZevOzMLE2FY8i/krHHq60
foQBma43sNMTbOgDnCgQuLUn7k9uP6zM0tJKaIyxq5RdPp/G4bMaHNPQGv5cUMNL
RV+Px58KGBpJ8M0oIuEndSC1vOWsjSrocjcyqUM2omWfrBeeQ6oKgiDo5jaosFQL
0+NeJT+K/nQ=
=9hym
-----END PGP SIGNATURE-----