{"vuln_id":"CVE-2024-8929","aliases":["CVE-2024-11233","CVE-2024-11234","CVE-2024-11236","CVE-2024-8932","GHSA-h35g-vwh6-m678"],"description":"php8.2 - security update","published_at":"2024-11-21T18:15:38Z","modified_at":"2026-11-20T01:19:10.262430Z","first_seen_at":"2026-11-21T19:15:06.060515Z","severity":"high","severity_source":"ghsa","cvss_score":5.8,"cvss_vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","cwe":["CWE-126","CWE-200","CWE-244","CWE-488"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.02219,"epss_percentile":0.83007,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-8929"},"matched_alias":null,"items":[{"id":482,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DSA-5819-1 / CVE-2024-11233 - php8.2 - security update","summary":"Affected: Debian:12:php8.2\n\nFixed in: 8.2.26-1~deb12u1","url":"https://osv.dev/vulnerability/DSA-5819-1","published_at":"2024-11-26T00:00:00Z","updated_at":"2026-11-20T01:19:10.262430Z","fetched_at":"2026-11-21T19:15:05.963728Z","severity":"critical","cvss_score":9.8,"epss":0.02219,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2024-11233","vuln_ids":["CVE-2020-1916","CVE-2024-11233","CVE-2024-11234","CVE-2024-11236","CVE-2024-8929","CVE-2024-8932","DSA-5819-1","GHSA-5HQH-C84R-QJCV","GHSA-C5F2-JWM7-MMQ2","GHSA-G665-FM4P-VHFF","GHSA-H35G-VWH6-M678","GHSA-R977-PRXV-HC43"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":370,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/482","html":"https://vulnwatch.ve1ve2.com/item/482"}},{"id":498,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DEBIAN-CVE-2024-8929 / CVE-2024-8929 - In PHP versions 8.1.* before 8.1.31, 8.2.* before 8.2.26, 8.3.* before 8.3.14, a hostile MySQL server can cause the client to disclose the content of its heap…","summary":"In PHP versions 8.1.* before 8.1.31, 8.2.* before 8.2.26, 8.3.* before 8.3.14, a hostile MySQL server can cause the client to disclose the content of its heap containing data from other SQL requests and possible other data belonging to different users of the same server.\n\nAffected: Debian:12:php8.2\n\nFixed in: 8.2.26-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2024-8929","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2024-8929","published_at":"2024-11-22T07:15:03.447000Z","updated_at":"2026-11-02T12:00:39.968197Z","fetched_at":"2026-11-21T19:15:05.963751Z","severity":"high","cvss_score":5.8,"epss":0.02219,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2024-8929","vuln_ids":["CVE-2024-11233","CVE-2024-11234","CVE-2024-11236","CVE-2024-8929","CVE-2024-8932","DEBIAN-CVE-2024-8929","GHSA-H35G-VWH6-M678"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":373,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/498","html":"https://vulnwatch.ve1ve2.com/item/498"}},{"id":12661,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-h35g-vwh6-m678 / CVE-2024-8929: [Mysqlnd] Leak partial content of the heap through heap buffer over-read","summary":"[Mysqlnd] Leak partial content of the heap through heap buffer over-read ### Summary By connecting to a fake MySQL server or tampering with network packets and initiating a SQL Query, it is possible to abuse the function `static enum_func_status php_mysqlnd_rset_field_read` when parsing MySQL fields packets in order to include the rest of the heap content starting from the address of the cursor of the currently read buffer. Using PHP-FPM which stays alive between request, and between two different SQL query requests, as the previous buffer used to store received data from MySQL is not emptied and `malloc` allocates a memory region which is very near the previous one, one is able to extract the response content of the previous MySQL request from the PHP-FPM worker. ### Details After the connection against a MySQL database is established, when initiating a SQL query, for example through `mysqli_query`, the expected response from the server is of the following format : - A `column count` packet, describing the number of fields that are expected to be received; - As much as `fields packets` as there are fields to be transmitted; - An `intermediate EOF` packet, telling it is the end of the \"fields packets\"; - As much as `row packet` as there are entries to be transmitted. The MySQL `fields` packets, are parsed by the `static enum_func_status php_mysqlnd_rset_field_read` defined in `/ext/mysqlnd/mysqlnd_wireprotocol.c`. Here are the interesting parts : ``` C static enum_func_status php_mysqlnd_rset_field_read(MYSQLND_CONN_DATA * conn, void * _packet) { MYSQLND_PACKET_RES_FIELD *packet = (MYSQLND_PACKET_RES_FIELD *) _packet; MYSQLND_ERROR_INFO * error_info = conn->error_info; MYSQLND_PFC * pfc = conn->protocol_frame_codec; MYSQLND_VIO * vio = conn->vio; MYSQLND_STATS * stats = conn->stats; MYSQLND_CONNECTION_STATE * connection_state = &conn->state; const size_t buf_len = pfc->cmd_buffer.length; size_t total_len = 0; zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; const zend_uchar * p = buf; const zend_uchar * const begin = buf; char *root_ptr; zend_ulong len; MYSQLND_FIELD *meta; ... // We learn here that it is not supposed to support COM_FIELD_LIST anymore. if (ERROR_MARKER == *p) { /* Error */ p++; BAIL_IF_NO_MORE_DATA; php_mysqlnd_read_error_from_line(p, packet->header.size - 1, packet->error_info.error, sizeof(packet->error_info.error), &packet->error_info.error_no, packet->error_info.sqlstate ); DBG_ERR_FMT(\"Server error : (%u) %s\", packet->error_info.error_no, packet->error_info.error); DBG_RETURN(PASS); } else if (EODATA_MARKER == *p && packet->header.size < 8) { /* Premature EOF. That should be COM_FIELD_LIST. But we don't support COM_FIELD_LIST anymore, thus this should not happen */ DBG_ERR(\"Premature EOF. That should be COM_FIELD_LIST\"); php_error_docref(NULL, E_WARNING, \"Premature EOF in result field metadata\"); DBG_RETURN(FAIL); } ... // Par Patched: 8.1.31, 8.2.26, 8.3.14","url":"https://github.com/php/php-src/security/advisories/GHSA-h35g-vwh6-m678","published_at":"2024-11-21T18:15:38Z","updated_at":"2024-11-21T18:15:38Z","fetched_at":"2026-11-22T14:05:37.431193Z","severity":"high","cvss_score":5.8,"epss":0.02219,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php-src","vuln_id":"CVE-2024-8929","vuln_ids":["CVE-2024-11233","CVE-2024-11234","CVE-2024-11236","CVE-2024-8929","CVE-2024-8932","GHSA-H35G-VWH6-M678"],"tags":["repo-advisory","CWE-126","CWE-200","CWE-244","CWE-488","security","repo:php/php-src","stack"],"cluster_id":11768,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12661","html":"https://vulnwatch.ve1ve2.com/item/12661"}}]}