# CVE-2020-15904: bsdiff4 out-of-bounds write via patch file

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2020-07-22T22:25:51.000Z
- Modified: 2026-06-17T02:57:22.917Z
- Also known as: GHSA-f8m3-jpxr-hm5x, PYSEC-2020-30
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- bsdiff4 (PyPI): before 1.2.0; before 49a4cee2feef7deaf9d89e5e793a8824930284d7
- pypi bsdiff4: before 1.2.0

## Every score

- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/ilanschnell/bsdiff4/commit/49a4cee2feef7deaf9d89e5e793a8824930284d7> (fix, patch, third-party-advisory, web)
- <https://github.com/ilanschnell/bsdiff4/blob/master/CHANGELOG.txt> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15904> (advisory)
- <https://github.com/ilanschnell/bsdiff4> (package)
- <https://github.com/ilanschnell/bsdiff4/blob/9a84c2ee01f5ba0742d18c9f3b3d5244ae7fb302/CHANGELOG.txt#L30-L31> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/bsdiff4/PYSEC-2020-30.yaml> (web)
- <https://github.com/advisories/GHSA-f8m3-jpxr-hm5x> (advisory)

## Sources

- CVE List: [CVE-2020-15904](https://www.cve.org/CVERecord?id=CVE-2020-15904), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-f8m3-jpxr-hm5x](https://github.com/advisories/GHSA-f8m3-jpxr-hm5x), CC-BY-4.0, modified 2024-09-06
- NVD: [CVE-2020-15904](https://nvd.nist.gov/vuln/detail/CVE-2020-15904), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-30](https://osv.dev/vulnerability/PYSEC-2020-30), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2020-15904 · Whole record: https://cve.day/CVE-2020-15904.json · Rebuilt by cve.day 2026-11-25T22:57:53.603Z
