Mercurial vulnerabilities could allow code execution on the server or client

A corrective release of the distributed version control system Mercurial 7.2.6 has been published, fixing four vulnerabilities (no CVEs assigned) that could allow remote code execution on the server or client when specially crafted repositories or bundle files are processed. A client system could be compromised when cloning, pulling, unpacking, or applying patches from untrusted sources, or when running the “hg archive”, “hg cat”, or “hg diff” commands on revisions obtained from untrusted sources. A server could be attacked if the attacker is able to send push requests.

Resolved vulnerabilities:

  • HG-SA-2026-001 — Allows arbitrary code execution or writing files outside the working directory through commits containing a “.hg/” directory or symbolic links. The issue can arise when performing operations such as “hg archive”.
  • HG-SA-2026-002 — Bypasses integrity checks by poisoning the cache. The vulnerability can be triggered when processing a specially crafted bundle file with commands such as “hg clone” and “hg pull -u”.
  • HG-SA-2026-003 — A race condition when checking symbolic links in parallel worker processes. The vulnerability can be exploited by submitting a specially crafted changeset.
  • HG-SA-2026-004 — Allows settings to be injected through a malformed .hgsub file by using newline substitution in subrepository URLs. The attack can be carried out even with simple commands such as “hg log —patch”.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster