foomatic-rip filter v4.0.12 and prior used insecurely creates temporary files for storage of PostScript data by rendering the data when the debug mode was enabled. This flaw may be exploited by a local attacker to conduct symlink attacks by overwriting arbitrary files accessible with the privileges of the user running the foomatic-rip universal print filter.
https://www.openwall.com/lists/oss-security/2014/02/08/5/1
https://security-tracker.debian.org/tracker/CVE-2011-2924
https://lwn.net/Articles/459979/
https://launchpad.net/ubuntu/+source/foomatic-filters/4.0.12-1