CVE-2026-53585

Source
https://cve.org/CVERecord?id=CVE-2026-53585
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53585.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-53585
Aliases
  • GHSA-27m5-gxxh-x79j
Downstream
Related
Published
2026-08-20T18:37:44.115Z
Modified
2026-08-22T09:15:52.184938Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
libgit2: Unbounded Memory Allocation via Delta Object Result-Size Header
Details

libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, gitdeltaapply in src/libgit2/delta.c trusts the attacker-controlled ressz value parsed by hdrsz from a delta object header and passes that amount to git_malloc before validating delta instructions. Malicious pack data supplied through gitclone, gitfetch, gitremotefetch, gitindexerappend, or a local attacker-supplied repository can use a very small multi-level OFSDELTA chain to retain extremely large allocations and exhaust memory. This issue is fixed in versions 1.8.6 and 1.9.5.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53585.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-770"
    ]
}
References

Affected packages

Git / github.com/libgit2/libgit2

Affected ranges

Type
GIT
Repo
https://github.com/libgit2/libgit2
Events
Database specific
Show details
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.8.6"
        },
        {
            "introduced": "1.9.0"
        },
        {
            "fixed": "1.9.5"
        }
    ]
}

Affected versions

v0.*
v0.1.0
v0.10.0
v0.11.0
v0.12.0
v0.13.0
v0.14.0
v0.15.0
v0.16.0
v0.17.0
v0.18.0
v0.2.0
v0.21.0
v0.22.0
v0.22.0-rc1
v0.22.0-rc2
v0.23.0
v0.23.0-rc1
v0.23.0-rc2
v0.24.0
v0.24.0-rc1
v0.26.0
v0.26.0-rc1
v0.26.0-rc2
v0.27.0
v0.27.0-rc1
v0.27.0-rc2
v0.27.0-rc3
v0.28.0
v0.28.0-rc1
v0.3.0
v0.8.0
v0.99.0
v1.*
v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.4.0
v1.5.0
v1.6.1
v1.6.2
v1.6.3
v1.7.0
v1.8.0
v1.8.1
v1.8.3
v1.8.4
v1.8.5
v1.9.0
v1.9.1
v1.9.2
v1.9.3
v1.9.4

Database specific

vanir_signatures_modified
"2026-08-22T09:15:52Z"
vanir_signatures
[
    {
        "deprecated": false,
        "id": "CVE-2026-53585-0ec0ba53",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/indexer.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "98314887506863016040934533821855767443",
                "129485872745537633186875885613126360957",
                "140374114568019037884682824946558833071",
                "60441248420350735998922454280300946665"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/c1896f06df22cc0ca5658df3a8f6cd7ede4cd6ae"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-1e441d84",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/settings.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "276797562670809850406578177733803990782",
                "309688685723693765354735927012648645635",
                "190694080289304935388274368860767275848",
                "306071047223806163265071711301759893572",
                "287839466121220864194045895411125024334",
                "250270162916552703845764982849529180180",
                "228647583579931917622678456425530442359"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-1f46e5b7",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/delta.c",
            "function": "git_delta_apply"
        },
        "signature_type": "Function",
        "digest": {
            "length": 1690.0,
            "function_hash": "187058112028525669558542122900187103674"
        },
        "source": "https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-28d94888",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/settings.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "276797562670809850406578177733803990782",
                "309688685723693765354735927012648645635",
                "190694080289304935388274368860767275848",
                "306071047223806163265071711301759893572",
                "287839466121220864194045895411125024334",
                "250270162916552703845764982849529180180",
                "228647583579931917622678456425530442359"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/c1896f06df22cc0ca5658df3a8f6cd7ede4cd6ae"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-31e135c0",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/delta.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "11847292412191345390472033527037395008",
                "291763246147385271242696376797855787068",
                "44239344862099282244430338476245018534",
                "39458340543595487695081337935126557801"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-32131f6e",
        "signature_version": "v1",
        "target": {
            "file": "include/git2/common.h"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "322419775602955870513131206755833816401",
                "30815615013481723653394767288392399077",
                "254205498629186845123051467901572198399",
                "254516340141257634936251672018564117832",
                "6228900983806554862375446726712371710"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-5e65d911",
        "signature_version": "v1",
        "target": {
            "file": "include/git2/common.h"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "322419775602955870513131206755833816401",
                "30815615013481723653394767288392399077",
                "254205498629186845123051467901572198399",
                "151749277107460116896741943039685091793",
                "135812393966443071673630870334565393659"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/dec22ac01ad9620c96b7b9ac3ef636ea46d43bed"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-8279c07c",
        "signature_version": "v1",
        "target": {
            "file": "include/git2/common.h"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "329065248623906116677085497315616581932",
                "324776365542815193549337123300866832332",
                "92389566152423929980613487046087646483",
                "292381138642903277454925976488446856623",
                "6228900983806554862375446726712371710"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/c1896f06df22cc0ca5658df3a8f6cd7ede4cd6ae"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-a2215356",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/settings.c",
            "function": "git_libgit2_opts"
        },
        "signature_type": "Function",
        "digest": {
            "length": 7948.0,
            "function_hash": "179045522176535590565896735147266790498"
        },
        "source": "https://github.com/libgit2/libgit2/commit/c1896f06df22cc0ca5658df3a8f6cd7ede4cd6ae"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-b4a9db1d",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/settings.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "276797562670809850406578177733803990782",
                "309688685723693765354735927012648645635",
                "190694080289304935388274368860767275848",
                "306071047223806163265071711301759893572",
                "287839466121220864194045895411125024334",
                "250270162916552703845764982849529180180",
                "228647583579931917622678456425530442359"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/dec22ac01ad9620c96b7b9ac3ef636ea46d43bed"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-be720003",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/settings.c",
            "function": "git_libgit2_opts"
        },
        "signature_type": "Function",
        "digest": {
            "length": 8373.0,
            "function_hash": "155683997394843241788045906684252057898"
        },
        "source": "https://github.com/libgit2/libgit2/commit/dec22ac01ad9620c96b7b9ac3ef636ea46d43bed"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-c8f19975",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/delta.c",
            "function": "git_delta_apply"
        },
        "signature_type": "Function",
        "digest": {
            "length": 1690.0,
            "function_hash": "187058112028525669558542122900187103674"
        },
        "source": "https://github.com/libgit2/libgit2/commit/dec22ac01ad9620c96b7b9ac3ef636ea46d43bed"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-d221900c",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/indexer.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "82880233150859665763812403606104011472",
                "16523816586629741018921487601133916821",
                "77729036432600100567280227681073885575",
                "292809617235869703843482351740907620540"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/dec22ac01ad9620c96b7b9ac3ef636ea46d43bed"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-d8b61f76",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/delta.c",
            "function": "git_delta_apply"
        },
        "signature_type": "Function",
        "digest": {
            "length": 1690.0,
            "function_hash": "187058112028525669558542122900187103674"
        },
        "source": "https://github.com/libgit2/libgit2/commit/c1896f06df22cc0ca5658df3a8f6cd7ede4cd6ae"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-e3c94ff4",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/delta.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "11847292412191345390472033527037395008",
                "291763246147385271242696376797855787068",
                "44239344862099282244430338476245018534",
                "39458340543595487695081337935126557801"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/c1896f06df22cc0ca5658df3a8f6cd7ede4cd6ae"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-e446ebc4",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/settings.c",
            "function": "git_libgit2_opts"
        },
        "signature_type": "Function",
        "digest": {
            "length": 8193.0,
            "function_hash": "314584519456285528170966202138560732416"
        },
        "source": "https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-e492769d",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/delta.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "11847292412191345390472033527037395008",
                "291763246147385271242696376797855787068",
                "44239344862099282244430338476245018534",
                "39458340543595487695081337935126557801"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/dec22ac01ad9620c96b7b9ac3ef636ea46d43bed"
    },
    {
        "deprecated": false,
        "id": "CVE-2026-53585-e4d348b6",
        "signature_version": "v1",
        "target": {
            "file": "src/libgit2/indexer.c"
        },
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "82880233150859665763812403606104011472",
                "16523816586629741018921487601133916821",
                "77729036432600100567280227681073885575",
                "292809617235869703843482351740907620540"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53585.json"