CVE-2026-58459 Details
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.
A command injection vulnerability has been identified in gpsd versions through 3.27.5, within the gpsprof component. This vulnerability allows attackers to execute arbitrary shell commands by embedding backtick payloads in the Gnuplot plot title, exploiting improper escaping of the GPS device subtype value. The issue arises when gpsprof generates a Gnuplot program from GPS metadata, particularly the subtype field, which can be manipulated by an attacker. The vulnerability is triggered when the crafted Gnuplot program is rendered, executing the injected commands as the user running Gnuplot.
Users can update to gpsd version 3.27.5 or later, where this vulnerability has been fixed. The patch is available in the official gpsd repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gpsd project gpsd | <= 3.27.5 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jul 14, 2026 | CVE Modified | CISA-ADP |
| Jul 13, 2026 | Initial Analysis | [email protected] |
| Jul 9, 2026 | New CVE Received | [email protected] |