Skip to content
OpenAdvisories
High · 7.5 CVE-2018-13348 EUVD-2018-0097GHSA-3v62-ww8w-758mPYSEC-2018-90

Mercurial Improper Input Validation vulnerability

Published Jul 6, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

The mpatch_decode function in mpatch.c in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not, aka OVE-20180430-0001.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mercurial 4.6.1-1 —
Debian 13 mercurial 4.6.1-1 —
Debian 12 mercurial 4.6.1-1 —
Debian 9 mercurial 4.0-1+deb9u2 DLA-2293-1
Debian 8 mercurial 3.1.2-2+deb8u5 DLA-1414-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS mercurial 4.5.3-1ubuntu2.1 —
Ubuntu 16.04 LTS mercurial 3.7.3-1ubuntu1.1 —
Ubuntu 14.04 LTS mercurial 2.8.2-1ubuntu1.4 —
ReleasePackageFixed inAdvisory
SLES 15 mercurial 4.5.2-3.3.1 SUSE-SU-2018:1998-1
SLES 12 SP3 mercurial 2.8.2-15.13.1 SUSE-SU-2018:1990-1
SLES 11 SP4 mercurial 2.3.2-0.18.9.1 SUSE-SU-2018:1996-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed mercurial 5.9.1-2.1 openSUSE-SU-2024:10586-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mercurial < 4.6.1 4.6.1 GHSA-3v62-ww8w-758m

Advisories 6

References