UBUNTU-CVE-2026-125396: Use After Free

Published Nov 12, 2026
·
Updated

Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gsfonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.

Affected Software

7 affected components
ubuntu/ghostscript*
ubuntu/ghostscript*
ubuntu/ghostscript*
ubuntu/ghostscript*
ubuntu/ghostscript*
ubuntu/ghostscript*
ubuntu/ghostscript*

Event History

Nov 12, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What input must an attacker provide to exploit this issue?

The attacker must be able to supply a crafted PostScript or PDF document that Ghostscript processes. The document triggers a type error in .putgstringcopy and uses a custom error handler to recover the privileged .forceput operator.

2

Does running Ghostscript with -dSAFER prevent exploitation?

No. The vulnerability is a bypass of -dSAFER, allowing the crafted document to access .forceput and ultimately execute arbitrary code through a use-after-free across save/restore.

3

Which Ghostscript versions are affected?

Ghostscript versions before 10.08.0 are affected. Upgrading to 10.08.0 or later addresses the affected version range described.

4

What is the impact if exploitation succeeds?

Successful exploitation can result in arbitrary code execution in the context of the process running Ghostscript.

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