mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and verification actions, which allows remote attackers to spoof the output that GnuPG sends on file descriptor 2 to other programs that use the "--status-fd 2" option. For example, the OpenPGP data might represent an original filename that contains line feed characters in conjunction with GOODSIG or VALIDSIG status codes.
https://www.debian.org/security/2018/dsa-4224
https://www.debian.org/security/2018/dsa-4223
https://www.debian.org/security/2018/dsa-4222
https://usn.ubuntu.com/3964-1/
https://usn.ubuntu.com/3675-3/
https://usn.ubuntu.com/3675-2/
https://usn.ubuntu.com/3675-1/
https://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html
https://lists.debian.org/debian-lts-announce/2021/12/msg00027.html
https://github.com/RUB-NDS/Johnny-You-Are-Fired/blob/master/paper/johnny-fired.pdf
https://github.com/RUB-NDS/Johnny-You-Are-Fired
https://access.redhat.com/errata/RHSA-2018:2181
https://access.redhat.com/errata/RHSA-2018:2180
http://www.securitytracker.com/id/1041051
http://www.securityfocus.com/bid/104450
http://www.openwall.com/lists/oss-security/2019/04/30/4
http://seclists.org/fulldisclosure/2019/Apr/38
http://packetstormsecurity.com/files/152703/Johnny-You-Are-Fired.html