Description
Leptonica 1.74.4 constructs unintended pathnames (containing duplicated path components) when operating on files in /tmp subdirectories, which might allow local users to bypass intended file restrictions by leveraging access to a directory located deeper within the /tmp directory tree, as demonstrated by /tmp/ANY/PATH/ANY/PATH/input.tif.
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.74.4-2 | — |
| Debian 13 | leptonlib | 1.74.4-2 | — |
| Debian 12 | leptonlib | 1.74.4-2 | — |
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 2
- USN-4819-1 leptonlib vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- openSUSE-SU-2024:10914-1 leptonica-devel-1.80.0-1.9 on GA media SUSE / openSUSE Security Updates · May 7, 2025
References
- https://bugs.debian.org/885704
- GLSA-202312-01 vendor-advisory