Race condition in Leptonica - CVE-2018-7441

 

Race condition in Leptonica - CVE-2018-7441

Published: March 22, 2018 / Updated: December 22, 2023


Vulnerability identifier: #VU11225
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-7441
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local attacker to overwrite arbitrary files on the target system.

The weakness exists due to hardcoded /tmp pathnames. A local attacker can create a file in advance, trigger race condition and overwrite arbitrary files.

Affected software

Leptonica
Gentoo Linux
Fedora
leptonica
mingw-leptonica
media-libs/leptonica

How to mitigate CVE-2018-7441

Install update from vendor's website.

Leptonica - update to 1.76.0
leptonica - addressed in versions 1.77.0-1.fc28, 1.77.0-1.fc29
mingw-leptonica - addressed in versions 1.77.0-1.fc28, 1.77.0-1.fc29
media-libs/leptonica - update to 1.81.0

External References

Related Security Bulletins