{"api_version":"1","generated_at":"2026-04-23T04:12:45+00:00","cve":"CVE-2022-31627","urls":{"html":"https://cve.report/CVE-2022-31627","api":"https://cve.report/api/cve/CVE-2022-31627.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31627","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31627"},"summary":{"title":"CVE-2022-31627","description":"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.","state":"PUBLIC","assigner":"security@php.net","published_at":"2022-07-28 06:15:00","updated_at":"2022-10-25 19:45:00"},"problem_types":["CWE-787"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202209-20","name":"GLSA-202209-20","refsource":"GENTOO","tags":[],"title":"PHP: Multiple Vulnerabilities (GLSA 202209-20) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugs.php.net/bug.php?id=81723","name":"https://bugs.php.net/bug.php?id=81723","refsource":"MISC","tags":[],"title":"PHP :: Sec Bug #81723 :: Heap buffer overflow in finfo_buffer","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20220826-0008/","name":"https://security.netapp.com/advisory/ntap-20220826-0008/","refsource":"CONFIRM","tags":[],"title":"CVE-2022-31627 PHP Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31627","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31627","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"reported by xd4rker at gmail dot com","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"31627","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-31627","qid":"150558","title":"PHP Heap Buffer Overflow Vulnerability (CVE-2022-31627)"},{"cve":"CVE-2022-31627","qid":"198871","title":"Ubuntu Security Notification for Hypertext Preprocessor (PHP) Vulnerability (USN-5530-1)"},{"cve":"CVE-2022-31627","qid":"282942","title":"Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-ec0491574d)"},{"cve":"CVE-2022-31627","qid":"296084","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 50.126.3 Missing (CPUOCT2022)"},{"cve":"CVE-2022-31627","qid":"354414","title":"Amazon Linux Security Advisory for php8.1 : ALAS2022-2022-243"},{"cve":"CVE-2022-31627","qid":"354548","title":"Amazon Linux Security Advisory for php8.1 : ALAS-2022-243"},{"cve":"CVE-2022-31627","qid":"355222","title":"Amazon Linux Security Advisory for php8.1 : ALAS2023-2023-081"},{"cve":"CVE-2022-31627","qid":"38882","title":"Hypertext Preprocessor (PHP) Heap Buffer Overflow Vulnerability (81723)"},{"cve":"CVE-2022-31627","qid":"710633","title":"Gentoo Linux Hypertext Preprocessor (PHP) Multiple Vulnerabilities (GLSA 202209-20)"},{"cve":"CVE-2022-31627","qid":"905175","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for Hypertext Preprocessor (PHP) (12605)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@php.net","DATE_PUBLIC":"2022-07-05T06:05:00.000Z","ID":"CVE-2022-31627","STATE":"PUBLIC","TITLE":"Heap buffer overflow in finfo_buffer"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"PHP","version":{"version_data":[{"version_affected":"<","version_name":"8.1.X","version_value":"8.1.8"}]}}]},"vendor_name":"PHP Group"}]}},"credit":[{"lang":"eng","value":"reported by xd4rker at gmail dot com"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-590 Free of Memory not on the Heap"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://bugs.php.net/bug.php?id=81723","name":"https://bugs.php.net/bug.php?id=81723"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20220826-0008/","url":"https://security.netapp.com/advisory/ntap-20220826-0008/"},{"refsource":"GENTOO","name":"GLSA-202209-20","url":"https://security.gentoo.org/glsa/202209-20"}]},"source":{"advisory":"81723","defect":["https://bugs.php.net/bug.php?id=81723"],"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2022-07-28 06:15:00","lastModifiedDate":"2022-10-25 19:45:00","problem_types":["CWE-787"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"8.1.0","versionEndExcluding":"8.1.8","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}