Heap-based Buffer Overflow Affecting eza package, versions <0.18.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-EZA-6404480
  • published6 Mar 2024
  • disclosed6 Feb 2024
  • creditMichael Rodler

Introduced: 6 Feb 2024

CVE-2024-24577  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade eza to version 0.18.2 or higher.

Overview

eza is a modern, maintained replacement for ls.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the has_dir_name function in src/libgit2/index.c. An attacker can cause heap corruption that could be leveraged for arbitrary code execution by triggering two consecutive calls to git_index_add with a filename that starts with a / character. This is only exploitable if the bad actor is able to control the ctime field of the git_index_entry data structure.

Note:

CVE-2024-25817 is a duplicate of this vulnerability.

CVSS Scores

version 3.1