Buffer Overflow Vulnerability in rust-eza Package

rust-eza Updated 02 Oct 2025

Summary

06/03/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-25817: Buffer Overflow vulnerability in eza before version 0.18.2, allows local attackers to execute arbitrary code via the .git/HEAD, .git/refs, and .git/objects components. Affects rust-eza versions < 0.18.2-1. Fixed in 0.18.2-1. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The rust-eza package is a Rust implementation of the 'eza' command-line tool, designed to enhance the usability of the 'ls' command by providing additional features and improved formatting. It is widely used in various applications for file management and directory listing. However, prior to version 0.18.2, rust-eza is susceptible to a buffer overflow vulnerability that can be exploited by local attackers.

Vulnerability Detail

The vulnerability, identified as DEBIAN-CVE-2024-25817, originates from improper handling of certain components within the rust-eza package, specifically the .git/HEAD, .git/refs, and .git/objects files. This flaw allows local attackers to execute arbitrary code, potentially leading to unauthorized access and control over the affected system. The risk is particularly concerning as it can be exploited without requiring elevated privileges, making it accessible to any local user.

How To Fix

Minimum fixed version

0.18.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-eza

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

Workaround

As a temporary workaround, users can restrict access to the vulnerable components by modifying file permissions or removing the .git directory from the affected projects. However, this is not a permanent solution and updating the package is strongly recommended.

Conclusion

The rust-eza package has a critical buffer overflow vulnerability that can be exploited by local attackers to execute arbitrary code. It is essential to update to version 0.18.2-1 or later to mitigate this risk. Users are encouraged to monitor their systems for vulnerabilities using tools like Vulert.

See every vulnerability recorded for rust-eza →

Share this vulnerability

FAQ

A buffer overflow vulnerability occurs when a program writes more data to a buffer than it can hold, potentially overwriting adjacent memory and leading to unpredictable behavior or security breaches.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

Failing to fix this vulnerability may allow local attackers to execute arbitrary code, which could compromise the integrity and security of your system.

Yes, you can temporarily restrict access to the vulnerable components or remove the .git directory, but these are not long-term solutions.

You can visit Vulert at https://vulert.com, which provides real-time monitoring and alerts for open-source vulnerabilities using a manifest file.

Related vulnerabilities

Recent vulnerabilities recorded for rust-eza.

How To Fix

Minimum fixed version

0.18.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-eza

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