{"vuln_id":"GHSA-r977-prxv-hc43","aliases":["CVE-2024-11233"],"description":"Single byte overread with convert.quoted-printable-decode filter","published_at":"2024-11-21T18:15:14Z","modified_at":"2024-11-21T18:15:14Z","first_seen_at":"2026-11-22T14:05:37.624335Z","severity":"medium","severity_source":"ghsa","cvss_score":4.8,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L","cwe":["CWE-122"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-r977-prxv-hc43"},"matched_alias":null,"items":[{"id":12665,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-r977-prxv-hc43 / CVE-2024-11233: Single byte overread with convert.quoted-printable-decode filter","summary":"Single byte overread with convert.quoted-printable-decode filter\n\n### Summary\r\nA memory-related vulnerability in PHP’s filter handling system, particularly when processing input with convert.quoted-printable-decode filters, leads to a segmentation fault. This vulnerability is triggered through specific sequences of input data, causing PHP to crash. When exploited, it allows an attacker to extract a single byte of data from the heap or cause a DoS.\r\n\r\n\r\n### Details\r\nThe issue is caused by a missing bound check.\r\n\r\nThe crash is reliably detected by AddressSanitizer (ASAN), which reports a segmentation fault caused by a read memory access violation. This suggests that there may be an out-of-bounds read or a use-after-free condition in the affected filters. Below is an example stack trace as detected by ASAN:\r\n\r\n```\r\nAddressSanitizer: SEGV on unknown address 0x7ffff4200000 (pc 0x55555635d5b4 bp 0x000000000001 sp 0x7fffffff9e20 T0)\r\nThe signal is caused by a READ memory access.\r\n#0 0x55555635d5b4 in php_conv_qprint_decode_convert (/php-8.3.13/sapi/cli/php+0xf5d5b4)\r\n#1 0x555556355e00 in strfilter_convert_append_bucket (/php-8.3.13/sapi/cli/php+0xf55e00)\r\n#2 0x55555635507d in strfilter_convert_filter (/php-8.3.13/sapi/cli/php+0xf5507d)\r\n...\r\n```\r\n\r\n### PoC\r\n1. Set to not detect leaks \r\n`export ASAN_OPTIONS=detect_leaks=0`\r\n\r\n2. Run the following with the 2 attached files against php compiled with ASAN in [php_crash.zip](https://github.com/user-attachments/files/17654396/php_crash.zip)\r\n`cat ./php_crash | ./sapi/cli/php poc.php`\r\n\r\n3. Note the ASAN trace once the final output his the echo implode\r\n```\r\nroot@32fbd16f3ed1:/php-8.3.13# cat php_crash | ./sapi/cli/php zlib_fuzz.php\r\nWarning: file_get_contents(): Unable to locate filter \"bzip2.compress\" in /php-8.3.13/zlib_fuzz.php on line 25\r\n\r\nWarning: file_get_contents(): Unable to create filter (bzip2.compress) in /php-8.3.13/zlib_fuzz.php on line 25\r\n\r\nWarning: file_get_contents(): Unable to locate filter \"bzip2.decompress\" in /php-8.3.13/zlib_fuzz.php on line 25\r\n\r\nWarning: file_get_contents(): Unable to create filter (bzip2.decompress) in /php-8.3.13/zlib_fuzz.php on line 25\r\nAddressSanitizer:DEADLYSIGNAL\r\n=================================================================\r\n==1558930==ERROR: AddressSanitizer: SEGV on unknown address 0x7ffff4200000 (pc 0x55555635d5b4 bp 0x000000000001 sp 0x7fffffff9e40 T0)\r\n==1558930==The signal is caused by a READ memory access.\r\n    #0 0x55555635d5b4 in php_conv_qprint_decode_convert /php-8.3.13/ext/standard/filters.c:999:46\r\n    #1 0x555556355e00 in strfilter_convert_append_bucket /php-8.3.13/ext/standard/filters.c\r\n    #2 0x55555635507d in strfilter_convert_filter /php-8.3.13/ext/standard/filters.c:1525:7\r\n    #3 0x5555563f7b0f in _php_stream_fill_read_buffer /php-8.3.13/main/streams/streams.c:583:14\r\n    #4 0x5555563f942e in _php_stream_read /php-8.3.13/main/streams/streams.c:747:8\r\n    #5 0x555556400a9c in _php_stream_copy_to_mem /php-8.3.13/main/streams/streams.c:1580:16\r\n    #6 0x5555561ced5e in zif_file_get_contents /php-8.3.13\nPatched:  8.1.31,  8.2.26,  8.3.14","url":"https://github.com/php/php-src/security/advisories/GHSA-r977-prxv-hc43","published_at":"2024-11-21T18:15:14Z","updated_at":"2024-11-21T18:15:14Z","fetched_at":"2026-11-22T14:05:37.431196Z","severity":"high","cvss_score":8.2,"epss":0.01607,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php-src","vuln_id":"CVE-2024-11233","vuln_ids":["CVE-2024-11233","CVE-2024-11234","CVE-2024-11236","CVE-2024-8929","CVE-2024-8932","GHSA-R977-PRXV-HC43"],"tags":["repo-advisory","CWE-122","security","repo:php/php-src","stack"],"cluster_id":11773,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12665","html":"https://vulnwatch.ve1ve2.com/item/12665"}}]}