Report

CVE-2024-29510: Ghostscript uniprint device format-string vulnerability

09e4f527-fce0-4799-a323-b041eab11f55

CVE-2024-29510 — Ghostscript 'uniprint' device (devices/gdevupd.c) takes user-controlled PostScript parameters (upWriteComponentCommands, upYMoveCommand) and passes them DIRECTLY as the format string argument to gp_fprintf and gs_snprintf inside upd_wrtrtl (lines 7021, 7028, 7049, 7053) and similar writer functions. Attacker-supplied %s/%x/%n conversion specifiers yield arbitrary read & write primitives, bypassing -dSAFER and leading to RCE on a victim that renders a malicious PostScript/PDF.