<?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>Arbitrary-Command-Execution - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/arbitrary-command-execution/</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>Tue, 28 Jul 2026 17:17:47 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/arbitrary-command-execution/feed.xml" rel="self" type="application/rss+xml"/><item><title>CVE-2026-16313: sg3_utils Vulnerability Allows Root Command Execution via Crafted SCSI Device</title><link>https://feed.craftedsignal.io/briefs/2026-07-cve-2026-16313-sg3-utils/</link><pubDate>Tue, 28 Jul 2026 17:17:47 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-cve-2026-16313-sg3-utils/</guid><description>A vulnerability, CVE-2026-16313, exists in the `sg_inq` command of `sg3_utils` on Red Hat Enterprise Linux systems, allowing an attacker who can present a specially crafted SCSI device to inject arbitrary properties into the `udev` device database by embedding a newline character in the device's name string, leading to arbitrary command execution as root when the device is disconnected.</description><content:encoded><![CDATA[<p>A significant vulnerability, identified as CVE-2026-16313, has been discovered in the <code>sg3_utils</code> package, specifically affecting the <code>sg_inq</code> command when used with the <code>--export</code> option. This flaw impacts Red Hat Enterprise Linux 7, 8, 9, and 10. The <code>sg_inq</code> command fails to sanitize control characters, such as newlines, present in SCSI device name string fields. An attacker can exploit this by crafting a malicious SCSI device with a name string containing newline characters and arbitrary <code>udev</code> properties. When this device is connected to a vulnerable system and the <code>sg_inq --export</code> command is executed against it, the unsanitized output can inject malicious configurations into the <code>udev</code> device database. Subsequently, upon disconnection of the crafted SCSI device, these injected <code>udev</code> rules can trigger arbitrary command execution with root privileges, posing a critical risk to system integrity and data confidentiality.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker prepares a physical or virtual SCSI device, embedding malicious <code>udev</code> properties and newline characters within its device identification name string.</li>
<li>The attacker connects the specially crafted SCSI device to a vulnerable Linux system, potentially via physical access or by compromising a virtual machine host to attach the device.</li>
<li>A user or an automated system with appropriate permissions executes the <code>sg_inq</code> command with the <code>--export</code> option, targeting the crafted SCSI device.</li>
<li>The <code>sg_inq</code> utility queries the device and retrieves its identification data, including the unsanitized malicious name string.</li>
<li>Due to the vulnerability (lack of sanitization), the newline characters and malicious <code>udev</code> properties from the device name are passed to the system's <code>udev</code> device database or related configuration files.</li>
<li>Upon the disconnection of the crafted SCSI device, the <code>udev</code> system processes the newly injected malicious rules.</li>
<li>These malicious <code>udev</code> rules are then executed, leading to arbitrary command execution.</li>
<li>The commands are executed with <code>root</code> privileges, allowing the attacker to gain full control over the compromised system.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-16313 leads to arbitrary command execution as <code>root</code> on affected Linux systems. This grants the attacker complete control over the compromised system, enabling them to install backdoors, exfiltrate sensitive data, disrupt operations, or establish persistence. The widespread use of <code>sg3_utils</code> in Linux environments means that many systems could be vulnerable if an attacker can present a crafted SCSI device and trigger the <code>sg_inq --export</code> command, which is often used for device inventory or debugging. This vulnerability could be particularly dangerous in environments with untrusted hardware connections or shared virtualized infrastructure.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-16313 by updating <code>sg3_utils</code> packages to fixed versions immediately on all Red Hat Enterprise Linux 7, 8, 9, and 10 systems.</li>
<li>Restrict physical access to systems to prevent attackers from connecting crafted SCSI devices.</li>
<li>Implement strong access controls and monitoring around the <code>sg_inq</code> command, especially when used with the <code>--export</code> option, to detect unusual or unauthorized execution.</li>
<li>Enable comprehensive logging for <code>udev</code> activities to identify anomalous rule injections or command executions originating from <code>udev</code> events.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>linux</category><category>vulnerability</category><category>privilege-escalation</category><category>arbitrary-command-execution</category></item></channel></rss>