{"id":"CVE-2025-1218","aliases":["CVE-2025-1218","BIT-LIBPHP-2025-1218","BIT-PHP-2025-1218","BIT-PHP-MIN-2025-1218","GHSA-r6x9-5r99-36j7"],"related":[],"kind":"vulnerability","state":"published","title":"Various packet overreads in mysqlnd_writeprotocol.c","summary":"The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still holds enough bytes for them. A malicious or compromised MySQL server can send a truncated packet and make the client read past the end of the packet buffer, which is undefined behaviour and can crash the process.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still holds enough bytes for them. A malicious or compromised MySQL server can send a truncated packet and make the client read past the end of the packet buffer, which is undefined behaviour and can crash the process.","source":"cvelist"},{"lang":"es","text":"El analizador del protocolo de conexión de mysqlnd lee campos de los paquetes del servidor antes de verificar que el paquete aún contiene suficientes bytes para ellos. Un servidor MySQL malicioso o comprometido puede enviar un paquete truncado y hacer que el cliente lea más allá del final del búfer del paquete, lo que es un comportamiento indefinido y puede provocar la caída del proceso.","source":"nvd"}],"published":"2026-09-25T20:48:21.777Z","modified":"2026-11-11T02:56:06.067Z","severity":{"scorer":"php","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":3.4,"rating":"LOW"},"severities":[{"scorer":"php","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":3.4,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-122"],"affected":[{"ranges":[{"type":"semver","introduced":"8.2.*","fixed":"8.2.34","status":"affected"},{"type":"semver","introduced":"8.3.*","fixed":"8.3.35","status":"affected"},{"type":"semver","introduced":"8.4.*","fixed":"8.4.26","status":"affected"},{"type":"semver","introduced":"8.5.*","fixed":"8.5.11","status":"affected"}],"vendor":"PHP Group","product":"PHP","package":"ext-mysqlnd","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"8.2.0","fixed":"8.2.34"},{"status":"affected","introduced":"8.3.0","fixed":"8.3.35"},{"status":"affected","introduced":"8.4.0","fixed":"8.4.26"},{"status":"affected","introduced":"8.5.0","fixed":"8.5.11"}],"vendor":"php","product":"php","cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"8.2.0","status":"affected","fixed":"8.2.34"},{"type":"semver","introduced":"8.3.0","status":"affected","fixed":"8.3.35"},{"type":"semver","introduced":"8.4.0","status":"affected","fixed":"8.4.26"},{"type":"semver","introduced":"8.5.0","status":"affected","fixed":"8.5.11"}],"ecosystem":"Bitnami","package":"libphp","purl":"pkg:bitnami/libphp","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"8.2.0","status":"affected","fixed":"8.2.34"},{"type":"semver","introduced":"8.3.0","status":"affected","fixed":"8.3.35"},{"type":"semver","introduced":"8.4.0","status":"affected","fixed":"8.4.26"},{"type":"semver","introduced":"8.5.0","status":"affected","fixed":"8.5.11"}],"ecosystem":"Bitnami","package":"php","purl":"pkg:bitnami/php","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"8.2.0","status":"affected","fixed":"8.2.34"},{"type":"semver","introduced":"8.3.0","status":"affected","fixed":"8.3.35"},{"type":"semver","introduced":"8.4.0","status":"affected","fixed":"8.4.26"},{"type":"semver","introduced":"8.5.0","status":"affected","fixed":"8.5.11"}],"ecosystem":"Bitnami","package":"php-min","purl":"pkg:bitnami/php-min","source":"bitnami"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7","tags":["advisory","exploit","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1218","tags":["web"],"sources":["bitnami"]}],"credits":["Nora Dossche","@bao00065 (GitHub)","@cxxz16 (GitHub)","@TristanInSec (GitHub)","@OSTIF-Derek (GitHub)","@HO-9 (GitHub)","Jakub Zelenka","Alexandre Daubois"],"assigner":"php","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-28T12:56:30.325Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-1218","url":"https://www.cve.org/CVERecord?id=CVE-2025-1218","licence":"CVE Terms of Use","modified":"2026-09-28T13:31:31.774Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-1218","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1218","licence":"Public domain","modified":"2026-10-23T14:55:37.780Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPHP-2025-1218","url":"https://osv.dev/vulnerability/BIT-LIBPHP-2025-1218","licence":"Apache-2.0","modified":"2026-11-11T02:56:06.067Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHP-2025-1218","url":"https://osv.dev/vulnerability/BIT-PHP-2025-1218","licence":"Apache-2.0","modified":"2026-11-11T02:56:06.067Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHP-MIN-2025-1218","url":"https://osv.dev/vulnerability/BIT-PHP-MIN-2025-1218","licence":"Apache-2.0","modified":"2026-11-11T02:56:06.067Z"}],"updatedAt":"2026-11-25T22:59:12.516Z","epss":{"score":0.00325,"percentile":0.27633,"date":"2026-12-01T12:00:22.000Z"}}