Skip to content

Mercurial Improper Input Validation vulnerability

High severity GitHub Reviewed Published May 13, 2022 to the GitHub Advisory Database • Updated May 1, 2024

Package

pip mercurial (pip)

Affected versions

< 4.6.1

Patched versions

4.6.1

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.

References

Published by the National Vulnerability Database Jul 6, 2018
Published to the GitHub Advisory Database May 13, 2022
Reviewed May 1, 2024
Last updated May 1, 2024

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Weaknesses

CVE ID

CVE-2018-13348

GHSA ID

GHSA-3v62-ww8w-758m

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.