ALAS2-2026-4201


Amazon Linux 2 (EOS) Security Advisory: ALAS2-2026-4201
Advisory Released Date: 2026-12-04
Advisory Updated Date: 2026-12-07
Severity: Important

Issue Overview:

Fix HG-SA-2026-004: Configuration injection, leading to arbitrary and remote code execution, through malformed subrepository URLs in .hgsub and through paths given to hg clone and hg share.
Fix HG-SA-2026-003: Writing through a symlink during a parallel update, bypassing symlink auditing.
Fix HG-SA-2026-001: Arbitrary code execution and writes outside of the working copy through .hg paths and symlinks exported by hg archive, hg cat, hg export and others, and accepted on exchange.


Affected Packages:

mercurial


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update mercurial or yum update --advisory ALAS2-2026-4201 to update your system.

New Packages:
aarch64:
    mercurial-2.6.2-10.amzn2.0.2.aarch64
    emacs-mercurial-2.6.2-10.amzn2.0.2.aarch64
    emacs-mercurial-el-2.6.2-10.amzn2.0.2.aarch64
    mercurial-hgk-2.6.2-10.amzn2.0.2.aarch64
    mercurial-debuginfo-2.6.2-10.amzn2.0.2.aarch64

i686:
    mercurial-2.6.2-10.amzn2.0.2.i686
    emacs-mercurial-2.6.2-10.amzn2.0.2.i686
    emacs-mercurial-el-2.6.2-10.amzn2.0.2.i686
    mercurial-hgk-2.6.2-10.amzn2.0.2.i686
    mercurial-debuginfo-2.6.2-10.amzn2.0.2.i686

src:
    mercurial-2.6.2-10.amzn2.0.2.src

x86_64:
    mercurial-2.6.2-10.amzn2.0.2.x86_64
    emacs-mercurial-2.6.2-10.amzn2.0.2.x86_64
    emacs-mercurial-el-2.6.2-10.amzn2.0.2.x86_64
    mercurial-hgk-2.6.2-10.amzn2.0.2.x86_64
    mercurial-debuginfo-2.6.2-10.amzn2.0.2.x86_64