Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1319768 - (CVE-2016-3068) CVE-2016-3068 mercurial: command injection via git subrepository urls
CVE-2016-3068 mercurial: command injection via git subrepository urls
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20160329,repo...
: Security
: 1322266 (view as bug list)
Depends On: 1322268 1323599 1327167 1327168
Blocks: 1319772 1322269
  Show dependency treegraph
 
Reported: 2016-03-21 09:27 EDT by Adam Mariš
Modified: 2016-11-08 10:53 EST (History)
3 users (show)

See Also:
Fixed In Version: mercurial 3.7.3
Doc Type: Bug Fix
Doc Text:
It was discovered that Mercurial failed to properly check Git sub-repository URLs. A Mercurial repository that includes a Git sub-repository with a specially crafted URL could cause Mercurial to execute arbitrary code.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-05-02 09:02:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:0706 normal SHIPPED_LIVE Important: mercurial security update 2016-05-02 12:57:46 EDT

  None (edit)
Description Adam Mariš 2016-03-21 09:27:43 EDT
It was reported that in mercurial, there is similar vulnerability as CVE-2015-7545 in git. Git's git-remote-ext remote helper provides an ext:: URL scheme that allows running arbitrary shell commands. Mercurial allows specifying git repositories as subrepositories. Git ext:: URLs can be specified as Mercurial subrepositories allowing arbitrary shell commands to be run on `hg clone ...`.
Comment 1 Adam Mariš 2016-03-21 09:27:47 EDT
Acknowledgments:

Name: Blake Burkhart
Comment 3 Adam Mariš 2016-04-04 04:08:02 EDT
*** Bug 1322266 has been marked as a duplicate of this bug. ***
Comment 5 Adam Mariš 2016-04-04 04:13:12 EDT
Created mercurial tracking bugs for this issue:

Affects: fedora-all [bug 1323599]
Comment 6 Tomas Hoger 2016-04-14 07:27:31 EDT
Support for git subrepos was introduced upstream in mercurial version 1.8:

https://www.mercurial-scm.org/wiki/WhatsNew/Archive#Mercurial_1.8_.282011-03-01.29

Therefore, mercurial packages in Red Hat Enterprise Linux 6 based on upstream version 1.4 were not affected by this issue.
Comment 13 errata-xmlrpc 2016-05-02 08:58:09 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2016:0706 https://rhn.redhat.com/errata/RHSA-2016-0706.html

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