CVE-2018-7186
publishedleptonica: Stack-based buffer overflows in gplotRead() and ptaReadStream() when parsing crafted files can lead to denial of service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | wheezy | leptonlib | Advisory build | 1.69-3.1+deb7u2 | DLA-1302-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | leptonica-develaarch64 | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| Ubuntu | esm | leptonica-progs | Advisory build | 1.70.1-1ubuntu0.1~esm1 | USN-4819-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | leptonica-develppc64le | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | leptonica-devels390x | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | leptonica-develx86_64 | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | leptonica-toolsaarch64 | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
Show 16 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | leptonica-toolsppc64le | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | leptonica-toolss390x | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | leptonica-toolsx86_64 | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblept5aarch64 | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblept5ppc64le | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblept5s390x | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblept5x86_64 | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblept5-32bitaarch64 | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblept5-32bitppc64le | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblept5-32bits390x | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblept5-32bitx86_64 | Advisory build | 1.80.0-1.9 | OPENSUSE-SU-2024:10914-1 |
| Ubuntu | esm | leptonlib | Advisory build | 1.70.1-1ubuntu0.1~esm1 | USN-4819-1 |
| Ubuntu | esm | liblept4 | Advisory build | 1.70.1-1ubuntu0.1~esm1 | USN-4819-1 |
| Ubuntu | xenial | leptonica-progs | Advisory build | 1.73-1ubuntu0.1~esm1 | USN-4819-1 |
| Ubuntu | xenial | leptonlib | Advisory build | 1.73-1ubuntu0.1~esm1 | USN-4819-1 |
| Ubuntu | xenial | liblept5 | Advisory build | 1.73-1ubuntu0.1~esm1 | USN-4819-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- https://bugs.debian.org/890548
- https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a
- [debian-lts-announce] 20180307 [SECURITY] [DLA 1302-1] leptonlib security update https://lists.debian.org/debian-lts-announce/2018/03/msg00005.html
- https://lists.debian.org/debian-lts/2018/02/msg00054.html
- GLSA-202312-01 https://security.gentoo.org/glsa/202312-01
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 18c69998fde5ebd2526ca51e24dd7db780e0367e8156f026c78283209db066f5
- Ingested
- 23 Sep 2026, 07:45:05 UTC
- Source record
- Official CVE record