An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
https://security.gentoo.org/glsa/202312-01
https://lists.debian.org/debian-lts-announce/2018/03/msg00005.html
https://github.com/DanBloomberg/leptonica/issues/303#issuecomment-366472212