PyPI: bsdiff4

CVE-2020-15904

Safety vulnerability ID: SFTY-20200722-06972

Safety legacy ID: pyup.io-42280

Bsdiff4 1.2.0 includes a fix for CVE-2020-15904: 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.

Created at: Nov 6, 2025Updated at: Nov 6, 2025

Overview

bsdiff4 out-of-bounds write via patch file

Advisory

Bsdiff4 1.2.0 includes a fix for CVE-2020-15904: 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.

Affected Package

Affecting bsdiff4 package, versions
<1.2.0

Also affects

---

How to Fix

Upgrade
bsdiff4
to
1.2.0
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more