SecurityContext

CVE-2018-7186: Leptonica - Buffer Overflow

  • Cve: CVE-2018-7186
  • Name: Leptonica - Buffer Overflow
  • Description: 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.
  • Impact: Remote attackers can cause denial of service or potentially execute arbitrary code through buffer overflow.
  • Remediation: Update to version 1.75.3 or later.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.03401
  • Epss percentile: 0.89159
  • Assignee: [email protected]
  • Published at: 2018-02-16T16:29:00Z
  • Age in days: 3203
  • Modified at: 2026-06-17T02:02:45Z
  • Patch available: yes
  • References total: 5
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-7186
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-787Out-of-bounds Write

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99aPatch, Third Party Advisory
https://bugs.debian.org/890548Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/03/msg00005.htmlMailing List, Third Party Advisory
https://lists.debian.org/debian-lts/2018/02/msg00054.htmlMailing List, Third Party Advisory
https://security.gentoo.org/glsa/202312-01

Products

ProductAffectedPlatform boundSourcesUrl
leptonica:leptonica< 1.75.3nonvd/v1/products/leptonica/leptonica
debian:debian_linux= 7.0nonvd/v1/products/debian/debian_linux

Projects

RepositoryLink kindsIndexedUrl
DanBloomberg/leptonicacommit, fixyes/v1/repositories/DanBloomberg/leptonica

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 4706702
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports