USN-5479-3 (UBUNTU-CVE-2022-31625)
Vulnerability from osv_ubuntu – Published: 2022-07-07 21:53 – Updated: 2026-04-27 14:11 – Source websiteUSN-5479-1 fixed vulnerabilities in PHP. Unfortunately that update for CVE-2022-31625 was incomplete for Ubuntu 18.04 LTS. This update fixes the problem.
We apologize for the inconvenience.
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)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"database_specific": {
"cves_map": {
"cves": [
{
"id": "CVE-2022-31625",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
]
}
],
"ecosystem": "Ubuntu:18.04:LTS"
}
},
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "libapache2-mod-php7.2",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "libphp7.2-embed",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-bcmath",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-bz2",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-cgi",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-cli",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-common",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-curl",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-dba",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-enchant",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-fpm",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-gd",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-gmp",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-imap",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-interbase",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-intl",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-json",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-ldap",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-mbstring",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-mysql",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-odbc",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-opcache",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-pgsql",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-phpdbg",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-pspell",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-readline",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-recode",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-snmp",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-soap",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-sqlite3",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-sybase",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-tidy",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-xml",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-xmlrpc",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-xsl",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
},
{
"binary_name": "php7.2-zip",
"binary_version": "7.2.24-0ubuntu0.18.04.13"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "php7.2",
"purl": "pkg:deb/ubuntu/php7.2@7.2.24-0ubuntu0.18.04.13?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "7.2.24-0ubuntu0.18.04.13"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.2.1-1ubuntu2",
"7.2.2-1ubuntu1",
"7.2.2-1ubuntu2",
"7.2.3-1ubuntu1",
"7.2.5-0ubuntu0.18.04.1",
"7.2.7-0ubuntu0.18.04.1",
"7.2.7-0ubuntu0.18.04.2",
"7.2.10-0ubuntu0.18.04.1",
"7.2.15-0ubuntu0.18.04.1",
"7.2.15-0ubuntu0.18.04.2",
"7.2.17-0ubuntu0.18.04.1",
"7.2.19-0ubuntu0.18.04.1",
"7.2.19-0ubuntu0.18.04.2",
"7.2.24-0ubuntu0.18.04.1",
"7.2.24-0ubuntu0.18.04.2",
"7.2.24-0ubuntu0.18.04.3",
"7.2.24-0ubuntu0.18.04.4",
"7.2.24-0ubuntu0.18.04.6",
"7.2.24-0ubuntu0.18.04.7",
"7.2.24-0ubuntu0.18.04.8",
"7.2.24-0ubuntu0.18.04.9",
"7.2.24-0ubuntu0.18.04.10",
"7.2.24-0ubuntu0.18.04.11",
"7.2.24-0ubuntu0.18.04.12"
]
}
],
"aliases": [],
"details": "USN-5479-1 fixed vulnerabilities in PHP. Unfortunately that update for\nCVE-2022-31625 was incomplete for Ubuntu 18.04 LTS. This update fixes\nthe problem.\n\nWe apologize for the inconvenience.\n\nOriginal advisory details:\n\n Charles Fol discovered that PHP incorrectly handled initializing certain\n arrays when handling the pg_query_params function. A remote attacker could\n use this issue to cause PHP to crash, resulting in a denial of service, or\n possibly execute arbitrary code. (CVE-2022-31625)\n \n Charles Fol discovered that PHP incorrectly handled passwords in mysqlnd. A\n remote attacker could use this issue to cause PHP to crash, resulting in a\n denial of service, or possibly execute arbitrary code. (CVE-2022-31626)\n",
"id": "USN-5479-3",
"modified": "2026-04-27T14:11:28Z",
"published": "2022-07-07T21:53:43Z",
"references": [
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5479-3"
},
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2022-31625"
}
],
"related": [],
"schema_version": "1.7.0",
"summary": "php7.2 regression",
"upstream": [
"UBUNTU-CVE-2022-31625"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.