{"cve":"CVE-2018-13348","nvd":{"published":"2018-07-06T00:29:00.343","modified":"2026-06-17T01:39:15.180","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-20"],"references":["https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html","https://www.mercurial-scm.org/repo/hg/rev/90a274965de7","https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29","https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html","https://www.mercurial-scm.org/repo/hg/rev/90a274965de7"],"products":["mercurial:mercurial"],"source":"nvd","synced_at":"2026-10-19T20:51:47.459859389+00:00"},"epss":{"cve":"CVE-2018-13348","score":0.02104,"percentile":0.81738,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3v62-ww8w-758m","url":"https://osv.dev/vulnerability/GHSA-3v62-ww8w-758m","summary":"Mercurial Improper Input Validation vulnerability","modified":"2024-09-25T17:23:41.207908Z","packages":[{"ecosystem":"PyPI","name":"mercurial","purl":"pkg:pypi/mercurial","ranges":["<4.6.1"],"fixed":["4.6.1"]}]},{"id":"PYSEC-2018-90","url":"https://osv.dev/vulnerability/PYSEC-2018-90","summary":"","modified":"2026-06-10T17:01:23.820638096Z","packages":[{"ecosystem":"PyPI","name":"mercurial","purl":"pkg:pypi/mercurial","ranges":["<4.6.1"],"fixed":["4.6.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}