Vulnerability · Published Jul 9, 2026 · Assigned by VulnCheck
CVE-2026-58459gpsd gpsprof Command Injection via gnuplot plot title subtype field
High 7.8
In plain English
A high-severity OS command injection in gpsd from ntpsec. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | gpsd | 1:3.26.1-3.el10_2.1 | ALSA-2026:51075 |
| AlmaLinux:10 | gpsd-clients | 1:3.26.1-3.el10_2.1 | ALSA-2026:51075 |
| AlmaLinux:9 | gpsd-minimal | 1:3.26.1-2.el9_8.1 | ALSA-2026:51153 |
| AlmaLinux:9 | gpsd-minimal-clients | 1:3.26.1-2.el9_8.1 | ALSA-2026:51153 |
| AlmaLinux:10 | python3-gpsd | 1:3.26.1-3.el10_2.1 | ALSA-2026:51075 |
| Debian:12 | gpsd | no fix listed | DEBIAN-CVE-2026-58459 |
| Debian:13 | gpsd | 3.25-5+deb13u2 | DEBIAN-CVE-2026-58459 |
| Debian:14 | gpsd | 3.27.5-1 | DEBIAN-CVE-2026-58459 |
| Rocky Linux:10 | gpsd | 1:3.26.1-3.el10_2.1 | RLSA-2026:51075 |
| Rocky Linux:9 | gpsd-minimal | 1:3.26.1-2.el9_8.1 | RLSA-2026:51153 |
| Ubuntu:22.04:LTS | gpsd | no fix listed | UBUNTU-CVE-2026-58459 |
| Ubuntu:24.04:LTS | gpsd | no fix listed | UBUNTU-CVE-2026-58459 |
| Ubuntu:26.04:LTS | gpsd | no fix listed | UBUNTU-CVE-2026-58459 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://gitlab.com/gpsd/gpsd/-/work_items/404#note_3534119267 issue-tracking
- Patch Commit (1) patch
- Patch Commit (2) patch
- Patch Commit (3) patch
- https://www.vulncheck.com/advisories/gpsd-gpsprof-command-injection-via-gnuplot-plot-title-subtype-field third-party-advisory