Vulnerabilities > CVE-2008-3546 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in GIT
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
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.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 2 | |
Application | 6 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Nessus
NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-723-1.NASL description It was discovered that Git did not properly handle long file paths. If a user were tricked into performing commands on a specially crafted Git repository, an attacker could possibly execute arbitrary code with the privileges of the user invoking the program. (CVE-2008-3546) It was discovered that the Git web interface (gitweb) did not correctly handle shell metacharacters when processing certain commands. A remote attacker could send specially crafted commands to the Git server and execute arbitrary code with the privileges of the Git web server. This issue only applied to Ubuntu 7.10 and 8.04 LTS. (CVE-2008-5516, CVE-2008-5517) It was discovered that the Git web interface (gitweb) did not properly restrict the diff.external configuration parameter. A local attacker could exploit this issue and execute arbitrary code with the privileges of the Git web server. This issue only applied to Ubuntu 8.04 LTS and 8.10. (CVE-2008-5916). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 36720 published 2009-04-23 reporter Ubuntu Security Notice (C) 2009-2019 Canonical, Inc. / NASL script (C) 2009-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/36720 title Ubuntu 6.06 LTS / 7.10 / 8.04 LTS / 8.10 : git-core vulnerabilities (USN-723-1) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200809-16.NASL description The remote host is affected by the vulnerability described in GLSA-200809-16 (Git: User-assisted execution of arbitrary code) Multiple boundary errors in the functions diff_addremove() and diff_change() when processing overly long repository path names were reported. Impact : A remote attacker could entice a user to run commands like last seen 2020-06-01 modified 2020-06-02 plugin id 34297 published 2008-09-26 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34297 title GLSA-200809-16 : Git: User-assisted execution of arbitrary code NASL family Fedora Local Security Checks NASL id FEDORA_2008-9080.NASL description ---------------------------------------------------------------------- ---------- ChangeLog : - Wed Oct 22 2008 Josh Boyer <jwboyer at gmail.com> 1.5.6.5-1 - git-1.5.6.5 (bug 458156) - Mon May 26 2008 James Bowes <jbowes at redhat.com> 1.5.5.2-1 - git-1.5.5.2 - Fri May 23 2008 Dennis Gilmore <dennis at ausil.us> 1.5.5.1-1.1 - minor rebuild for sparc Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 34483 published 2008-10-24 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34483 title Fedora 9 : git-1.5.6.5-1.fc9 (2008-9080) NASL family SuSE Local Security Checks NASL id SUSE_GIT-5585.NASL description This patch fixes several buffer overflows in some git tools, when repositories contain very long pathnames. (CVE-2008-3546) last seen 2020-06-01 modified 2020-06-02 plugin id 34153 published 2008-09-10 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34153 title openSUSE 10 Security Update : git (git-5585) NASL family SuSE Local Security Checks NASL id SUSE_11_0_GIT-080907.NASL description This patch fixes several buffer overflows in some git tools, when repositories contain very long pathnames. (CVE-2008-3546) last seen 2020-06-01 modified 2020-06-02 plugin id 39969 published 2009-07-21 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/39969 title openSUSE Security Update : git (git-183) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-1637.NASL description Multiple vulnerabilities have been identified in git-core, the core of the git distributed revision control system. Improper path length limitations in git last seen 2020-06-01 modified 2020-06-02 plugin id 34212 published 2008-09-16 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/34212 title Debian DSA-1637-1 : git-core - buffer overflow NASL family Slackware Local Security Checks NASL id SLACKWARE_SSA_2009-051-02.NASL description New git packages are available for Slackware 12.0, 12.1, 12.2, and -current to fix security issues. last seen 2020-06-01 modified 2020-06-02 plugin id 35728 published 2009-02-23 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/35728 title Slackware 12.0 / 12.1 / 12.2 / current : git (SSA:2009-051-02)
References
- http://kerneltrap.org/mailarchive/git/2008/7/16/2529284
- http://secunia.com/advisories/31347
- http://secunia.com/advisories/31780
- http://secunia.com/advisories/32029
- http://secunia.com/advisories/32384
- http://secunia.com/advisories/33964
- http://security.gentoo.org/glsa/glsa-200809-16.xml
- http://wiki.rpath.com/Advisories:rPSA-2008-0253
- http://www.debian.org/security/2008/dsa-1637
- http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.5.6.4.txt
- http://www.securityfocus.com/archive/1/495391/100/0/threaded
- http://www.securityfocus.com/bid/30549
- http://www.securitytracker.com/id?1020627
- http://www.ubuntu.com/usn/USN-723-1
- http://www.vupen.com/english/advisories/2008/2306
- https://exchange.xforce.ibmcloud.com/vulnerabilities/44217
- https://issues.rpath.com/browse/RPL-2707
- https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00729.html