{"api_version":"1","generated_at":"2026-09-25T22:11:29+00:00","cve":"CVE-2025-1218","urls":{"html":"https://cve.report/CVE-2025-1218","api":"https://cve.report/api/cve/CVE-2025-1218.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-1218","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-1218"},"summary":{"title":"Various packet overreads in mysqlnd_writeprotocol.c","description":"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.","state":"PUBLISHED","assigner":"php","published_at":"2026-09-25 21:17:20","updated_at":"2026-09-25 21:17:20"},"problem_types":["CWE-122","CWE-122 CWE-122 Heap-based buffer overflow"],"metrics":[{"version":"3.1","source":"security@php.net","type":"Secondary","score":"3.4","severity":"LOW","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","baseScore":3.4,"baseSeverity":"LOW","attackVector":"ADJACENT_NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"3.4","severity":"LOW","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","data":{"attackComplexity":"HIGH","attackVector":"ADJACENT_NETWORK","availabilityImpact":"NONE","baseScore":3.4,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7","name":"https://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7","refsource":"security@php.net","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-1218","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1218","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"PHP Group","product":"PHP","version":"affected 8.2.* 8.2.34 semver","platforms":[]},{"source":"CNA","vendor":"PHP Group","product":"PHP","version":"affected 8.3.* 8.3.35 semver","platforms":[]},{"source":"CNA","vendor":"PHP Group","product":"PHP","version":"affected 8.4.* 8.4.26 semver","platforms":[]},{"source":"CNA","vendor":"PHP Group","product":"PHP","version":"affected 8.5.* 8.5.11 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"Nora Dossche","lang":"en"},{"source":"CNA","value":"@bao00065 (GitHub)","lang":"en"},{"source":"CNA","value":"@cxxz16 (GitHub)","lang":"en"},{"source":"CNA","value":"@TristanInSec (GitHub)","lang":"en"},{"source":"CNA","value":"@OSTIF-Derek (GitHub)","lang":"en"},{"source":"CNA","value":"@HO-9 (GitHub)","lang":"en"},{"source":"CNA","value":"Jakub Zelenka","lang":"en"},{"source":"CNA","value":"Nora Dossche","lang":"en"},{"source":"CNA","value":"Alexandre Daubois","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","packageName":"ext-mysqlnd","product":"PHP","vendor":"PHP Group","versions":[{"lessThan":"8.2.34","status":"affected","version":"8.2.*","versionType":"semver"},{"lessThan":"8.3.35","status":"affected","version":"8.3.*","versionType":"semver"},{"lessThan":"8.4.26","status":"affected","version":"8.4.*","versionType":"semver"},{"lessThan":"8.5.11","status":"affected","version":"8.5.*","versionType":"semver"}]}],"credits":[{"lang":"en","type":"reporter","value":"Nora Dossche"},{"lang":"en","type":"reporter","value":"@bao00065 (GitHub)"},{"lang":"en","type":"reporter","value":"@cxxz16 (GitHub)"},{"lang":"en","type":"reporter","value":"@TristanInSec (GitHub)"},{"lang":"en","type":"reporter","value":"@OSTIF-Derek (GitHub)"},{"lang":"en","type":"reporter","value":"@HO-9 (GitHub)"},{"lang":"en","type":"remediation developer","value":"Jakub Zelenka"},{"lang":"en","type":"remediation developer","value":"Nora Dossche"},{"lang":"en","type":"analyst","value":"Alexandre Daubois"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>"}],"value":"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."}],"impacts":[{"capecId":"CAPEC-100","descriptions":[{"lang":"en","value":"CAPEC-100 Overflow Buffers"}]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"ADJACENT_NETWORK","availabilityImpact":"NONE","baseScore":3.4,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","description":"CWE-122 Heap-based buffer overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-09-25T20:48:21.777Z","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","shortName":"php"},"references":[{"tags":["vendor-advisory"],"url":"https://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7"}],"source":{"discovery":"UNKNOWN"},"title":"Various packet overreads in mysqlnd_writeprotocol.c","x_generator":{"engine":"Vulnogram 1.0.5"}}},"cveMetadata":{"assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","assignerShortName":"php","cveId":"CVE-2025-1218","datePublished":"2026-09-25T20:48:21.777Z","dateReserved":"2025-02-11T04:49:52.603Z","dateUpdated":"2026-09-25T20:48:21.777Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-25 21:17:20","lastModifiedDate":"2026-09-25 21:17:20","problem_types":["CWE-122","CWE-122 CWE-122 Heap-based buffer overflow"],"metrics":{"cvssMetricV31":[{"source":"security@php.net","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","baseScore":3.4,"baseSeverity":"LOW","attackVector":"ADJACENT_NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":1.6,"impactScore":1.4}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"1218","Ordinal":"1","Title":"Various packet overreads in mysqlnd_writeprotocol.c","CVE":"CVE-2025-1218","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"1218","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Various packet overreads in mysqlnd_writeprotocol.c"}]}}}