Skip to content
Fencer Intel
high 8.8

CVE-2019-8904 json

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.

published 7y ago modified 4mo ago also EUVD-2019-18292

cvss
8.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.5%
EPSS 2.5% chance of exploitation in 30 days, percentile 84%
public exploits
0
none known

Summary

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.

Patch / fix

  • file Debian 14, Debian 13, Debian 12 1:5.35-3

debian advisories DEBIAN-CVE-2019-8904

  • file openSUSE Tumbleweed 5.40-1.14

opensuse advisories openSUSE-SU-2024:10755-1

  • file Alpine 3.24, Alpine 3.23, Alpine 3.22 +13 more 5.36-r0

alpine advisories ALPINE-CVE-2019-8904

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • file Arch Linux 5.36-1

arch linux advisories AVG-907

Is CVE-2019-8904 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-8904 updated cvss 5.4

file: stack-based buffer over-read in do_bid_note in readelf.c

  • Red Hat Enterprise Linux 5 file, php53 Red Hat Enterprise Linux 6 php, file, php-gd, php-cli, php-dba, php-fpm, +23 more Red Hat Enterprise Linux 7 php, file, php-gd, php-cli, php-dba, php-fpm, +21 more Red Hat Enterprise Linux 8 file, file-libs, python3-magic Red Hat Software Collections rh-php72-php, rh-php73-php, rh-php72-php-gd, rh-php73-php-gd, rh-php72-php-cli, rh-php72-php-dba, +50 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.49% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • bugs.astron.com https://bugs.astron.com/view.php?id=62 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.