Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Dan Bloomberg | Leptonica | 1.74.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | leptonlib | 1.75.3-1 | — |
| Debian 13 | leptonlib | 1.75.3-1 | — |
| Debian 12 | leptonlib | 1.75.3-1 | — |
| Debian 7 | leptonlib | 1.69-3.1+deb7u1 | DLA-1284-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | leptonlib | 1.73-1ubuntu0.1~esm1 | USN-4819-1 |
| Ubuntu Pro 14.04 LTS | leptonlib | 1.70.1-1ubuntu0.1~esm1 | USN-4819-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | leptonica | 1.80.0-1.9 | openSUSE-SU-2024:10914-1 |
Advisories 3
- USN-4819-1 leptonlib vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-1284-1 leptonlib - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10914-1 leptonica-devel-1.80.0-1.9 on GA media SUSE / openSUSE Security Updates · May 7, 2025