{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.79.0"
                  },
                  {
                    "last_affected": "1.87.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "002843bdf81ef4018fdf0f5c53262bbeab2b0fdc"
            },
            {
              "fixed": "c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd"
            }
          ],
          "repo": "https://github.com/danbloomberg/leptonica",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137063.json"
  },
  "details": "Leptonica 1.79.0 through 1.87.0 contains a heap-based buffer overflow vulnerability in l_byteaInitFromStream() that allows attackers to write past a heap buffer by supplying oversized input. Attackers can provide a file larger than 1,000,000,000 bytes, causing l_byteaCreate() to allocate a 201-byte buffer before memcpy copies the full stream size, crashing the application.",
  "id": "CVE-2026-137063",
  "modified": "2026-11-26T20:45:40.645882801Z",
  "published": "2026-11-25T19:33:13.752Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137063.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137063"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/leptonica-1.79.0-through-1.87.0-heap-buffer-overflow-via-l-byteainitfromstream"
    },
    {
      "type": "FIX",
      "url": "https://github.com/DanBloomberg/leptonica/commit/c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/DanBloomberg/leptonica"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/DanBloomberg/leptonica/blob/1.87.0/src/bytearray.c#L177-L197"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()"
}