CVSS 3.1
9.1 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NCritical (9.1) in php php. EPSS 2.1% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NExplain CVE-2022-31631 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31631?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31631?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31631 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| PHP Group PHP | from 8.0.x before 8.0.27 |
| PHP Group PHP | from 8.1.x before 8.1.15 |
| PHP Group PHP | from 8.2.x before 8.2.2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | php7.3 | 7.3.31-1~deb10u3 | DLA-3345-1 |
| Debian | 11 | php7.4 | 7.4.33-1+deb11u3 | DSA-5363-1 |
| Debian | 12 | php8.2 | 8.2.1-1 | DEBIAN-CVE-2022-31631 |
| Ubuntu | 18.04:LTS | php7.2 | 7.2.24-0ubuntu0.18.04.16 | UBUNTU-CVE-2022-31631 USN-5818-1 |
| Ubuntu | 20.04:LTS | php7.4 | 7.4.3-4ubuntu2.17 | UBUNTU-CVE-2022-31631 USN-5818-1 |
| Ubuntu | 22.04:LTS | php8.1 | 8.1.2-1ubuntu2.10 | UBUNTU-CVE-2022-31631 USN-5818-1 |
| Ubuntu | Pro:14.04:LTS | php5 | no fix listed | UBUNTU-CVE-2022-31631 |
| Ubuntu | Pro:16.04:LTS | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm5 | UBUNTU-CVE-2022-31631 USN-5905-1 |
| Red Hat | enterprise_linux:8::appstream | apcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more | 0:5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
| Red Hat | enterprise_linux:8::appstream | apcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more | 0:5.1.20-1.module+el8.6.0+13671+84712317 | RHSA-2023:0848 |
| Red Hat | enterprise_linux:8::appstream | libzip, libzip-devel, libzip-tools and 3 more | 0:1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
| Red Hat | enterprise_linux:8::appstream | libzip, libzip-devel, libzip-tools and 3 more | 0:1.7.3-1.module+el8.6.0+13671+84712317 | RHSA-2023:0848 |
| Red Hat | enterprise_linux:8::appstream | php, php-gd, php-cli and 51 more | 0:7.4.33-1.module+el8.8.0+17865+ef7eddfa | RHSA-2023:2903 |
| Red Hat | enterprise_linux:8::appstream | php, php-gd, php-cli and 47 more | 0:8.0.27-1.module+el8.7.0+17863+0ad92cd2 | RHSA-2023:0848 |
| Red Hat | enterprise_linux:8::appstream | php-pear | 1:1.10.13-1.module+el8.6.0+13671+84712317 | RHSA-2023:0848 |
| Red Hat | enterprise_linux:8::appstream | php-pear | 1:1.10.13-1.module+el8.7.0+15127+a450a8db | RHSA-2023:2903 |
| Red Hat | enterprise_linux:8::appstream | php-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource | 0:2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
| Red Hat | enterprise_linux:8::appstream | php-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource | 0:2.0.3-1.module+el8.6.0+13671+84712317 | RHSA-2023:0848 |
| Red Hat | enterprise_linux:8::appstream | php-pecl-xdebug, php-pecl-xdebug-debuginfo, php-pecl-xdebug-debugsource | 0:2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
| Red Hat | enterprise_linux:8::appstream | php-pecl-xdebug3, php-pecl-xdebug3-debuginfo, php-pecl-xdebug3-debugsource | 0:3.1.2-1.module+el8.6.0+13671+84712317 | RHSA-2023:0848 |
| 8 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS and 1 more | php7 | 7.2.34-150000.4.106.1 | SUSE-SU-2023:0084-1 |
| SUSE | Enterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 more | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SUSE | Linux Enterprise Module for Legacy 15 SP4 | php7, php7-fpm, php7-fastcgi and 1 more | 7.4.33-150400.4.16.1 | SUSE-SU-2023:0073-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP4 | php7-embed | 7.4.33-150400.4.16.1 | SUSE-SU-2023:0073-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP5 | php74 | 7.4.33-1.50.2 | SUSE-SU-2023:0072-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 15 SP4 | php8, php8-fpm, php8-test and 3 more | 8.0.27-150400.4.23.1 | SUSE-SU-2023:0074-1 |
| openSUSE | Leap 15.4 | php7 | 7.2.34-150000.4.106.1 | SUSE-SU-2023:0084-1 |
| openSUSE | Leap 15.4 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| openSUSE | Leap 15.4 | php7, php7-fpm, php7-test and 3 more | 7.4.33-150400.4.16.1 | SUSE-SU-2023:0073-1 |
| openSUSE | Leap 15.4 | php8, php8-fpm, php8-test and 3 more | 8.0.27-150400.4.23.1 | SUSE-SU-2023:0074-1 |
| openSUSE | Tumbleweed | php8 | 8.1.14-1.1 | openSUSE-SU-2024:12601-1 |
| AlmaLinux | 8 | apcu-panel, php-pecl-apcu, php-pecl-apcu-devel | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903 |
| AlmaLinux | 8 | apcu-panel, php-pecl-apcu, php-pecl-apcu-devel | 5.1.20-1.module_el8.6.0+2739+efabdb8f | ALSA-2023:0848 |
| AlmaLinux | 8 | libzip, libzip-devel, libzip-tools | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903 |
| AlmaLinux | 8 | libzip, libzip-devel, libzip-tools | 1.6.1-1.module_el8.6.0+3239+bedf0508 | ALSA-2023:2903 |
| AlmaLinux | 8 | libzip, libzip-devel, libzip-tools | 1.7.3-1.module_el8.6.0+2739+efabdb8f | ALSA-2023:0848 |
| AlmaLinux | 8 | libzip, libzip-devel, libzip-tools | 1.7.3-1.module_el8.6.0+3061+6878dd1b | ALSA-2023:0848 |
| AlmaLinux | 8 | php, php-gd, php-cli and 24 more | 7.4.33-1.module_el8.8.0+3477+f828cbb0 | ALSA-2023:2903 |
| AlmaLinux | 8 | php, php-gd, php-cli and 22 more | 8.0.27-1.module_el8.7.0+3401+dfb61c00 | ALSA-2023:0848 |
| AlmaLinux | 8 | php-pear | 1:1.10.13-1.module_el8.6.0+2739+efabdb8f | ALSA-2023:0848 |
| AlmaLinux | 8 | php-pear | 1:1.10.13-1.module_el8.6.0+3268+b150a051 | ALSA-2023:2903 |
| AlmaLinux | 8 | php-pecl-apcu, php-pecl-apcu-devel | 5.1.18-1.module_el8.6.0+3239+bedf0508 | ALSA-2023:2903 |
| AlmaLinux | 8 | php-pecl-apcu, php-pecl-apcu-devel | 5.1.20-1.module_el8.6.0+3061+6878dd1b | ALSA-2023:0848 |
| 18 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | libzip | 0:1.6.1-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux | 8 | libzip | 0:1.6.1-1.module+el8.10.0+1912+72767185 | RLSA-2023:2903 |
| Rocky Linux | 8 | libzip | 0:1.7.3-1.module+el8.6.0+790+fc63e43f | RLSA-2023:0848 |
| Rocky Linux | 8 | php | 0:7.4.33-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux | 8 | php | 0:8.0.27-1.module+el8.7.0+1156+de6c8de9 | RLSA-2023:0848 |
| Rocky Linux | 8 | php-pear | 1:1.10.13-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux | 8 | php-pear | 1:1.10.13-1.module+el8.10.0+1605+02e07af7 | RLSA-2023:2903 |
| Rocky Linux | 8 | php-pear | 1:1.10.13-1.module+el8.10.0+1912+72767185 | RLSA-2023:2903 |
| Rocky Linux | 8 | php-pear | 1:1.10.13-1.module+el8.7.0+1067+0a7071cc | RLSA-2023:0848 |
| Rocky Linux | 8 | php-pecl-apcu | 0:5.1.18-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux | 8 | php-pecl-apcu | 0:5.1.18-1.module+el8.10.0+1912+72767185 | RLSA-2023:2903 |
| Rocky Linux | 8 | php-pecl-apcu | 0:5.1.20-1.module+el8.6.0+790+fc63e43f | RLSA-2023:0848 |
| 17 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.16 | php8 | 8.0.27-r0 | ALPINE-CVE-2022-31631 |
| Alpine | v3.16, v3.17, v3.18 and 1 more | php81 | 8.1.14-r0 | ALPINE-CVE-2022-31631 |
| Alpine | v3.18, v3.19, v3.20 and 2 more | php82 | 8.2.1-r0 | ALPINE-CVE-2022-31631 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | php:8.0-8070020230118114629.ef331662 | Fixed 2023-02-21 | RHSA-2023:0848 |
| Red Hat Enterprise Linux 8 | php:7.4-8080020230118140634.cc342424 | Fixed 2023-05-16 | RHSA-2023:2903 |
| Red Hat Enterprise Linux 9 | php-0:8.0.27-1.el9_1 | Fixed 2023-02-28 | RHSA-2023:0965 |
| Red Hat Enterprise Linux 9 | php:8.1-9020020230120141750.9 | Fixed 2023-05-09 | RHSA-2023:2417 |
| Red Hat Enterprise Linux 6 | php | Out of support scope | |
| Red Hat Enterprise Linux 7 | php | Out of support scope | |
| Red Hat Software Collections | rh-php73-php | Will not fix |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-31631.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).