Bug 1204889 (CVE-2014-9706) - CVE-2014-9706 python-dulwich: arbitrary files allowed to be commited, leading to code execution
Summary: CVE-2014-9706 python-dulwich: arbitrary files allowed to be commited, leading...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2014-9706
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1204890 1204891
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-23 17:08 UTC by Vasyl Kaigorodov
Modified: 2019-09-29 13:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-22 15:26:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Vasyl Kaigorodov 2015-03-23 17:08:46 UTC
dulwich happily clones a repository which contains commit with invalid
paths, say .git/hooks/pre-commit, and thus allowing execution of code
on subsequent commits.

----cut---------cut---------cut---------cut---------cut---------cut-----
dummy () sid:~$ python PoC.py 
dummy () sid:~$ dulwich clone PoC.git foo
Counting objects: 5, done.
Compressing objects: 100% (2/2), done.
Total 5 (delta 0), reused 5 (delta 0)
Checking out HEADdummy () sid:~$ cd foo/
dummy () sid:~/foo$ git commit -m "test" --allow-empty
You just got cracked! (not really but you could have been!)
[master 9588153] test
dummy () sid:~/foo$ ls -l /tmp/cracked 
-rw-r--r-- 1 dummy dummy 0 Mar 21 10:24 /tmp/cracked
dummy () sid:~/foo$
----cut---------cut---------cut---------cut---------cut---------cut-----

Upstream (Jelmer Vernooij) has fixed this with commit

https://git.samba.org/?p=jelmer/dulwich.git;a=commitdiff;h=091638be3c89f46f42c3b1d57dc1504af5729176

Comment 1 Vasyl Kaigorodov 2015-03-23 17:09:48 UTC
Created python-dulwich tracking bugs for this issue:

Affects: fedora-all [bug 1204890]
Affects: epel-all [bug 1204891]

Comment 2 Fedora Update System 2015-04-09 16:57:59 UTC
python-dulwich-0.10.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2015-04-09 16:59:16 UTC
python-dulwich-0.10.0-1.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2015-04-10 07:28:11 UTC
python-dulwich-0.10.0-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-04-10 07:31:41 UTC
python-dulwich-0.10.0-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2015-04-21 18:52:53 UTC
python-dulwich-0.10.0-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.