Patch Ticker
EnglishEN
Notice Score pending

Mercurial flaws combine to allow code execution on clients and remote code execution on servers

Mercurial, a code storage tool, can let bad repositories hack your PC or server.

First seen

Mitigation

Update to Mercurial 7.2.6, or install your distribution's patched package. Older series get no new upstream release, so ask your distribution for backported patches. If you enabled web.archivesubrepos on a server, keep it off even after upgrading to 7.2.6.

Summary

Several Mercurial flaws can be combined to run arbitrary code on clients and remote code on servers. Users who clone or apply data from sources they do not fully trust, and servers that untrusted people can push to, are affected.

Affected when

  • Cloning, pulling, unbundling or applying patches from an untrusted source
  • Running hg archive, hg cat or hg diff on revisions from an untrusted source
  • A server that untrusted people can push to

Incidents by product: Mercurial

All Incidents of 2026-12-04

Read the write-up · mercurial-scm.org (opens in a new tab)