CVE-2024-25817
JSON

8.4high

eza Potential Heap Overflow Vulnerability for AArch64

Severity
8.4high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-3qx3-6hxr-j2ch

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
eza ezabefore 0.18.2CVE List
eza (crates.io)before 0.18.2GitHub Advisory Database
eza.rock ezabefore 0.18.2NVD

All scores

CISA-ADP8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-120

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

In eza, there exists a potential heap overflow vulnerability, first seen when using Ubuntu for Raspberry Pi series system, on ubuntu-raspi kernel, relating to the .git directory.

Details

The vulnerability seems to be triggered by the .git directory in some projects. This issue may be related to specific files, and the directory structure also plays a role in triggering the vulnerability. Files/folders that may be involved in triggering the vulnerability include .git/HEAD, .git/refs, and .git/objects.

As @polly pointed out to me, this is likely caused by GHSA-j2v7-4f6v-gpg8, which we do seem to use currently.

PoC

For more information check @CuB3y0nd's blogpost blog.

Impact

Arbitrary code execution.

NVD (es)

Vulnerabilidad de desbordamiento de búfer en eza anterior a la versión 0.18.2, permite a atacantes locales ejecutar código arbitrario a través de los componentes .git/HEAD, .git/refs y .git/objects.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-25817 changed 2024-08-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-3qx3-6hxr-j2ch changed 2026-03-13CC-BY-4.0
NVDCVE-2024-25817 changed 2026-06-17Public domain