CVE-2018-7186
published 2018-02-16CVE-2018-7186: 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…
PriorityP345critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
3.40%
87.6th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | leptonlib | < leptonlib 1.75.3-2 (bookworm) | leptonlib 1.75.3-2 (bookworm) |
| leptonica | leptonica | < 1.75.3 | 1.75.3 |
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8LOW
vendor_ubuntu3.3LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Leptonica vulnerabilities
vendor_ubuntu·2021-03-15·CVSS 3.3
CVE-2018-7186 [LOW] Leptonica vulnerabilities
Title: Leptonica vulnerabilities
Summary: Several security issues were fixed in Leptonica.
It was discovered that Leptonica incorrectly handled path names. An
attacker could possibly use this issue to obtain sensitive information.
This issue only affected Ubuntu 16.04 ESM. (CVE-2017-18196)
It was discovered that Leptonica incorrectly handled certain input
arguments. An attacker could possibly use this issue to execute arbitrary
commands. (CVE-2018-3836)
It was discovered that Leptonica incorrectly handled input arguments. An
attacker could possibly use this issue to cause a denial of service or
other unspecified impact. (CVE-2018-7186)
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2018-7186: leptonlib - Leptonica before 1.75.3 does not limit the number of characters in a %s format a...
vendor_debian·2018·CVSS 9.8
CVE-2018-7186 [CRITICAL] CVE-2018-7186: leptonlib - Leptonica before 1.75.3 does not limit the number of characters in a %s format a...
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.
Scope: local
bookworm: resolved (fixed in 1.75.3-2)
bullseye: resolved (fixed in 1.75.3-2)
forky: resolved (fixed in 1.75.3-2)
sid: resolved (fixed in 1.75.3-2)
trixie: resolved (fixed in 1.75.3-2)
GHSA
GHSA-hx3c-v527-xcjq: Leptonica before 1
ghsa_unreviewed·2022-05-13
CVE-2018-7186 [CRITICAL] CWE-787 GHSA-hx3c-v527-xcjq: Leptonica before 1
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.
OSV
leptonlib vulnerabilities
osv·2021-03-15·CVSS 3.3
CVE-2017-18196 [LOW] leptonlib vulnerabilities
leptonlib vulnerabilities
It was discovered that Leptonica incorrectly handled path names. An
attacker could possibly use this issue to obtain sensitive information.
This issue only affected Ubuntu 16.04 ESM. (CVE-2017-18196)
It was discovered that Leptonica incorrectly handled certain input
arguments. An attacker could possibly use this issue to execute arbitrary
commands. (CVE-2018-3836)
It was discovered that Leptonica incorrectly handled input arguments. An
attacker could possibly use this issue to cause a denial of service or
other unspecified impact. (CVE-2018-7186)
OSV
CVE-2018-7186: Leptonica before 1
osv·2018-02-16·CVSS 9.8
CVE-2018-7186 [CRITICAL] CVE-2018-7186: Leptonica before 1
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-7186 leptonica: Stack-based buffer overflows in gplotRead() and ptaReadStream() when parsing crafted files can lead to denial of service
bugzilla·2018-02-16·CVSS 9.8
CVE-2018-7186 [CRITICAL] CVE-2018-7186 leptonica: Stack-based buffer overflows in gplotRead() and ptaReadStream() when parsing crafted files can lead to denial of service
CVE-2018-7186 leptonica: Stack-based buffer overflows in gplotRead() and ptaReadStream() when parsing crafted files can lead to denial of service
leptonica through version 1.74.4 is vulnerable to a stack-based buffer overflow in gplot.c:gplotRead() and ptabasic.c:ptaReadStream() when parsing crafted files, leading to a denial of service.
Upstream patch:
https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a
Additional References:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890548
Discussion:
Created leptonica tracking bugs for this issue:
Affects: epel-all [bug 1542007]
Affects: fedora-all [bug 1542008]
Created mingw-leptonica tracking bugs for this issue:
Affects: fedora-all [bug 1542009]
Bugzilla
CVE-2018-3836 CVE-2018-7186 leptonica: various flaws [epel-all]
bugzilla·2018-02-05·CVSS 7.8
CVE-2018-3836 [HIGH] CVE-2018-3836 CVE-2018-7186 leptonica: various flaws [epel-all]
CVE-2018-3836 CVE-2018-7186 leptonica: various flaws [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora EPEL.
Bugzilla
CVE-2018-3836 CVE-2018-7186 mingw-leptonica: various flaws [fedora-all]
bugzilla·2018-02-05·CVSS 7.8
CVE-2018-3836 [HIGH] CVE-2018-3836 CVE-2018-7186 mingw-leptonica: various flaws [fedora-all]
CVE-2018-3836 CVE-2018-7186 mingw-leptonica: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fe
Bugzilla
CVE-2018-3836 CVE-2018-7186 leptonica: various flaws [fedora-all]
bugzilla·2018-02-05·CVSS 7.8
CVE-2018-3836 [HIGH] CVE-2018-3836 CVE-2018-7186 leptonica: various flaws [fedora-all]
CVE-2018-3836 CVE-2018-7186 leptonica: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora.
https://bugs.debian.org/890548https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99ahttps://lists.debian.org/debian-lts-announce/2018/03/msg00005.htmlhttps://lists.debian.org/debian-lts/2018/02/msg00054.htmlhttps://security.gentoo.org/glsa/202312-01https://bugs.debian.org/890548https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99ahttps://lists.debian.org/debian-lts-announce/2018/03/msg00005.htmlhttps://lists.debian.org/debian-lts/2018/02/msg00054.htmlhttps://security.gentoo.org/glsa/202312-01
2018-02-16
Published