<?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>Eap-Sim — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/eap-sim/</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>Fri, 29 May 2026 06:21:15 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/eap-sim/feed.xml" rel="self" type="application/rss+xml"/><item><title>strongSwan 5.9.13 libsimaka EAP-SIM/AKA Heap Buffer Overflow Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2026-05-strongswan-heap-overflow/</link><pubDate>Fri, 29 May 2026 06:21:15 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-strongswan-heap-overflow/</guid><description>A remote exploit is available for strongSwan 5.9.13 exploiting a heap buffer overflow in the libsimaka EAP-SIM/AKA module (CVE-2026-35330), enabling pre-authentication exploitation via a malformed EAP-SIM/AKA payload.</description><content:encoded><![CDATA[<p>A public remote exploit has been released targeting strongSwan version 5.9.13, specifically exploiting a heap buffer overflow vulnerability (CVE-2026-35330) within the libsimaka EAP-SIM/AKA module. The vulnerability resides in the <code>parse_attributes()</code> function in <code>simaka_message.c</code>. This function calculates the attribute data length without validating against <code>hdr-&gt;length == 0</code>, leading to an integer underflow when <code>hdr-&gt;length</code> is 0. This results in a small memory allocation followed by an oversized <code>memcpy</code>, triggering a heap buffer overflow. The exploit, identified as EDB-52587, highlights the pre-authentication nature of the vulnerability, as the malicious payload is processed during IKE_AUTH before peer authentication is completed. This vulnerability poses a critical risk to systems running vulnerable strongSwan versions with the EAP-SIM or EAP-AKA plugin enabled.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker sends a malicious IKE_AUTH request to a vulnerable strongSwan server.</li>
<li>The request contains an EAP-SIM/AKA payload crafted to trigger the vulnerability.</li>
<li>The <code>simaka_message_create_from_payload()</code> function processes the received data.</li>
<li>Inside <code>parse_attributes()</code> in <code>simaka_message.c</code>, the code calculates the attribute data length using <code>hdr-&gt;length * 4 - 4</code>.</li>
<li>If <code>hdr-&gt;length</code> is 0, the calculation results in an integer underflow, leading to a large value being used for the size of the data to be copied.</li>
<li>The code allocates a small chunk of memory using <code>malloc(sizeof(attr_t) + data.len)</code>.</li>
<li>An oversized <code>memcpy</code> operation is performed, copying data beyond the allocated buffer, leading to a heap buffer overflow.</li>
<li>This overflow can lead to arbitrary code execution, potentially granting the attacker complete control of the system.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability (CVE-2026-35330) allows a remote, unauthenticated attacker to achieve arbitrary code execution on a vulnerable strongSwan server. Given that strongSwan is frequently used to establish VPN connections, successful exploitation could grant an attacker unauthorized access to internal networks and sensitive data. The Exploit-DB entry confirms the exploit&rsquo;s feasibility.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade strongSwan to a version patched against CVE-2026-35330. The fix is available in master &gt;= aa5aaebc33 as referenced in the Exploit-DB entry.</li>
<li>Deploy the Sigma rule &ldquo;Detect strongSwan libsimaka Heap Overflow Attempt&rdquo; to identify potential exploitation attempts by monitoring for EAP-SIM/AKA messages with a zero-length attribute, as described in the vulnerability details.</li>
<li>Apply input validation on EAP-SIM/AKA attribute lengths to prevent the integer underflow, addressing the root cause described in the exploit details.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>strongSwan</category><category>heap-overflow</category><category>eap-sim</category><category>eap-aka</category><category>CVE-2026-35330</category><category>exploit</category></item></channel></rss>