Bug 1332945 (CVE-2016-3105) - CVE-2016-3105 mercurial: arbitrary code execution when converting git repos
Summary: CVE-2016-3105 mercurial: arbitrary code execution when converting git repos
Alias: CVE-2016-3105
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1332946
Blocks: 1332947
TreeView+ depends on / blocked
Reported: 2016-05-04 12:08 UTC by Andrej Nemec
Modified: 2021-02-17 03:55 UTC (History)
3 users (show)

Fixed In Version: mercurial 3.8
Doc Type: Bug Fix
Doc Text:
It was discovered that the Mercurial convert extension invoked Git in a way that could cause Git to interpret local repository name as remote repository URL. A Git repository with a specially crafted name could cause Mercurial to execute arbitrary code when the Git repository was converted to a Mercurial repository.
Clone Of:
Last Closed: 2019-06-08 02:51:11 UTC

Attachments (Terms of Use)

Description Andrej Nemec 2016-05-04 12:08:37 UTC
A possible arbitrary code execution when converting Git repos was found in Mercirual.  Mercurial prior to 3.8 allowed arbitrary code execution when using the convert extension on Git repos with hostile names. This could affect automated code conversion services that allow arbitrary repository names. This is a further side-effect of Git CVE-2015-7545.

External Reference:


Upstream fix:


Comment 1 Andrej Nemec 2016-05-04 12:09:01 UTC
Created mercurial tracking bugs for this issue:

Affects: fedora-all [bug 1332946]

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