Amazon Linux 2 : mercurial (ALAS-2026-4201)

high Nessus Plugin ID 394058

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of mercurial installed on the remote host is prior to 2.6.2-10. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2026-4201 advisory.

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.

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update mercurial' or or 'yum update --advisory ALAS2-2026-4201' to update your system.

See Also

https://alas.aws.amazon.com//AL2/ALAS2-2026-4201.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: High

ID: 394058

File Name: al2_ALAS-2026-4201.nasl

Version: 1.1

Type: Local

Agent: unix

Published: 12/4/2026

Updated: 12/4/2026

Supported Sensors: Nessus Agent, Continuous Assessment, Nessus

Vulnerability Information

CPE: cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:emacs-mercurial-el, p-cpe:/a:amazon:linux:emacs-mercurial, p-cpe:/a:amazon:linux:mercurial-debuginfo, p-cpe:/a:amazon:linux:mercurial-hgk, p-cpe:/a:amazon:linux:mercurial

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 12/4/2026

Vulnerability Publication Date: 12/4/2026