CVE-2026-60122

gpsd gpsprof Code Injection via SKY.satellites used Field

Published Jul 23, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Gpsd
Gpsd gpsd
Vendors & Products Gpsd
Gpsd gpsd
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'}

Weaknesses
  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:49 AM
Reserved
Jul 8, 2026, 1:27 PM
Status
Deferred
Published
Jul 23, 2026, 8:17 PM
Modified
Jul 30, 2026, 8:04 PM