Improper Input Validation Affecting mercurial package, versions <4.6.1-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.17% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN12-MERCURIAL-1553831
  • published11 Jul 2018
  • disclosed6 Jul 2018

Introduced: 6 Jul 2018

CVE-2018-13346  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade Debian:12 mercurial to version 4.6.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mercurial package and not the mercurial package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

The mpatch_apply function in mpatch.c in Mercurial before 4.6.1 incorrectly proceeds in cases where the fragment start is past the end of the original data, aka OVE-20180430-0004.