ubuntu-cve-2022-31627
Vulnerability from osv_ubuntu
Published
2022-07-15 00:00
Modified
2026-04-22 07:41
Summary
Details
In PHP versions 8.1.x below 8.1.8, when fileinfo functions, such as finfo_buffer, due to incorrect patch applied to the third party code from libmagic, incorrect function may be used to free allocated memory, which may lead to heap corruption.
Severity
9.8 (Critical)
7.7 (High)
N/A (UNKNOWN)
References
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "libapache2-mod-php7.4",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "libapache2-mod-php8.0",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "libapache2-mod-php8.1",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "libphp8.1-embed",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-bcmath",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-bz2",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-cgi",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-cli",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-common",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-curl",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-dba",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-enchant",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-fpm",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-gd",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-gmp",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-imap",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-interbase",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-intl",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-ldap",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-mbstring",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-mysql",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-odbc",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-opcache",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-pgsql",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-phpdbg",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-pspell",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-readline",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-snmp",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-soap",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-sqlite3",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-sybase",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-tidy",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-xml",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-xsl",
"binary_version": "8.1.2-1ubuntu2.2"
},
{
"binary_name": "php8.1-zip",
"binary_version": "8.1.2-1ubuntu2.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "php8.1",
"purl": "pkg:deb/ubuntu/php8.1@8.1.2-1ubuntu2.2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8.1.2-1ubuntu2.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8.1.0~rc4-1ubuntu2",
"8.1.0-1",
"8.1.2-1ubuntu1",
"8.1.2-1ubuntu2",
"8.1.2-1ubuntu2.1"
]
}
],
"aliases": [],
"details": "In PHP versions 8.1.x below 8.1.8, when fileinfo functions, such as finfo_buffer, due to incorrect patch applied to the third party code from libmagic, incorrect function may be used to free allocated memory, which may lead to heap corruption.",
"id": "UBUNTU-CVE-2022-31627",
"modified": "2026-04-22T07:41:36Z",
"published": "2022-07-15T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2022-31627"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5530-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2022-31627"
}
],
"related": [
"USN-5530-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/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:L",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2022-31627"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
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.
Loading…
Loading…