Skip to main content

gpsd CVE-2026-58459

| EUVDEUVD-2026-42622 HIGH
OS Command Injection (CWE-78)
2026-07-09 VulnCheck GHSA-2hhc-4hqc-4mg8
8.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Spoof GPS device or craft log
  2. Delivery
    Inject backtick payload in subtype field
  3. Exploit
    Victim runs gpsprof to generate gnuplot program
  4. Execution
    Payload written into set title statement
  5. Persist
    Victim renders plot with gnuplot
  6. Impact
    Shell executes attacker commands as user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to control the device 'subtype' value delivered through either a DEVICES JSON log entry or a Garmin NMEA PGRMT sentence, and to embed a backtick command-substitution payload in that field. The victim must then execute the full gpsprof → gnuplot workflow: gpsprof generates the gnuplot program with the unsanitized subtype in a set title statement, and the victim renders that program with gnuplot (this is the UI:A/active-interaction requirement). Limiting factors: it only affects gpsd through release-3.27.5; exploitation is LOCAL to the rendering host and does not fire automatically - it depends on an operator choosing to profile and plot attacker-influenced GPS data; and commands execute only with the privileges of the user running gnuplot, not automatically as root.

Impact

The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H, base 8.4) captures the essential trade-off: high confidentiality/integrity/availability impact and no privileges required, but a LOCAL vector and mandatory active user interaction (the victim must run the gpsprof/gnuplot rendering workflow on attacker-influenced data). This is not a remotely-triggerable server compromise - it is a client-side/diagnostic-workflow injection that fires only when an operator profiles a malicious or spoofed GPS source. No EPSS score was provided, so exploitation probability cannot be quantified from the input. It is not in CISA KEV and no POC was supplied, so there is no evidence of active or automated exploitation. Net assessment: a legitimately high-severity code-execution bug for anyone who profiles untrusted GPS devices, but the local vector plus required user action and the niche gpsprof workflow make it a targeted rather than mass-exploitation risk. Note one ambiguity: the malicious subtype can arrive over a serial/network GPS feed even though the code-execution trigger is local - the AV:L rating reflects the rendering step, not the data source.

Exploit ScenarioDerived

An attacker sets up a malicious or spoofed GPS device (or crafts a captured NMEA/DEVICES log) whose subtype field contains a backtick payload such as curl attacker.sh|sh. When a technician or developer profiles that device with gpsprof and renders the resulting gnuplot program, gnuplot performs command substitution on the title and runs the attacker's shell commands as the rendering user. No public POC was provided, and the local vector plus required user interaction mean the attacker must get the victim to profile the poisoned data.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 09, 2026

Arbitrary shell command execution in gpsd's gpsprof profiling tool (through release-3.27.5) allows an attacker who controls a GPS device's subtype value to run commands as the user rendering the plot. The subtype string - taken from a DEVICES JSON log entry or an NMEA PGRMT sentence - is embedded into a generated gnuplot program's set title statement with only double quotes escaped, so backtick payloads execute when the victim renders the plot via the gpsprof/gnuplot workflow. This was reported by VulnCheck; a vendor fix is available (fixed at commit 4c06658), and there is no public exploit identified at time of analysis and it is not listed in CISA KEV.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - update gpsd to a build that includes commit 4c06658e988f4ced1a7a574ce082a22ef625df56 (and companion commits 5581ba19 and 1a6bb7bc), applying the escaping fix for the gnuplot plot title. Because the fix is currently referenced as Git commits rather than a confirmed tagged release, verify your distribution has backported it before relying on package version numbers. Until patched, do not run gpsprof against GPS devices or captured logs from untrusted or unverified sources, and treat DEVICES JSON logs and NMEA PGRMT subtype fields as untrusted input; as a compensating control, manually inspect or sanitize the subtype value (strip backticks and shell metacharacters) before feeding recorded data into the gpsprof/gnuplot workflow, and run the rendering step as an unprivileged, sandboxed user to limit the blast radius of any command execution. Reference the vendor advisory at https://gitlab.com/gpsd/gpsd/-/work_items/404 and https://www.vulncheck.com/advisories/gpsd-gpsprof-command-injection-via-gnuplot-plot-title-subtype-field.

Affected VersionsENISA

GPSd 0 ≤4c06658e988f4ced1a7a574ce082a22ef625df56
GPSd 0 ≤3.27.5

Affected Packages

euvd gpsd no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

gpsd is the widely-used GPS/GNSS multiplexing daemon; gpsprof is its bundled profiling/diagnostic utility that collects satellite and device data and generates gnuplot programs to visualize signal quality. The root cause is CWE-78 (OS Command Injection): the device 'subtype' identifier - populated either from a JSON DEVICES report or from a Garmin-proprietary NMEA PGRMT sentence - is inserted verbatim into a gnuplot set title "..." directive. gnuplot's title strings support backtick command substitution (executing shell commands and inlining their output), and gpsprof only escapes the double-quote character, leaving backticks and shell metacharacters intact. When the victim runs the generated gnuplot program, the substitution fires and the shell executes attacker-supplied commands. The affected component is identified in CPE as cpe:2.3:a:ntpsec:gpsd (the NTPsec gpsd fork).

Know when Gpsd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.4 HIGH
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
vuln.today AI 7.8 HIGH

Injected subtype data is processed locally and code runs only when the victim actively renders the plot (UI:R, AV:L); no auth needed (PR:N) and full code execution yields C/I/A:H.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE CRITICAL
Red Hat 7.8 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

gpsd's gpsprof tool (through version 3.27.5) enables command execution through specially crafted GPS device data, creating remote code execution risk for organizations that process GPS signals or perform geographic data analysis. Affected systems could be compromised, potentially impacting IoT devices, mapping applications, and location-tracking infrastructure. An available vendor patch eliminates this vulnerability and should be deployed promptly.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 50% exploitable
Prevalence
Low
niche GPS profiling/diagnostic tool used mainly by GPS developers
Data Quality
9 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy