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.
Published: 2026-07-09
Score: 8.4 High
EPSS: 1.8% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

gpsd, up to release 3.27.5, contains a command injection flaw (CWE‑78) in the gpsprof component. The vulnerability is triggered when an attacker controls the GPS device subtype value, which is sourced from a DEVICES JSON log entry or NMEA PGRMT sentence and inserted into a gnuplot "set title" statement. Only double‑quote characters are escaped, so backtick‑enclosed payloads are passed directly to the shell, enabling the execution of arbitrary commands as the gpsprof and gnuplot process. This flaw allows an attacker to compromise confidentiality, integrity, and availability of the host system.

Affected Systems

ntpsec’s gpsd product releases up to and including 3.27.5 are affected. No other vendors or product versions are identified in the CNA data.

Risk and Exploitability

The CVSS score of 8.4 indicates high severity, and the EPSS score of 2% shows a non‑zero likelihood of exploitation. Based on the description, it is inferred that the likely attack vector is local or involves injection of malicious NMEA data into the feed; an attacker must control the GPS device subtype value, which can be achieved by compromising a GPS device or tampering with the NMEA stream received by the system. This is not listed in CISA’s KEV catalog, but the potential for arbitrary shell execution underlines a significant risk that warrants immediate remediation.

Generated by OpenCVE AI on July 29, 2026 at 12:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade gpsd to a version containing commit 4c06658 or later.
  • If an upgrade is not immediately possible, disable gnuplot integration or prevent gpsprof from processing untrusted GPS subtype data.
  • Implement input validation or sanitization for the GPS device subtype so that backticks and other shell metacharacters are escaped or removed before embedding the title into gnuplot.

Generated by OpenCVE AI on July 29, 2026 at 12:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
First Time appeared Gpsd Project
Gpsd Project gpsd
CPEs cpe:2.3:a:gpsd_project:gpsd:*:*:*:*:*:*:*:*
Vendors & Products Gpsd Project
Gpsd Project gpsd

Tue, 14 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Fri, 10 Jul 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Ntpsec
Ntpsec gpsd
Vendors & Products Ntpsec
Ntpsec gpsd

Thu, 09 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title gpsd gpsprof Command Injection via gnuplot plot title subtype field
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.4, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:49:48.157Z

Reserved: 2026-06-30T20:20:33.789Z

Link: CVE-2026-58459

cve-icon Vulnrichment

Updated: 2026-07-14T01:01:30.720Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-09T16:14:02Z

Links: CVE-2026-58459 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T12:15:04Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')