Description
Leptonica through 1.75.3 uses hardcoded /tmp pathnames, which might allow local users to overwrite arbitrary files or have unspecified other impact by creating files in advance or winning a race condition, as demonstrated by /tmp/junk_split_image.ps in prog/splitimage2pdf.c.
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.76.0-1 | — |
| Debian 13 | leptonlib | 1.76.0-1 | — |
| Debian 12 | leptonlib | 1.76.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | leptonlib | No fix yet | — |
| Ubuntu Pro 16.04 LTS | leptonlib | No fix yet | — |
| Ubuntu Pro 14.04 LTS | leptonlib | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | leptonica | 1.80.0-1.9 | openSUSE-SU-2024:10914-1 |
Advisories 1
- openSUSE-SU-2024:10914-1 leptonica-devel-1.80.0-1.9 on GA media SUSE / openSUSE Security Updates · May 7, 2025