CVE-2026-58459 gpsd gpsprof Command Injection via gnuplot plot title subtype field
Attackers can execute arbitrary shell commands by injecting payloads into GPS device subtype fields processed by gpsprof and gnuplot.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-58459?
CVE-2026-58459 is a high-severity command injection vulnerability in ntpsec gpsd, published on 9 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
gpsd through release-3.27.5, fixed at commit 4c06658, contains a command injection vulnerability in gpsprof that allows attackers who control the GPS device subtype value to execute arbitrary shell commands by embedding backtick payloads in the gnuplot plot title without proper escaping. The subtype field sourced from a DEVICES JSON log entry or NMEA PGRMT sentence is written into a generated gnuplot program via a set title statement with only double-quote characters escaped, enabling arbitrary shell command execution as the user running gnuplot when the victim renders the generated plot through the gpsprof and gnuplot workflow.
Weakness: CWE-78
Which versions are affected by CVE-2026-58459?
It affects 1 product.
Linux distribution packages (20)
gpsd AlmaLinux:10 | All versions | 1:3.26.1-3.el10_2.1 |
gpsd-clients AlmaLinux:10 | All versions | 1:3.26.1-3.el10_2.1 |
python3-gpsd AlmaLinux:10 | All versions | 1:3.26.1-3.el10_2.1 |
gpsd-minimal AlmaLinux:9 | All versions | 1:3.26.1-2.el9_8.1 |
gpsd-minimal-clients AlmaLinux:9 | All versions | 1:3.26.1-2.el9_8.1 |
gpsd Red Hat:enterprise_linux:10.2 | All versions | 1:3.26.1-3.el10_2.1 |
gpsd-clients Red Hat:enterprise_linux:10.2 | All versions | 1:3.26.1-3.el10_2.1 |
gpsd-clients-debuginfo Red Hat:enterprise_linux:10.2 | All versions | 1:3.26.1-3.el10_2.1 |
gpsd-debuginfo Red Hat:enterprise_linux:10.2 | All versions | 1:3.26.1-3.el10_2.1 |
gpsd-debugsource Red Hat:enterprise_linux:10.2 | All versions | 1:3.26.1-3.el10_2.1 |
python3-gpsd Red Hat:enterprise_linux:10.2 | All versions | 1:3.26.1-3.el10_2.1 |
python3-gpsd-debuginfo Red Hat:enterprise_linux:10.2 | All versions | 1:3.26.1-3.el10_2.1 |
gpsd-minimal Red Hat:enterprise_linux:9::appstream | All versions | 1:3.26.1-2.el9_8.1 |
gpsd-minimal-clients Red Hat:enterprise_linux:9::appstream | All versions | 1:3.26.1-2.el9_8.1 |
gpsd-minimal-clients-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 1:3.26.1-2.el9_8.1 |
gpsd-minimal-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 1:3.26.1-2.el9_8.1 |
gpsd-minimal-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 1:3.26.1-2.el9_8.1 |
gpsd Rocky Linux:10 | All versions | 1:3.26.1-3.el10_2.1 |
gpsd-minimal Rocky Linux:9 | All versions | 1:3.26.1-2.el9_8.1 |
gpsd openSUSE:Tumbleweed | All versions | 3.27.5-3.1 |
Products include Gpsd Project Gpsd.
How do I fix CVE-2026-58459?
Apply the vendor's patch.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-58459 being exploited?
There is no known exploitation of CVE-2026-58459 in the wild and no public exploit code.
Other vulnerabilities in ntpsec gpsd
Sources
Also known as ALSA-2026:51075, ALSA-2026:51153, CLSA-2026-1786360070, CLSA-2026-1786447733, DEBIAN-CVE-2026-58459, GHSA-2hhc-4hqc-4mg8 and 7 more.