CVE-2007-1536: Integer underflow in the file_printf function in the "file" program before 4.20 allows user-assisted attackers
CVE-2007-1536 is a high-severity flaw (CVSS 9.3) affecting file. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 4%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.3 (High) |
| EPSS exploit chance | 13.6% (top 4%) |
| CISA exploited list | No |
| Weakness | CWE-189 |
| Published | 2007-03-20 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2007-1536?
file: upgrade to newer than 4.19. Exact commands for each OS are on this page.
Is CVE-2007-1536 being exploited?
CVE-2007-1536 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2007-1536 affect?
CVE-2007-1536 affects file. Severity is high (CVSS 9.3). 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.
How urgent is CVE-2007-1536?
Priority 62/100. Critical severity; EPSS top 4%: very likely to be exploited; Public exploit reference
Related CVEs
- CVE-2019-8906 MEDIUM 4.4 DOWNGRADE MITIGATE do_core_note in readelf.c in libmagic.a in file 5.35 has an out-of-bounds read because memcpy is misused.
- CVE-2022-48554 MEDIUM 5.5 DOWNGRADE MITIGATE File before 5.43 has an stack-based buffer over-read in file_copystr in funcs.c
- CVE-2019-8907 HIGH 8.8 DOWNGRADE MITIGATE do_core_note in readelf.c in libmagic.a in file 5.35 allows remote attackers to cause a denial of service (sta
- CVE-2019-8905 MEDIUM 4.4 MITIGATE DOWNGRADE do_core_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_print
- CVE-2019-8904 HIGH 8.8 DOWNGRADE MITIGATE do_bid_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_printf