CVE-2017-17458

In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a…

published December 7, 2017

CVSS
—
EPSS
6%
Percentile
93.6
In the wild
Unconfirmed
What it is

⚠️ A malformed repository could be the unexpected villain here! In Mercurial versions prior to 4.4.1, a sneaky little script can run code without a second thought — think of it as an uninvited guest making themselves at home while you’re not looking! It's like a restaurant that unknowingly allows a rogue chef to slip an ingredient into the sauce — an unapproved recipe that could spoil the meal for everyone. In this case, if the chef (or repository) has bad intentions, you might end up with more than just a bad taste! In the worst-case scenario, an attacker could leverage this vulnerability to execute arbitrary code on your system. Imagine their malicious script running right under your nose, potentially leading to data theft or even a full system compromise. The damage could be surprisingly sneaky!

Put simply

It's like a restaurant that unknowingly allows a rogue chef to slip an ingredient into the sauce — an unapproved recipe that could spoil the meal for everyone. In this case, if the chef (or repository) has bad intentions, you might end up with more than just a bad taste! This vulnerability arises when a specially crafted Mercurial repository includes a .git/hooks/post-update script, which can be executed during certain operations, allowing the attacker to run arbitrary code. This is particularly concerning since such repositories can be created programmatically.

What to do

In the worst-case scenario, an attacker could leverage this vulnerability to execute arbitrary code on your system. Imagine their malicious script running right under your nose, potentially leading to data theft or even a full system compromise. The damage could be surprisingly sneaky! To protect yourself, upgrade to Mercurial version 4.4.1 or later immediately. Additionally, avoid utilizing untrusted or malformed repositories in your workflow — a little caution goes a long way! You've got this — take these steps, and you'll be protecting your system like a champ! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.06331 · 93.6th percentile
Published
2017-12-07T18:00Z
EPSS history
Timeline
  • 07 DEC 18:00Z
    In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a…
    cvelistv5