{"vuln_id":"CVE-2026-7259","aliases":["CVE-2025-14179","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7261","CVE-2026-7262","CVE-2026-7568","CVE-2026-12184","CVE-2026-6104","CVE-2026-7263","GHSA-wm6j-2649-pv75"],"description":"php8.2 - security update","published_at":"2026-05-07T12:57:13Z","modified_at":"2026-11-20T01:28:47.348275Z","first_seen_at":"2026-11-21T19:15:06.060475Z","severity":"medium","severity_source":"cvss","cvss_score":6.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","cwe":["CWE-476"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00186,"epss_percentile":0.08216,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-7259"},"matched_alias":null,"items":[{"id":11918,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DEBIAN-CVE-2026-7259 / CVE-2026-7259 - In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl…","summary":"In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to  a NULL pointer dereference, resulting in a segmentation fault and denial of service. The vulnerability is exploitable when user-controlled input can influence the encoding passed to mb_regex_encoding().\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.4.21-1~deb13u1, 8.4.21-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-7259","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-7259","published_at":"2026-05-10T05:16:11.507000Z","updated_at":"2026-10-01T03:03:40.986074Z","fetched_at":"2026-11-22T13:39:48.366396Z","severity":"medium","cvss_score":6.5,"epss":0.00186,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2026-7259","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DEBIAN-CVE-2026-7259","GHSA-WM6J-2649-PV75"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":345,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11918","html":"https://vulnwatch.ve1ve2.com/item/11918"}},{"id":524,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DEBIAN-CVE-2026-7259 / CVE-2026-7259 - In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl…","summary":"In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to  a NULL pointer dereference, resulting in a segmentation fault and denial of service. The vulnerability is exploitable when user-controlled input can influence the encoding passed to mb_regex_encoding().\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.2.31-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-7259","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-7259","published_at":"2026-05-10T05:16:11.507000Z","updated_at":"2026-10-01T03:03:40.986074Z","fetched_at":"2026-11-21T19:15:05.963789Z","severity":"medium","cvss_score":6.5,"epss":0.00186,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2026-7259","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DEBIAN-CVE-2026-7259","GHSA-WM6J-2649-PV75"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":345,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/524","html":"https://vulnwatch.ve1ve2.com/item/524"}},{"id":11892,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DSA-6256-1 / CVE-2025-14179 - php8.4 - security update","summary":"Affected: Debian:13:php8.4\n\nFixed in: 8.4.21-1~deb13u1","url":"https://osv.dev/vulnerability/DSA-6256-1","published_at":"2026-05-08T00:00:00Z","updated_at":"2026-11-20T01:28:47.348275Z","fetched_at":"2026-11-22T13:39:48.366361Z","severity":"critical","cvss_score":9.8,"epss":0.00894,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2025-14179","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DSA-6256-1","GHSA-4JHR-8W89-J733","GHSA-74R9-QXHC-FX53","GHSA-7QG2-V9FJ-4MWV","GHSA-85C2-Q967-79Q5","GHSA-96WQ-48VP-HH57","GHSA-HMXP-6PC4-F3VV","GHSA-M33R-QMCV-P97Q","GHSA-M8RR-4C36-8GQ4","GHSA-MHMQ-MMQJ-2V39","GHSA-W476-322C-WPVM","GHSA-WM6J-2649-PV75"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":341,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11892","html":"https://vulnwatch.ve1ve2.com/item/11892"}},{"id":475,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DSA-6255-1 / CVE-2025-14179 - php8.2 - security update","summary":"Affected: Debian:12:php8.2\n\nFixed in: 8.2.31-1~deb12u1","url":"https://osv.dev/vulnerability/DSA-6255-1","published_at":"2026-05-08T00:00:00Z","updated_at":"2026-11-20T01:28:41.955854Z","fetched_at":"2026-11-21T19:15:05.963717Z","severity":"critical","cvss_score":9.8,"epss":0.00894,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2025-14179","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DSA-6255-1","GHSA-7QG2-V9FJ-4MWV","GHSA-85C2-Q967-79Q5","GHSA-96WQ-48VP-HH57","GHSA-HMXP-6PC4-F3VV","GHSA-M33R-QMCV-P97Q","GHSA-M8RR-4C36-8GQ4","GHSA-W476-322C-WPVM","GHSA-WM6J-2649-PV75"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":341,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/475","html":"https://vulnwatch.ve1ve2.com/item/475"}},{"id":12641,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-wm6j-2649-pv75 / CVE-2026-7259: Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()","summary":"Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()\n\nThe following PHP code triggers a segmentation fault due to a NULL pointer dereference:\r\n\r\n```php\r\n<?php\r\nmb_regex_encoding('iso-8859-11');\r\n$test_str = 'x';\r\n\r\nif (mb_ereg_search_init($test_str)) {\r\n    $val = mb_ereg_search_pos(\"x\");\r\n    var_dump($val);\r\n} else {\r\n    var_dump(false);\r\n}\r\n```\r\n\r\nThe crash occurs due to a mismatch between Oniguruma and mbfl encoding support:\r\n\r\n1. **Oniguruma** (the regex library) supports `iso-8859-11` (Thai encoding)\r\n2. **mbfl** (mbstring's internal encoding library) does **NOT** support `iso-8859-11`\r\n\r\nhttps://github.com/php/php-src/blob/0d9ff00394d9447992bb66ccb1cef3edf70576bd/ext/mbstring/php_mbregex.c#L404-L413\r\n\r\nWhen `mb_regex_encoding('iso-8859-11')` is called:\r\n- `php_mb_regex_set_mbctype()` validates the encoding against Oniguruma → **succeeds**\r\n- `mbfl_name2encoding('iso-8859-11')` is called → returns **NULL**\r\n- `MBREX(current_mbctype_mbfl_encoding)` is set to **NULL**\r\n\r\nLater, when `mb_ereg_search_init()` calls `php_mb_check_encoding()`:\r\n- `php_mb_regex_get_mbctype_encoding()` returns NULL\r\n- `php_mb_check_encoding()` dereferences the `NULL` pointer → **SEGV**\r\n\r\nThis vulnerability allows a denial of service (DoS). An attacker can reliably crash a PHP process when user-controlled input influences the encoding passed to `mb_regex_encoding()` and the application subsequently uses mbregex search APIs.\r\n\r\nEnumeration of all Oniguruma-supported encodings vs mbfl support:\r\n\r\n| Encoding / aliases | Oniguruma | mbfl | Status |\r\n|--------------------|-----------|------|--------|\r\n| iso-8859-1 … iso-8859-10 | ✓ | ✓ | Safe |\r\n| iso-8859-11, ISO8859-11 | ✓ | ✗ | **CRASH** |\r\n| iso-8859-13 … iso-8859-16 | ✓ | ✓ | Safe |\r\n| EUC-JP aliases: UJIS | ✓ | ✗ | **CRASH** |\r\n| EUC-CN aliases: GB-2312 | ✓ | ✗ | **CRASH** |\r\n| KOI8 aliases: KOI-8R | ✓ | ✗ | **CRASH** |\r\n| ASCII aliases: US_ASCII, ISO646 | ✓ | ✗ | **CRASH** |\r\n| KOI8 (no suffix) | ✓ | ✗ | Safe (rejected by mb_regex_encoding()) |\r\n| All other encodings | ✓ | ✓ | Safe |\r\n\r\n### Credits\r\nViet Hoang Luu - The University of Melbourne\r\nAmirmohammad Pasdar - The University of Melbourne\r\nWachiraphan Charoenwet - The University of Melbourne\r\nShaanan Cohney - The University of Melbourne\r\nToby Murray - The University of Melbourne\r\nVan-Thuan Pham - The University of Melbourne\r\n\n\nAffected packages: php:ext-mbstring\nPatched: ext-mbstring 8.5.6, ext-mbstring 8.4.21, ext-mbstring 8.3.31, ext-mbstring 8.2.31","url":"https://github.com/php/php-src/security/advisories/GHSA-wm6j-2649-pv75","published_at":"2026-05-07T12:57:13Z","updated_at":"2026-05-07T12:57:13Z","fetched_at":"2026-11-22T14:05:37.431182Z","severity":"medium","cvss_score":6.5,"epss":0.00186,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-mbstring","vuln_id":"CVE-2026-7259","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","GHSA-WM6J-2649-PV75"],"tags":["repo-advisory","php","CWE-476","security","repo:php/php-src","stack"],"cluster_id":11750,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12641","html":"https://vulnwatch.ve1ve2.com/item/12641"}}]}