Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 1.8%top 23%

CVE-2026-58459: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in ntpsec gpsd

0
High
VulnerabilityCVE-2026-58459cvecve-2026-58459
Published: 07/09/2026 (07/09/2026, 16:14:02 UTC)
Source: CVE Database V5
Vendor/Project: ntpsec
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →cve
gpsd
pkg:github/gpsd
Affected versions
<=3.27.5

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

AILast updated: 07/30/2026, 00:47:17 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses