<?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/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cve-2023-25345 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cve-2023-25345/</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, 18 Aug 2026 21:00:02 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cve-2023-25345/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Path Traversal in @rhinostone/swig Template Engine</title><link>https://feed.craftedsignal.io/briefs/2026-08-rhinostone-swig-traversal/</link><pubDate>Tue, 18 Aug 2026 21:00:02 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-rhinostone-swig-traversal/</guid><description>The @rhinostone/swig template engine (CVE-2023-25345) contains a path traversal vulnerability in its filesystem loader, allowing unauthenticated attackers to read arbitrary local files via include or extends tags.</description><content:encoded><![CDATA[<p>The <code>@rhinostone/swig</code> package, a maintained fork of the legacy <code>swig</code> template engine, inherits a path traversal vulnerability originally documented as CVE-2023-25345. The vulnerability manifests within the filesystem loader's handling of <code>{% include %}</code>, <code>{% extends %}</code>, and <code>{% import %}</code> tags. When processing these tags, the engine fails to validate that the requested template path remains within the defined template root directory.</p>
<p>An attacker who can influence the path string, either through application logic that maps user-supplied data to template variables or by exploiting direct template manipulation, can insert traversal sequences like <code>../</code> to escape the root directory. This allows the reading of sensitive host files, such as <code>/etc/passwd</code> or application configuration files, which are subsequently returned in the rendered HTTP response. The flaw affects the primary <code>@rhinostone/swig</code> package and its core loader component, as well as several derivative engines including <code>swig-twig</code>, <code>swig-jinja2</code>, and <code>swig-django</code>.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in arbitrary local file disclosure. Depending on the server's permissions, this enables the exfiltration of critical information including application source code, database credentials, environment variables, and system-level configuration files. The impact is primarily on the confidentiality of the application and the host server.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritized actions for security teams:</p>
<ul>
<li>Immediately update <code>@rhinostone/swig</code> and related packages to version <code>2.7.2</code> or later to mitigate CVE-2023-25345 while avoiding the regression introduced in <code>2.7.1</code>.</li>
<li>Audit application code for any instances where user-supplied input is directly passed as a variable into template include/extends tags.</li>
<li>Configure the filesystem loader with an explicit and restrictive basepath if an immediate update is not feasible.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>directory-traversal</category><category>arbitrary-file-read</category><category>template-injection</category><category>cve-2023-25345</category></item></channel></rss>