CVE-2020-15904

Source
https://cve.org/CVERecord?id=CVE-2020-15904
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-15904.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-15904
Aliases
Published
2020-07-22T23:15:11Z
Modified
2026-08-18T14:10:35Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/ilanschnell/bsdiff4

Affected ranges

Type
GIT
Repo
https://github.com/ilanschnell/bsdiff4
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:pypi:bsdiff4:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "1.2.0"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.1.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-15904.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "340220858517578814907242374715912337294",
                "249112512010043413667638327401764711275",
                "189019597522981605886487086948941746768",
                "168663676184366194950515564497195890779",
                "149900700182757724265752921310883031126",
                "9488832237023589447927045093353610056",
                "162976897186473734919379098591521326167",
                "318887190277594465809371203738702984476",
                "219265411217723584566294589037845646733"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2020-15904-3e8f5ee8",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ilanschnell/bsdiff4/commit/49a4cee2feef7deaf9d89e5e793a8824930284d7",
        "target":  {
            "file":  "bsdiff4/core.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "322173807638438432450463636713655710926",
            "length":  1613
        },
        "id":  "CVE-2020-15904-71af10c9",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/ilanschnell/bsdiff4/commit/49a4cee2feef7deaf9d89e5e793a8824930284d7",
        "target":  {
            "file":  "bsdiff4/core.c",
            "function":  "patch"
        }
    }
]
vanir_signatures_modified
"2026-08-18T14:10:35Z"