Description
gpsd through release-3.27.5, fixed at commit 4c06658, contains a code injection vulnerability in the gpsprof utility that allows an attacker who controls GPS input data to execute arbitrary OS commands by injecting malicious content into the SKY.satellites[].used field, which is inserted unsanitized into a gnuplot heredoc data block. Attackers can supply a used value containing the string EOD to terminate the heredoc early and append gnuplot system() calls, achieving OS command execution as the user running gpsprof when the generated plot script is processed by gnuplot in polar mode.
Published: 2026-07-23
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

gpsd's gpsprof utility contains a code injection flaw that allows an attacker who can control GPS input data to embed malicious content into the SKY.satellites[].used field. The unsanitized field is written verbatim into a gnuplot heredoc data block. If the attacker supplies the string EOD to terminate the heredoc early, they can append gnuplot system() calls and cause the gnuplot interpreter to run arbitrary OS commands. The executed commands run with the privileges of the user running gpsprof, potentially compromising the confidentiality, integrity, and availability of the host system. The underlying weakness is a classic "command injection" flaw (CWE-94).

Affected Systems

The vulnerability exists in gpsd releases up through 3.27.5. Newer releases starting with 3.27.6 incorporate the fix in commit 4c06658, which sanitizes the SKY.satellites[].used field before it is written to the gnuplot script. The affected component is the gpsprof command-line tool that ships with the gpsd package. The flaw does not affect other gpsd utilities or core GPS server functionality.

Risk and Exploitability

The risk is amplified if gpsprof is run with elevated privileges or on a system that allows untrusted GPS data to be injected by an attacker. Given the severity of the CVSS 8.5 score and the low EPSS score, immediate application of the published fix or equivalent mitigation is recommended to prevent potential compromise. The vulnerability is not listed in the CISA KEV catalog, indicating it has not yet been observed as a widely exploited condition. Nonetheless, the potential impact and the availability of a simple exploit make it a high-priority issue for systems that expose gpsprof or accept GPS data from untrusted sources.

Generated by OpenCVE AI on August 5, 2026 at 01:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade gpsd to version 3.27.6 or newer, which includes the commit that sanitizes the SKY.satellites[].used field.
  • If a newer binary cannot be installed immediately, apply the source patch from commit 4c06658 to the gpsprof code and rebuild the utility before use.
  • Until the patched version is available, run gpsprof under an unprivileged or sandboxed account, restrict GPS data sources to trusted devices or disable the gnuplot interface to avoid processing user-supplied plots.

Generated by OpenCVE AI on August 5, 2026 at 01:02 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

Mon, 27 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 27 Jul 2026 13:15:00 +0000

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

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Description gpsd through release-3.27.5, fixed at commit 4c06658, contains a code injection vulnerability in the gpsprof utility that allows an attacker who controls GPS input data to execute arbitrary OS commands by injecting malicious content into the SKY.satellites[].used field, which is inserted unsanitized into a gnuplot heredoc data block. Attackers can supply a used value containing the string EOD to terminate the heredoc early and append gnuplot system() calls, achieving OS command execution as the user running gpsprof when the generated plot script is processed by gnuplot in polar mode.
Title gpsd gpsprof Code Injection via SKY.satellites used Field
Weaknesses CWE-94
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.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/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:51.071Z

Reserved: 2026-07-08T13:27:53.031Z

Link: CVE-2026-60122

cve-icon Vulnrichment

Updated: 2026-07-27T16:14:50.688Z

cve-icon NVD

Status : Deferred

Published: 2026-07-23T20:17:09.207

Modified: 2026-07-30T20:04:51.110

Link: CVE-2026-60122

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T01:15:03Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')