Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mercurial
  4. ›
  5. CVE-2018-13346

CVE-2018-13346: Mercurial Improper Input Validation vulnerability

May 13, 2022 (updated September 25, 2024)

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.

References

  • access.redhat.com/errata/RHSA-2019:2276
  • github.com/advisories/GHSA-9xv4-r2hf-26gh
  • github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-88.yaml
  • lists.debian.org/debian-lts-announce/2020/07/msg00032.html
  • nvd.nist.gov/vuln/detail/CVE-2018-13346
  • www.mercurial-scm.org/repo/hg/rev/faa924469635
  • www.mercurial-scm.org/wiki/WhatsNew

Code Behaviors & Features

Detect and mitigate CVE-2018-13346 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.6.1

Fixed versions

  • 4.6.1

Solution

Upgrade to version 4.6.1 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

pypi/mercurial/CVE-2018-13346.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:52 +0000.