CVE-2022-31627

Source
https://cve.org/CVERecord?id=CVE-2022-31627
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31627.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-31627
Aliases
Downstream
Related
Published
2022-07-28T05:50:09.522Z
Modified
2026-07-15T01:49:15.025769660Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L CVSS Calculator
Summary
Heap buffer overflow in finfo_buffer
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.

Database specific
{
    "cna_assigner": "php",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31627.json",
    "cwe_ids": [
        "CWE-590"
    ],
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "8.1.X"
                },
                {
                    "fixed": "8.1.8"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
{
    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
    "source": "CPE_RANGE",
    "extracted_events": [
        {
            "introduced": "8.1.0"
        },
        {
            "fixed": "8.1.8"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31627.json"