CVSS 3.1
5.9 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HMedium (5.9) in php php. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HExplain CVE-2025-1218 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-1218?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-1218?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-2025-1218 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.2.* before 8.2.34 |
| PHP Group PHP | from 8.3.* before 8.3.35 |
| PHP Group PHP | from 8.4.* before 8.4.26 |
| PHP Group PHP | from 8.5.* before 8.5.11 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | php8.2 | 8.2.34-1~deb12u1 | DEBIAN-CVE-2025-1218 |
| Debian | 13 | php8.4 | 8.4.26-1~deb13u1 | DEBIAN-CVE-2025-1218 |
| Debian | 14 | php8.4 | 8.4.26-1 | DEBIAN-CVE-2025-1218 |
| Ubuntu | 22.04:LTS | php8.1 | 8.1.2-1ubuntu2.27 | UBUNTU-CVE-2025-1218 USN-8936-1 |
| Ubuntu | 24.04:LTS | php8.3 | 8.3.6-0ubuntu0.24.04.12 | UBUNTU-CVE-2025-1218 USN-8936-1 |
| Ubuntu | 26.04:LTS | php8.5 | 8.5.4-0ubuntu1.4 | UBUNTU-CVE-2025-1218 USN-8936-1 |
| Ubuntu | 26.10 | php8.5 | 8.5.9-0ubuntu2 | UBUNTU-CVE-2025-1218 USN-8936-1 |
| Ubuntu | Pro:14.04:LTS | php5 | no fix listed | UBUNTU-CVE-2025-1218 USN-8936-1 |
| Ubuntu | Pro:16.04:LTS | php7.0 | no fix listed | UBUNTU-CVE-2025-1218 USN-8936-1 |
| Ubuntu | Pro:18.04:LTS | php7.2 | no fix listed | UBUNTU-CVE-2025-1218 USN-8936-1 |
| Ubuntu | Pro:20.04:LTS | php7.4 | 7.4.3-4ubuntu2.29+esm4 | UBUNTU-CVE-2025-1218 USN-8936-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.10.0+22485+a3539972 | RHSA-2026:87080 |
| Red Hat | enterprise_linux:8::appstream | libzip, libzip-devel, libzip-tools and 3 more | 0:1.6.1-1.module+el8.10.0+22485+a3539972 | RHSA-2026:87080 |
| Red Hat | enterprise_linux:8::appstream | php, php-gd, php-cli and 51 more | 0:7.4.33-8.module+el8.10.0+25117+30337cca | RHSA-2026:87080 |
| Red Hat | enterprise_linux:8::appstream | php-pear | 1:1.10.13-1.module+el8.10.0+22485+a3539972 | RHSA-2026:87080 |
| Red Hat | enterprise_linux:8::appstream | php-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource | 0:2.0.1-1.module+el8.10.0+22485+a3539972 | RHSA-2026:87080 |
| Red Hat | enterprise_linux:8::appstream | php-pecl-xdebug, php-pecl-xdebug-debuginfo, php-pecl-xdebug-debugsource | 0:2.9.5-1.module+el8.10.0+22485+a3539972 | RHSA-2026:87080 |
| Red Hat | enterprise_linux:8::appstream | php-pecl-zip, php-pecl-zip-debuginfo, php-pecl-zip-debugsource | 0:1.18.2-1.module+el8.10.0+22485+a3539972 | RHSA-2026:87080 |
| Red Hat | hummingbird:1 | php, php-gd, php-cli and 25 more | 0:8.5.11-2.hum1 | RHSA-2026:70720 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 more | php8, php8-fpm, php8-embed and 2 more | 8.0.30-150400.4.76.1 | SUSE-SU-2026:4651-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 more | php8-test | 8.0.30-150400.4.76.2 | SUSE-SU-2026:4651-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 5 more | php7, php7-fpm, php7-fastcgi and 1 more | 7.4.33-150400.4.81.1 | SUSE-SU-2026:4853-1 |
| SUSE | Linux Enterprise Module for Legacy 15 SP7 | php7, apache2-mod_php7 | 7.4.33-150400.4.81.1 | SUSE-SU-2026:4853-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP7 | php7, php7-fpm, php7-embed and 2 more | 7.4.33-150400.4.81.1 | SUSE-SU-2026:4853-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP7 | php7-test | 7.4.33-150400.4.81.2 | SUSE-SU-2026:4853-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 15 SP7 | php8, php8-fpm, php8-test and 3 more | 8.3.35-150700.3.21.1 | SUSE-SU-2026:4602-1 |
| SUSE | Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6 | php8, php8-fpm, php8-test and 3 more | 8.2.34-150600.3.36.1 | SUSE-SU-2026:4603-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | php8, php8-fpm, php8-embed and 2 more | 8.4.26-160000.1.1 | SUSE-SU-2026:24158-1 |
| openSUSE | Leap 16.0 | php8, php8-fpm, php8-test and 3 more | 8.4.26-160000.1.1 | openSUSE-SU-2026:22045-1 |
| openSUSE | Tumbleweed | php8 | 8.5.11-1.1 | openSUSE-SU-2026:11901-1 |
| AlmaLinux | 8 | apcu-panel, php-pecl-apcu, php-pecl-apcu-devel | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2026:87080 |
| AlmaLinux | 8 | libzip, libzip-devel | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2026:87080 |
| AlmaLinux | 8 | libzip, libzip-devel, libzip-tools | 1.6.1-1.module_el8.10.0+3935+28808425 | ALSA-2026:87080 |
| AlmaLinux | 8 | libzip, libzip-devel, libzip-tools | 1.6.1-1.module_el8.6.0+3239+bedf0508 | ALSA-2026:87080 |
| AlmaLinux | 8 | php, php-gd, php-cli and 24 more | 7.4.33-8.module_el8.10.0+4321+cf5fd4bb | ALSA-2026:87080 |
| AlmaLinux | 8 | php-pear | 1:1.10.13-1.module_el8.10.0+3935+28808425 | ALSA-2026:87080 |
| AlmaLinux | 8 | php-pecl-apcu, php-pecl-apcu-devel | 5.1.18-1.module_el8.10.0+3935+28808425 | ALSA-2026:87080 |
| AlmaLinux | 8 | php-pecl-rrd | 2.0.1-1.module_el8.10.0+3935+28808425 | ALSA-2026:87080 |
| AlmaLinux | 8 | php-pecl-rrd | 2.0.1-1.module_el8.6.0+2750+78feabcb | ALSA-2026:87080 |
| AlmaLinux | 8 | php-pecl-rrd | 2.0.1-1.module_el8.6.0+3239+bedf0508 | ALSA-2026:87080 |
| AlmaLinux | 8 | php-pecl-xdebug | 2.9.5-1.module_el8.6.0+2750+78feabcb | ALSA-2026:87080 |
| AlmaLinux | 8 | php-pecl-xdebug | 2.9.5-1.module_el8.6.0+3239+bedf0508 | ALSA-2026:87080 |
| 3 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | libzip | 0:1.6.1-1.module+el8.10.0+1604+6558efc7 | RLSA-2026:87080 |
| Rocky Linux | 8 | libzip | 0:1.6.1-1.module+el8.10.0+1912+72767185 | RLSA-2026:87080 |
| Rocky Linux | 8 | php | 0:7.4.33-8.module+el8.10.0+40393+c071e357 | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pear | 1:1.10.13-1.module+el8.10.0+1604+6558efc7 | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pear | 1:1.10.13-1.module+el8.10.0+1605+02e07af7 | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pear | 1:1.10.13-1.module+el8.10.0+1912+72767185 | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pecl-apcu | 0:5.1.18-1.module+el8.10.0+1604+6558efc7 | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pecl-apcu | 0:5.1.18-1.module+el8.10.0+1912+72767185 | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pecl-rrd | 0:2.0.1-1.module+el8.10.0+1604+6558efc7 | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pecl-rrd | 0:2.0.1-1.module+el8.10.0+1912+72767185 | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pecl-rrd | 0:2.0.1-1.module+el8.4.0+414+2e7afcdd | RLSA-2026:87080 |
| Rocky Linux | 8 | php-pecl-xdebug | 0:2.9.5-1.module+el8.10.0+1604+6558efc7 | RLSA-2026:87080 |
| 3 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.22 | php82 | 8.2.35-r0 | ALPINE-CVE-2025-1218 |
| Alpine | v3.22, v3.23 | php83 | 8.3.36-r0 | ALPINE-CVE-2025-1218 |
| Alpine | v3.22, v3.23 | php84 | 8.4.27-r0 | ALPINE-CVE-2025-1218 |
| Alpine | v3.23 | php85 | 8.5.12-r0 | ALPINE-CVE-2025-1218 |
| Alpine | v3.24 | php83 | 8.3.35-r0 | ALPINE-CVE-2025-1218 |
| Alpine | v3.24 | php84 | 8.4.26-r0 | ALPINE-CVE-2025-1218 |
| Alpine | v3.24 | php85 | 8.5.11-r0 | ALPINE-CVE-2025-1218 |
| Azure Linux | 3 | php | no fix listed | AZL-104904 |
| Alpaquita | 25, stream | php83 | 8.3.35-r0 | BELL-CVE-2025-1218 |
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; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.
Red Hat rates this Low.
This issue is rated Low for Red Hat customers because exploitation requires a PHP application using mysqlnd to communicate with a malicious or compromised MySQL server, and the practical impact is an out-of-bounds read that primarily crashes the client process. Confidentiality and integrity impact are not established for Red Hat product use. Applications that connect only to trusted database servers are not practically exposed.
Restrict PHP applications to trusted MySQL/MariaDB servers and isolate database networks. Prefer authenticated, TLS-protected database connections and avoid exposing database endpoints to untrusted networks.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | php:7.4-8100020261021081045.f7998665 | Fixed 2026-10-21 | RHSA-2026:87080 |
| Red Hat Hardened Images | php-main-8.5.11-2.hum1 | Fixed 2026-09-23 | RHSA-2026:70720 |
| Red Hat Enterprise Linux 10 | php | Fix deferred | |
| Red Hat Enterprise Linux 10 | php8.4 | Fix deferred | |
| Red Hat Enterprise Linux 6 | php | Out of support scope | |
| Red Hat Enterprise Linux 7 | php | Fix deferred | |
| Red Hat Enterprise Linux 8 | php:8.2/php | Fix deferred | |
| Red Hat Enterprise Linux 9 | php | Fix deferred | |
| Red Hat Enterprise Linux 9 | php:8.2/php | Fix deferred | |
| Red Hat Enterprise Linux 9 | php:8.3/php | Fix deferred | |
| Red Hat Enterprise Linux 9 | php:8.4/php | Fix deferred |
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-2025-1218.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.