CVE-2026-58459: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in ntpsec gpsd
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.
AI Analysis
Technical Summary
The gpsd software up to version 3.27.5 has an OS command injection vulnerability in the gpsprof tool. An attacker controlling the GPS device subtype value can inject shell commands via backtick characters embedded in the gnuplot plot title. This occurs because the subtype field, sourced from DEVICES JSON log entries or NMEA PGRMT sentences, is incorporated into a gnuplot script with insufficient escaping—only double quotes are escaped. When gpsprof renders the plot using gnuplot, the injected commands execute with the privileges of the user running gnuplot. The vulnerability was fixed in a commit identified as 4c06658 after version 3.27.5.
Potential Impact
Successful exploitation allows an attacker with control over the GPS device subtype value to execute arbitrary shell commands on the affected system with the privileges of the user running gnuplot. This can lead to unauthorized code execution and potential system compromise. The vulnerability requires local access or the ability to influence GPS data inputs. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
A fix for this vulnerability is available in the commit 4c06658, which is after version 3.27.5. Users should upgrade gpsd to a version that includes this fix. Since no official patch version is explicitly stated, users must verify the vendor repository or release notes for the fixed version. Until patched, avoid processing untrusted GPS device subtype data with gpsprof and gnuplot to prevent command injection.
CVE-2026-58459: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in ntpsec gpsd
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.
CVSS v4.0
Score 8.4high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The gpsd software up to version 3.27.5 has an OS command injection vulnerability in the gpsprof tool. An attacker controlling the GPS device subtype value can inject shell commands via backtick characters embedded in the gnuplot plot title. This occurs because the subtype field, sourced from DEVICES JSON log entries or NMEA PGRMT sentences, is incorporated into a gnuplot script with insufficient escaping—only double quotes are escaped. When gpsprof renders the plot using gnuplot, the injected commands execute with the privileges of the user running gnuplot. The vulnerability was fixed in a commit identified as 4c06658 after version 3.27.5.
Potential Impact
Successful exploitation allows an attacker with control over the GPS device subtype value to execute arbitrary shell commands on the affected system with the privileges of the user running gnuplot. This can lead to unauthorized code execution and potential system compromise. The vulnerability requires local access or the ability to influence GPS data inputs. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
A fix for this vulnerability is available in the commit 4c06658, which is after version 3.27.5. Users should upgrade gpsd to a version that includes this fix. Since no official patch version is explicitly stated, users must verify the vendor repository or release notes for the fixed version. Until patched, avoid processing untrusted GPS device subtype data with gpsprof and gnuplot to prevent command injection.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-30T20:20:33.789Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4fcd4d68715ace43b4cb5e
Added to database: 07/09/2026, 16:33:17 UTC
Last enriched: 07/30/2026, 00:47:17 UTC
Last updated: 08/22/2026, 22:52:15 UTC
Views: 77
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.