Improper Input Validation Affecting mercurial-hgk package, versions <0:2.6.2-10.el7


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

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 Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-MERCURIALHGK-8006528
  • published17 Sept 2024
  • disclosed6 Jun 2018

Introduced: 6 Jun 2018

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

How to fix?

Upgrade RHEL:7 mercurial-hgk to version 0:2.6.2-10.el7 or higher.
This issue was patched in RHSA-2019:2276.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mercurial-hgk package and not the mercurial-hgk package as distributed by RHEL. See How to fix? for RHEL:7 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.