<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Gnuplot - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/gnuplot/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 23 Jul 2026 20:19:48 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/gnuplot/feed.xml" rel="self" type="application/rss+xml"/><item><title>GPSD Code Injection Vulnerability in gpsprof (CVE-2026-60122)</title><link>https://feed.craftedsignal.io/briefs/2026-07-gpsd-code-injection/</link><pubDate>Thu, 23 Jul 2026 20:19:48 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-gpsd-code-injection/</guid><description>A high-severity code injection vulnerability, CVE-2026-60122, exists in the gpsprof utility of gpsd through version 3.27.5, allowing an attacker to achieve arbitrary OS command execution by injecting malicious content into GPS input data processed by gnuplot.</description><content:encoded><![CDATA[<p>A significant code injection vulnerability, identified as CVE-2026-60122, has been discovered in the <code>gpsprof</code> utility within the <code>gpsd</code> project, affecting versions up to 3.27.5. This flaw enables a malicious actor, capable of controlling the input GPS data, to execute arbitrary operating system commands. The vulnerability stems from <code>gpsprof</code> unsafely incorporating attacker-controlled content into a <code>gnuplot</code> heredoc data block. Specifically, by injecting the string &quot;EOD&quot; into the <code>SKY.satellites[].used</code> field, attackers can prematurely terminate the heredoc and append <code>gnuplot system()</code> calls. These injected commands are then executed by <code>gnuplot</code> when it processes the generated plot script in polar mode, running with the privileges of the user who initiated <code>gpsprof</code>. This could lead to full system compromise or data exfiltration on affected Linux and macOS systems.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker prepares malicious GPS input data.</li>
<li>The attacker injects specific malicious content into the <code>SKY.satellites[].used</code> field of the GPS input data.</li>
<li>The injected content includes the string &quot;EOD&quot; to prematurely terminate a <code>gnuplot</code> heredoc block.</li>
<li>The attacker appends <code>gnuplot system()</code> calls containing desired OS commands immediately after the &quot;EOD&quot; string.</li>
<li>A legitimate user executes the <code>gpsprof</code> utility to process the attacker-controlled GPS input data.</li>
<li><code>gpsprof</code> generates a <code>gnuplot</code> script, incorporating the unsanitized malicious content and <code>system()</code> calls into it.</li>
<li><code>gpsprof</code> invokes <code>gnuplot</code> to execute the generated script in polar mode.</li>
<li><code>gnuplot</code> processes the script, encounters the <code>system()</code> calls, and executes the arbitrary OS commands with the privileges of the user running <code>gpsprof</code>.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-60122 allows for arbitrary OS command execution on the system where <code>gpsprof</code> is run. This grants the attacker the ability to take control of the affected system, potentially leading to unauthorized data access, modification, or deletion, installation of further malicious software, or lateral movement within the network. The impact is direct system compromise as the user running the <code>gpsprof</code> utility. While no specific victim counts are available, any system running the vulnerable versions of <code>gpsd</code> with <code>gpsprof</code> exposed to untrusted GPS data is at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-60122 immediately by upgrading <code>gpsd</code> to a version beyond 3.27.5 or applying commit 4c06658.</li>
<li>Deploy the Sigma rule &quot;Detect Gnuplot Spawning Suspicious Child Processes&quot; to your SIEM to identify <code>gnuplot</code> initiating unexpected shell processes, which is a strong indicator of exploitation.</li>
<li>Enable process creation logging for <code>gnuplot</code> and <code>gpsprof</code> on Linux and macOS systems to ensure the detection rule has the necessary telemetry.</li>
<li>Review execution logs for <code>gpsprof</code> and <code>gnuplot</code> processes for any unusual arguments or child processes.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>code-injection</category><category>command-injection</category><category>gpsd</category><category>gnuplot</category><category>linux</category><category>macos</category><category>privilege-escalation</category></item></channel></rss>