---
title: Mercurial 7.2.6 critical security release: chained flaws allow code execution on clients and servers from crafted repos or bundles | ctxsec
url: https://ctxsec.com/items/mercurial-7-2-6-critical-security-release-hg-sa-2026-001-004-client-server-rce
description: "Mercurial 7.2.6 (Dec 3, 2026) fixes HG-SA-2026-001 to -004, which can be combined for arbitrary code execution on clients and remote code execution on servers. You are exposed if you clone, pull, unbundle or apply patches from untrusted sources, run hg archive/cat/diff on such revisions, or host servers untrusted users can push to."
status: "official (Mercurial project)"
published: 2026-12-03
---

> Mercurial 7.2.6 (Dec 3, 2026) fixes HG-SA-2026-001 to -004, which can be combined for arbitrary code execution on clients and remote code execution on servers. You are exposed if you clone, pull, unbundle or apply patches from untrusted sources, run hg archive/cat/diff on such revisions, or host servers untrusted users can push to.

[← Cybersecurity News](/news) · [markdown](/items/mercurial-7-2-6-critical-security-release-hg-sa-2026-001-004-client-server-rce.md)

official (Mercurial project)

2026-12-03 2:48 PM ET

### Mercurial 7.2.6 critical security release: chained flaws allow code execution on clients and servers from crafted repos or bundles

- HG-SA-2026-001 (all versions): .hg/ paths or symlink writes lead to config injection or writes outside the working copy.
- HG-SA-2026-002 (7.1-7.2.5): integrity check bypass via cache poisoning.
- HG-SA-2026-003 (2.6-7.2.5): symlink race during parallel update.
- HG-SA-2026-004 (all versions): config injection through a malformed .hgsub, triggered even by hg log --patch.
- No new releases for older series; backported patches go to distributions on request.

Sources: [oss-security (Dec 3, 2026)](https://seclists.org/oss-sec/2026/q4/999) · [Mercurial release notes](https://mercurial-scm.org/news/2026/0009-release-7.2.6)
