CVE-2026-58459 gpsd gpsprof Command Injection via gnuplot plot title subtype field
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
11 packages: 7 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/gpsd(Debian 12) | = 3.22-4.1; = 3.22-4.1+deb12u1; = 3.25-1; = 3.25-1~exp1 +15 more | No fix listed | No fix yet |
| ubuntu/gpsd(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/gpsd(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/gpsd(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| azure linux gpsd(Azure Linux 4.0) | < 1:3.26.1-11.azl4 | 1:3.26.1-11.azl4 | Fixed |
| debian/gpsd(Debian 13) | < 3.25-5+deb13u2; = 3.25-5; = 3.25-5+deb13u1 | 3.25-5+deb13u2 | Fixed |
| debian/gpsd(Debian 14) | < 3.27.5-1; = 3.25-5; = 3.26.1-1; = 3.27-1 +2 more | 3.27.5-1 | Fixed |
| gpsd project gpsd | <= 3.27.5 | after 3.27.5 | Fixed |
| ntpsec/gpsd | <= 3.27.5; <= 4c06658e988f4ced1a7a574ce082a22ef625df56 | after 3.27.5, 4c06658e988f4ced1a7a574ce082a22ef625df56 | Fixed |
| redhat/gpsd(Red Hat enterprise_linux 10.2) | < 1:3.26.1-3.el10_2.1 | 1:3.26.1-3.el10_2.1 | Fixed |
| redhat/gpsd-minimal(Red Hat enterprise_linux 9) | < 1:3.26.1-2.el9_8.1 | 1:3.26.1-2.el9_8.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ntpsec/gpsd | <= 3.27.5 | No fix listed |
| ntpsec/gpsd | <= 4c06658e988f4ced1a7a574ce082a22ef625df56 | No fix listed |
| redhat/gpsd(Red Hat:enterprise_linux:10.2) | < 1:3.26.1-3.el10_2.1 | 1:3.26.1-3.el10_2.1 |
| redhat/gpsd-minimal(Red Hat:enterprise_linux:9) | < 1:3.26.1-2.el9_8.1 | 1:3.26.1-2.el9_8.1 |
| debian/gpsd(Debian:12) | All versions | No fix listed |
| debian/gpsd(Debian:12) | = 3.22-4.1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.22-4.1+deb12u1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-1~exp1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-1~exp2 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-2 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-2.1~exp1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-3 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-3~exp1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-4 | No fix listed |
| debian/gpsd(Debian:12) | = 3.25-5 | No fix listed |
| debian/gpsd(Debian:12) | = 3.26.1-1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.27-1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.27-1.1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.27.5-0.1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.27.5-1 | No fix listed |
| debian/gpsd(Debian:12) | = 3.27.5-2 | No fix listed |
| debian/gpsd(Debian:12) | = 3.27.5-3 | No fix listed |
| debian/gpsd(Debian:13) | < 3.25-5+deb13u2 | 3.25-5+deb13u2 |
| debian/gpsd(Debian:13) | = 3.25-5 | No fix listed |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/gpsd(Debian:13) | = 3.25-5+deb13u1 | No fix listed |
| debian/gpsd(Debian:14) | < 3.27.5-1 | 3.27.5-1 |
| debian/gpsd(Debian:14) | = 3.25-5 | No fix listed |
| debian/gpsd(Debian:14) | = 3.26.1-1 | No fix listed |
| debian/gpsd(Debian:14) | = 3.27-1 | No fix listed |
| debian/gpsd(Debian:14) | = 3.27-1.1 | No fix listed |
| debian/gpsd(Debian:14) | = 3.27.5-0.1 | No fix listed |
| ubuntu/gpsd(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/gpsd(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/gpsd(Ubuntu:26.04) | All versions | No fix listed |
| gpsd project gpsd | <= 3.27.5 | No fix listed |
| azure linux gpsd(Azure Linux:4.0) | < 1:3.26.1-11.azl4 | 1:3.26.1-11.azl4 |
References
- gitlab.com exploit issue-tracking third-party-advisory
- Patch Commit (1) patch
- Patch Commit (2) patch
- Patch Commit (3) patch
- www.vulncheck.com third-party-advisory
- Red Hat CVE page vendor-advisory
- RHSA-2026:51075 patch vendor-advisory
- RHSA-2026:51153 patch vendor-advisory
- Red Hat Bugzilla 2498575 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-58459 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory