leptonica CVE Vulnerabilities & Metrics

Focus on leptonica vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About leptonica Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with leptonica. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total leptonica CVEs: 13
Earliest CVE date: 16 Feb 2018, 16:29 UTC
Latest CVE date: 09 Sep 2022, 22:15 UTC

Latest CVE reference: CVE-2022-38266

Rolling Stats

30-day Count (Rolling): 0
365-day Count (Rolling): 0

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): 0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): 0.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical leptonica CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 5.2

Max CVSS: 7.5

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 2
4.0-6.9 7
7.0-8.9 4
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS leptonica CVEs

These are the five CVEs with the highest CVSS scores for leptonica, sorted by severity first and recency.

All CVEs for leptonica

CVE-2022-38266 leptonica vulnerability CVSS: 0 09 Sep 2022, 22:15 UTC

An issue in the Leptonica linked library (v1.79.0) allows attackers to cause an arithmetic exception leading to a Denial of Service (DoS) via a crafted JPEG file.

CVE-2020-36281 leptonica vulnerability CVSS: 5.0 12 Mar 2021, 01:15 UTC

Leptonica before 1.80.0 allows a heap-based buffer over-read in pixFewColorsOctcubeQuantMixed in colorquant1.c.

CVE-2020-36280 leptonica vulnerability CVSS: 5.0 12 Mar 2021, 00:15 UTC

Leptonica before 1.80.0 allows a heap-based buffer over-read in pixReadFromTiffStream, related to tiffio.c.

CVE-2020-36279 leptonica vulnerability CVSS: 5.0 12 Mar 2021, 00:15 UTC

Leptonica before 1.80.0 allows a heap-based buffer over-read in rasteropGeneralLow, related to adaptmap_reg.c and adaptmap.c.

CVE-2020-36278 leptonica vulnerability CVSS: 5.0 12 Mar 2021, 00:15 UTC

Leptonica before 1.80.0 allows a heap-based buffer over-read in findNextBorderPixel in ccbord.c.

CVE-2020-36277 leptonica vulnerability CVSS: 5.0 11 Mar 2021, 21:15 UTC

Leptonica before 1.80.0 allows a denial of service (application crash) via an incorrect left shift in pixConvert2To8 in pixconv.c.

CVE-2018-3836 leptonica vulnerability CVSS: 7.2 24 Apr 2018, 19:29 UTC

An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.

CVE-2018-7442 leptonica vulnerability CVSS: 6.4 23 Feb 2018, 21:29 UTC

An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.

CVE-2018-7441 leptonica vulnerability CVSS: 4.4 23 Feb 2018, 21:29 UTC

Leptonica through 1.75.3 uses hardcoded /tmp pathnames, which might allow local users to overwrite arbitrary files or have unspecified other impact by creating files in advance or winning a race condition, as demonstrated by /tmp/junk_split_image.ps in prog/splitimage2pdf.c.

CVE-2018-7440 leptonica vulnerability CVSS: 7.5 23 Feb 2018, 21:29 UTC

An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.

CVE-2017-18196 leptonica vulnerability CVSS: 2.1 23 Feb 2018, 21:29 UTC

Leptonica 1.74.4 constructs unintended pathnames (containing duplicated path components) when operating on files in /tmp subdirectories, which might allow local users to bypass intended file restrictions by leveraging access to a directory located deeper within the /tmp directory tree, as demonstrated by /tmp/ANY/PATH/ANY/PATH/input.tif.

CVE-2018-7247 leptonica vulnerability CVSS: 7.5 19 Feb 2018, 18:29 UTC

An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.

CVE-2018-7186 leptonica vulnerability CVSS: 7.5 16 Feb 2018, 16:29 UTC

Leptonica before 1.75.3 does not limit the number of characters in a %s format argument to fscanf or sscanf, which allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a long string, as demonstrated by the gplotRead and ptaReadStream functions.