Buffer under-read in Mercurial - CVE-2018-13348

 

Buffer under-read in Mercurial - CVE-2018-13348

Published: August 7, 2018


Vulnerability identifier: #VU14213
CSH Severity: Low
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-13348
CWE-ID: CWE-124
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause DoS condition on the target system.

The vulnerability exists due to buffer under-read when the mpatch_decode function in mpatch.c mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not. A remote unauthenticated attacker can supply specially crafted input, trigger memory corruption and cause the service to crash.


Affected software

Mercurial
Opensuse

How to mitigate CVE-2018-13348

Update to version 4.6.1.

Mercurial - update to 4.6.1

External References

Related Security Bulletins