CVE-2018-3836

NameCVE-2018-3836
DescriptionAn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1284-1, ELA-764-1, ELA-765-1
Debian Bugs889759

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
leptonlib (PTS)jessie, jessie (lts)1.71-2.1+deb8u2fixed
stretch (security)1.74.1-1+deb9u1vulnerable
stretch (lts), stretch1.74.1-1+deb9u2fixed
buster (security), buster, buster (lts)1.76.0-1+deb10u2fixed
bullseye1.79.0-1.1+deb11u1fixed
bookworm1.82.0-3fixed
sid, trixie1.84.1-4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
leptonlibsourcewheezy1.69-3.1+deb7u1DLA-1284-1
leptonlibsourcejessie1.71-2.1+deb8u2ELA-765-1
leptonlibsourcestretch1.74.1-1+deb9u2ELA-764-1
leptonlibsource(unstable)1.75.3-1889759

Notes

https://www.talosintelligence.com/vulnerability_reports/TALOS-2018-0516
https://github.com/DanBloomberg/leptonica/issues/303
When fixing this issue make sure the fix is complete and includes as well
https://github.com/DanBloomberg/leptonica/pull/313/commits/49ecb6c2dfd6ed5078c62f4a8eeff03e3beced3b
to not open CVE-2018-7440.

Search for package or bug name: Reporting problems