CVE-2019-8904: do_bid_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_printf
CVE-2019-8904 is a high-severity flaw (CVSS 8.8) affecting file, ubuntu linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
do_bid_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_printf and file_vprintf.
Why this priority
- High severity
- Public exploit reference
- On your watchlist
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 2.5% (top 15%) |
| CISA exploited list | No |
| Weakness | CWE-125 |
| Published | 2019-02-18 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · 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
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-2019-8904?
file: downgrade or apply the listed mitigation; ubuntu linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2019-8904 being exploited?
CVE-2019-8904 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-2019-8904 affect?
CVE-2019-8904 affects file, ubuntu linux. Severity is high (CVSS 8.8). do_bid_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_printf and file_vprintf.
How urgent is CVE-2019-8904?
Priority 62/100. High severity; Public exploit reference; On your watchlist
Software pages
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-18218 HIGH 7.8 UPGRADE MITIGATE cdf_read_property_info in cdf.c in file through 5.37 does not restrict the number of CDF_VECTOR elements, whic