Read the docs

Heap buffer overflow in Leptonica image processing library

Priority LOW 30CWE-122Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-122 and the CVSS impact.

Summary

Leptonica 1.79.0 through 1.87.0 contains a heap-based buffer overflow (CWE-122) in l_byteaInitFromStream(). Oversized input causes a 201-byte heap buffer to be overwritten past its end, which crashes the application. A local attacker with no privileges can trigger it when a user opens a file larger than 1,000,000,000 bytes.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00233 8th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
LeptonicaLeptonica1.79.0 – 1.87.0—No fix listedCNA
  • Leptonica VendorLeptonica Affected 1.79.0 – 1.87.0 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for Leptonica.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-137063
  2. 2026-11-25 Alias added: GHSA-4g5v-hgh8-49r5
  3. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2018-05365 An issue was discovered in Leptonica through 1.75.3. CVSS 3.0CRITICAL 9.8
  • TI-2018-05207 Leptonica before 1.75.3 does not limit the number of characters in a %s format argument… CVSS 3.0CRITICAL 9.8
  • TI-2018-05256 An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. CVSS 3.0CRITICAL 9.8
  • TI-2018-05367 An issue was discovered in Leptonica through 1.75.3. CVSS 3.0CRITICAL 9.1
  • TI-2020-18579 Leptonica before 1.80.0 allows a heap-based buffer over-read in pixFewColorsOctcubeQuantMixed in colorquant1.c. CVSS 3.1HIGH 7.5
  • TI-2020-18577 Leptonica before 1.80.0 allows a heap-based buffer over-read in rasteropGeneralLow… CVSS 3.1HIGH 7.5
See all 13 →

Sources