CVE catalog

CVE-2018-7186

leptonlib: CVE-2018-7186

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
3.40% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianleptonlibsid1.86.0-1fixed
Debianleptonlibforky1.86.0-1fixed
Debianleptonlibtrixie1.84.1-4fixed
Debianleptonlibbookworm1.82.0-3fixed
Ubuntuleptonlibpro1.72-3vulnerable
Ubuntuleptonlibpro1.72-3build1vulnerable
Ubuntuleptonlibpro1.73-1vulnerable
Ubuntuleptonlibpro1.73-1ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianleptonlibsourcesid1.75.3-2lowNot reported[890548]
Debianleptonlibsourceforky1.75.3-2lowNot reported[890548]
Debianleptonlibsourcetrixie1.75.3-2lowNot reported[890548]
Debianleptonlibsourcebookworm1.75.3-2lowNot reported[890548]
Ubuntuleptonlibdebpro1.73-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2018-7186Not reported

[Debian bug #890548]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [leptonlib]

    Details (2)
    • 1.82.0-3+b3 · amd64 · bookworm

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · bookworm; dsa · leptonlib · debian · 12

    • 1.82.0-3+b3 · arm64 · bookworm

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · bookworm; dsa · leptonlib · debian · 12

  • [liblept5]Fixed

    Source package: [leptonlib]

    Details (2)
    • 1.82.0-3+b3 · amd64 · bookworm

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · bookworm; dsa · leptonlib · debian · 12

    • 1.82.0-3+b3 · arm64 · bookworm

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · bookworm; dsa · leptonlib · debian · 12

  • Source package: [leptonlib]

    Details (2)
    • 1.82.0-3+b3 · amd64 · bookworm

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · bookworm; dsa · leptonlib · debian · 12

    • 1.82.0-3+b3 · arm64 · bookworm

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · bookworm; dsa · leptonlib · debian · 12

[Debian 13 (Trixie)]

  • Source package: [leptonlib]

    Details (2)
    • 1.84.1-4 · amd64 · trixie

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · 13

    • 1.84.1-4 · arm64 · trixie

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · 13

  • Source package: [leptonlib]

    Details (2)
    • 1.84.1-4 · amd64 · trixie

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · 13

    • 1.84.1-4 · arm64 · trixie

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · 13

  • Source package: [leptonlib]

    Details (2)
    • 1.84.1-4 · amd64 · trixie

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · 13

    • 1.84.1-4 · arm64 · trixie

      Fixed · Fixed: 1.75.3-2

      dsa · leptonlib · debian · 13

Observed:

References