ADVISORIES

GitHub Advisory Database

GHSA-9xv4-r2hf-26gh

Mercurial Improper Input Validation vulnerability

Details

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.

Affected packages

EcosystemPackageAffected versions
PyPImercurial
All versions before 4.6.1 (fixed in 4.6.1)

References