Critical Denial of Service Vulnerability in File Package (CVE-2019-8907)

file Updated 02 Oct 2025

Summary

18/02/2019
N/A
Yes i
High
8.8

ALPINE-CVE-2019-8907: do_core_note in readelf.c in libmagic.a in file 5.35 allows remote attackers to cause a denial of service (stack corruption and application crash) or possibly have unspecified other impact. Affects file versions < 5.36-r0. Fixed in 5.36-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The 'file' package is a widely used utility in Unix-like operating systems that determines the type of a file by examining its contents. It is essential for various applications that rely on file type identification for processing and handling files correctly. However, the package has been found to contain a vulnerability that can lead to severe security issues, including application crashes and potential exploitation by remote attackers.

Vulnerability Detail

The vulnerability, identified as CVE-2019-8907, originates from the 'do_core_note' function in the 'readelf.c' file within the libmagic.a library of the 'file' package version 5.35. This flaw allows remote attackers to cause a denial of service through stack corruption, leading to application crashes. The impact of this vulnerability can be significant, as it may allow attackers to disrupt services or exploit the application further, although specific exploit details remain unspecified.

How To Fix

Minimum fixed version

5.36-r0

This is the first release that contains the fix.

sudo apk add --upgrade file

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider restricting access to the affected application or service to trusted users only. Additionally, monitoring logs for unusual activity may help identify potential exploitation attempts.

Conclusion

The CVE-2019-8907 vulnerability in the 'file' package poses a significant risk to systems using affected versions. It is crucial to update to the patched version 5.36-r0 to mitigate this risk. Users should also consider temporary workarounds and monitor their systems for any suspicious activity until the update can be applied.

See every vulnerability recorded for file →

Share this vulnerability

FAQ

CVE-2019-8907 is a critical vulnerability in the 'file' package that can lead to denial of service through stack corruption.

This vulnerability can cause application crashes and may allow remote attackers to disrupt services or exploit the application.

The CVSS score for CVE-2019-8907 is 8.8, indicating a high severity level.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If you cannot update the package, consider implementing access restrictions and monitoring for unusual activity as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for file.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

5.36-r0

This is the first release that contains the fix.

sudo apk add --upgrade file

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback