CVE-2008-3546 Memory corruption in n/a

High 7.5 Published Updated

Local attackers can execute arbitrary code via a stack-based buffer overflow in Git utilities when processing excessively long PATH variables.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2008-3546?

CVE-2008-3546 is a high-severity memory corruption vulnerability in n/a, published on 7 Aug 2008. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Stack-based buffer overflow in the (1) diff_addremove and (2) diff_change functions in GIT before 1.5.6.4 might allow local users to execute arbitrary code via a PATH whose length is larger than the system's PATH_MAX when running GIT utilities such as git-diff or git-grep.

Weakness: CWE-119

Which versions are affected by CVE-2008-3546?

It affects 1 product.

Products include Git Git.

How do I fix CVE-2008-3546?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2008-3546 being exploited?

There is no known exploitation of CVE-2008-3546 in the wild and no public exploit code.

Sources

Also known as DSA-1637-1, DTSA-153-1, DTSA-153-2, GHSA-j9cr-wr26-g3fp.

Is CVE-2008-3546 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free