Where
AND
-Infinity
0
Severity
5.5
Infoleak
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

It was found that getenv and filenameforall ignore -dSAFER possibly allowing filesystem enumeration.

Upstream bug:

http://bugs.ghostscript.com/showbug.cgi?id=694724

Upstream patch:

http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=ab109aaeb3ddba59518b036fb288402a65cf7ce8

Reference: http://seclists.org/oss-sec/2016/q3/651

Reproducer:

%!PS (HOME) getenv { print (\n) print } { (variable not found\n) print } ifelse

1 / 2
Source: Red Hat
First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203