{"id":"CVE-2020-15904","aliases":["CVE-2020-15904","GHSA-f8m3-jpxr-hm5x","PYSEC-2020-30"],"related":[],"kind":"vulnerability","state":"published","title":"bsdiff4 out-of-bounds write via patch file","summary":"A buffer overflow in the patching routine of bsdiff4 before 1.2.0 allows an attacker to write to heap memory (beyond allocated bounds) via a crafted patch file.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A buffer overflow in the patching routine of bsdiff4 before 1.2.0 allows an attacker to write to heap memory (beyond allocated bounds) via a crafted patch file.","source":"cvelist"},{"lang":"es","text":"Un desbordamiento del búfer en la rutina de parches de bsdiff4 versiones anteriores a 1.2.0, permite a un atacante escribir en la región heap de la memoria (más allá de los límites asignados) por medio de un archivo de parche diseñado","source":"nvd"}],"published":"2020-07-22T22:25:51.000Z","modified":"2026-06-17T02:57:22.917Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.0"}],"ecosystem":"PyPI","package":"bsdiff4","purl":"pkg:pypi/bsdiff4","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.0"}],"vendor":"pypi","product":"bsdiff4","cpe":"cpe:2.3:a:pypi:bsdiff4:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"49a4cee2feef7deaf9d89e5e793a8824930284d7"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.0"}],"ecosystem":"PyPI","package":"bsdiff4","purl":"pkg:pypi/bsdiff4","repo":"https://github.com/ilanschnell/bsdiff4","source":"pysec"}],"references":[{"url":"https://github.com/ilanschnell/bsdiff4/commit/49a4cee2feef7deaf9d89e5e793a8824930284d7","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ilanschnell/bsdiff4/blob/master/CHANGELOG.txt","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15904","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ilanschnell/bsdiff4","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ilanschnell/bsdiff4/blob/9a84c2ee01f5ba0742d18c9f3b3d5244ae7fb302/CHANGELOG.txt#L30-L31","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/bsdiff4/PYSEC-2020-30.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-f8m3-jpxr-hm5x","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15904","url":"https://www.cve.org/CVERecord?id=CVE-2020-15904","licence":"CVE Terms of Use","modified":"2024-08-04T13:30:23.224Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f8m3-jpxr-hm5x","url":"https://github.com/advisories/GHSA-f8m3-jpxr-hm5x","licence":"CC-BY-4.0","modified":"2024-09-06T16:00:50.578Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15904","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15904","licence":"Public domain","modified":"2026-06-17T02:57:22.917Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-30","url":"https://osv.dev/vulnerability/PYSEC-2020-30","licence":"CC-BY-4.0","modified":"2026-06-10T17:00:39.031Z"}],"updatedAt":"2026-11-25T22:57:53.603Z","epss":{"score":0.0105,"percentile":0.65194,"date":"2026-12-01T12:00:22.000Z"}}