← Back to CVE Explorer

CVE-2026-53585

Full vulnerability record from the local CVENow database.

Description

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, git_delta_apply in src/libgit2/delta.c trusts the attacker-controlled res_sz value parsed by hdr_sz from a delta object header and passes that amount to git__malloc before validating delta instructions. Malicious pack data supplied through git_clone, git_fetch, git_remote_fetch, git_indexer_append, or a local attacker-supplied repository can use a very small multi-level OFS_DELTA chain to retain extremely large allocations and exhaust memory. This issue is fixed in versions 1.8.6 and 1.9.5.

Severity
MEDIUM
CVSS score
5.3 (v3.1)
Vulnerability status
Awaiting Analysis
Source identifier
Published
2026-08-20 19:16:54.837000
Last modified
2026-10-26 10:10:00.140000
View original CVE JSON
{
  "id": "CVE-2026-53585",
  "sourceIdentifier": "[email protected]",
  "published": "2026-08-20T19:16:54.837",
  "lastModified": "2026-10-26T10:10:00.140",
  "vulnStatus": "Awaiting Analysis",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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, git_delta_apply in src/libgit2/delta.c trusts the attacker-controlled res_sz value parsed by hdr_sz from a delta object header and passes that amount to git__malloc before validating delta instructions. Malicious pack data supplied through git_clone, git_fetch, git_remote_fetch, git_indexer_append, or a local attacker-supplied repository can use a very small multi-level OFS_DELTA chain to retain extremely large allocations and exhaust memory. This issue is fixed in versions 1.8.6 and 1.9.5."
    },
    {
      "lang": "es",
      "value": "libgit2 es una implementación portátil en C de los métodos centrales de Git, proporcionada como una biblioteca enlazable con una API sólida, que permite integrar la funcionalidad de Git en su aplicación. Antes de las versiones 1.8.6 y 1.9.5, git_delta_apply en src/libgit2/delta.c confía en el valor res_sz controlado por el atacante, analizado por hdr_sz desde una cabecera de objeto delta, y pasa esa cantidad a git__malloc antes de validar las instrucciones delta. Datos de paquete maliciosos suministrados a través de git_clone, git_fetch, git_remote_fetch, git_indexer_append, o un repositorio suministrado por un atacante local, pueden usar una cadena OFS_DELTA multinivel muy pequeña para retener asignaciones extremadamente grandes y agotar la memoria. Este problema está corregido en las versiones 1.8.6 y 1.9.5."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "libgit2",
          "product": "libgit2",
          "versions": [
            {
              "version": "< 1.8.6",
              "status": "affected"
            },
            {
              "version": ">= 1.9.0, < 1.9.5",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
          "baseScore": 5.3,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "availabilityImpact": "LOW"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 1.4
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-08-25T15:21:18.543141Z",
          "id": "CVE-2026-53585",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-770"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/libgit2/libgit2/commit/c1896f06df22cc0ca5658df3a8f6cd7ede4cd6ae",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/libgit2/libgit2/commit/dec22ac01ad9620c96b7b9ac3ef636ea46d43bed",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/libgit2/libgit2/releases/tag/v1.8.6",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/libgit2/libgit2/releases/tag/v1.9.5",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/libgit2/libgit2/security/advisories/GHSA-27m5-gxxh-x79j",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/libgit2/libgit2/security/advisories/GHSA-27m5-gxxh-x79j",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
    }
  ]
}