{"vuln_id":"GHSA-wg4p-4hqh-c3g9","aliases":[],"description":"Possible out of bounds read when XML_OPTION_SKIP_TAGSTART used","published_at":"2025-03-13T17:44:29Z","modified_at":"2025-03-13T17:44:29Z","first_seen_at":"2026-11-22T14:05:37.615994Z","severity":"low","severity_source":"ghsa","cvss_score":null,"cvss_vector":null,"cwe":[],"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-wg4p-4hqh-c3g9"},"matched_alias":null,"items":[{"id":12655,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-wg4p-4hqh-c3g9: Possible out of bounds read when XML_OPTION_SKIP_TAGSTART used","summary":"Possible out of bounds read when XML_OPTION_SKIP_TAGSTART used This is a reocurrence of bug #72714 . ### Impact Out of bounds read can leak heap contents. ```php \"; $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_SKIP_TAGSTART, 100); $res = xml_parse_into_struct($parser,$sample,$vals,$index); var_dump($vals); ``` If we set `XML_OPTION_SKIP_TAGSTART` to a high value, we can read out of bounds. It doesn't even have to be a crazy high value, as long as an attacker can supply XML with shorter tag names than expected they can trigger an OOB read. I coincidentally came across this by reviewing `xml.c`, I noticed this is a reocurrence of https://bugs.php.net/bug.php?id=72714 This was originally fixed in https://github.com/php/php-src/commit/9164dc11e2323b8b80c389bb13d70789799b44fc, but it seems the fix was either incomplete or not merged properly. Granted, this option is rarely used. ### Workarounds Don't use `XML_OPTION_SKIP_TAGSTART`. Patched: 8.1.32, 8.2.28, 8.3.19, 8.4.5","url":"https://github.com/php/php-src/security/advisories/GHSA-wg4p-4hqh-c3g9","published_at":"2025-03-13T17:44:29Z","updated_at":"2025-03-13T17:44:29Z","fetched_at":"2026-11-22T14:05:37.431190Z","severity":"low","cvss_score":null,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php-src","vuln_id":"GHSA-wg4p-4hqh-c3g9","vuln_ids":["GHSA-WG4P-4HQH-C3G9"],"tags":["repo-advisory","security","repo:php/php-src","stack"],"cluster_id":11764,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12655","html":"https://vulnwatch.ve1ve2.com/item/12655"}}]}