<?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>Go-Git — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/go-git/</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, 28 May 2026 07:25:12 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/go-git/feed.xml" rel="self" type="application/rss+xml"/><item><title>CVE-2026-45571 go-git Crafted Repositories Modify .git Directories</title><link>https://feed.craftedsignal.io/briefs/2026-05-go-git-dir-mod/</link><pubDate>Thu, 28 May 2026 07:25:12 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-go-git-dir-mod/</guid><description>CVE-2026-45571 is a vulnerability in go-git that allows crafted repositories to modify main and submodule .git directories, potentially leading to arbitrary code execution or information disclosure.</description><content:encoded><![CDATA[<p>CVE-2026-45571 is a critical vulnerability affecting the go-git library, a popular Go implementation of Git. This flaw allows a malicious actor to craft a Git repository that, when processed by a vulnerable application using go-git, can modify the <code>.git</code> directories of both the main repository and its submodules. This modification could be leveraged to overwrite configuration files, inject malicious Git hooks, or otherwise compromise the integrity of the repository and the system on which it resides. Successful exploitation could lead to arbitrary code execution or sensitive information disclosure. Defenders should prioritize identifying and mitigating applications utilizing vulnerable versions of go-git.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious Git repository containing specially crafted files or symbolic links designed to manipulate <code>.git</code> directories.</li>
<li>A user or automated system clones or interacts with the malicious repository using a vulnerable version of go-git.</li>
<li>The vulnerable go-git library processes the malicious repository content without proper validation or sanitization.</li>
<li>The crafted content overwrites or modifies configuration files within the main repository&rsquo;s <code>.git</code> directory.</li>
<li>The crafted content also propagates to any submodules present, modifying their respective <code>.git</code> directories.</li>
<li>The modification of <code>.git</code> directories allows the attacker to inject malicious Git hooks (e.g., pre-commit, post-receive).</li>
<li>When a user performs Git operations (e.g., commit, push, pull), the injected malicious hooks are executed.</li>
<li>The malicious hooks execute arbitrary code, potentially leading to complete system compromise or data exfiltration.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-45571 can have severe consequences. An attacker could gain arbitrary code execution on systems using vulnerable versions of go-git. This could lead to data breaches, system compromise, and denial-of-service attacks. The vulnerability poses a significant risk to organizations that rely on go-git for managing source code, configuration files, or other sensitive data within Git repositories. The lack of specific victim count data makes assessing the total impact difficult, but the wide usage of go-git implies a potentially broad attack surface.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade go-git to a patched version that addresses CVE-2026-45571.</li>
<li>Implement the Sigma rule &ldquo;Detect Go-Git .git Directory Modification&rdquo; to detect potential exploitation attempts in real-time.</li>
<li>Review and audit existing Git repositories for suspicious files or symbolic links that could be used to exploit this vulnerability.</li>
<li>Monitor file system events within <code>.git</code> directories using the Sigma rule &ldquo;Detect Git Hook Creation in .git Directory&rdquo; to identify unauthorized modifications.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>cve</category><category>go-git</category><category>git</category><category>directory modification</category><category>code execution</category></item><item><title>go-git Improper Parsing of Malformed Git Objects</title><link>https://feed.craftedsignal.io/briefs/2026-05-go-git-parsing-vulnerability/</link><pubDate>Mon, 11 May 2026 14:48:49 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-go-git-parsing-vulnerability/</guid><description>go-git may parse malformed Git objects differently than upstream Git, leading to inconsistent interpretation and potentially allowing the signing or verification of commits with altered metadata, as described in CVE-2026-45022.</description><content:encoded><![CDATA[<p>The <code>go-git</code> library, a Git implementation written in Go, is vulnerable to improper parsing of specially crafted Git objects. Specifically, when <code>commit</code> or <code>tag</code> objects contain ambiguous or malformed headers, <code>go-git</code> may expose values differently from how Git itself would interpret or reject the same object. The vulnerability also affects commit signing and verification logic, potentially leading to the acceptance of signatures for commits whose displayed metadata differs from the original signed object. This issue impacts <code>go-git/go-git/v6</code> versions from 6.0.0-alpha.1 to 6.0.0-alpha.2 and <code>go-git/go-git/v5</code> versions prior to 5.19.0. This vulnerability matters because it can lead to security bypasses where a user trusts a commit that has been altered, leading to supply chain attacks or other forms of code compromise. The CVE associated with this vulnerability is CVE-2026-45022.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious Git repository containing a <code>commit</code> or <code>tag</code> object with malformed headers.</li>
<li>The malformed object is designed to exploit the parsing differences between <code>go-git</code> and upstream Git.</li>
<li>A user or system clones or fetches the malicious repository using a vulnerable version of <code>go-git</code>.</li>
<li><code>go-git</code> parses the malformed object, leading to an inconsistent internal representation of the commit or tag.</li>
<li>If commit signing or verification is performed, <code>go-git</code> operates on the reconstructed data.</li>
<li>The signing process uses the altered commit payload, resulting in a signature that doesn&rsquo;t match the original object.</li>
<li>During verification, <code>go-git</code> might accept a signature for a commit whose metadata differs from the intended signed version.</li>
<li>The user trusts the commit based on the seemingly valid signature, potentially introducing malicious code or configuration.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The vulnerability in <code>go-git</code> could lead to the acceptance of malicious code into a project, even if it is signed. This can occur because <code>go-git</code> may incorrectly verify a commit signature due to parsing differences. The number of victims is potentially large, as <code>go-git</code> is a widely used library in the Go ecosystem. Targeted sectors include software development, DevOps, and any industry relying on Git for version control and software distribution. A successful attack could compromise software integrity, leading to supply chain attacks and data breaches.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to <code>go-git/go-git/v5</code> version 5.19.0 or later to address CVE-2026-45022.</li>
<li>If using <code>go-git/go-git/v6</code>, avoid versions between 6.0.0-alpha.1 and 6.0.0-alpha.2.</li>
<li>Implement integrity checks on Git objects to detect inconsistencies between <code>go-git</code>&rsquo;s representation and the actual object data.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>vulnerability</category><category>git</category><category>go</category><category>supply chain</category></item><item><title>go-git Improper Parsing of Malformed Git Objects</title><link>https://feed.craftedsignal.io/briefs/2026-05-go-git-parsing-vulnerability/</link><pubDate>Mon, 11 May 2026 14:48:49 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-go-git-parsing-vulnerability/</guid><description>go-git may parse malformed Git objects differently than upstream Git, leading to inconsistent interpretation and potentially allowing the signing or verification of commits with altered metadata, as described in CVE-2026-45022.</description><content:encoded><![CDATA[<p>The <code>go-git</code> library, a Git implementation written in Go, is vulnerable to improper parsing of specially crafted Git objects. Specifically, when <code>commit</code> or <code>tag</code> objects contain ambiguous or malformed headers, <code>go-git</code> may expose values differently from how Git itself would interpret or reject the same object. The vulnerability also affects commit signing and verification logic, potentially leading to the acceptance of signatures for commits whose displayed metadata differs from the original signed object. This issue impacts <code>go-git/go-git/v6</code> versions from 6.0.0-alpha.1 to 6.0.0-alpha.2 and <code>go-git/go-git/v5</code> versions prior to 5.19.0. This vulnerability matters because it can lead to security bypasses where a user trusts a commit that has been altered, leading to supply chain attacks or other forms of code compromise. The CVE associated with this vulnerability is CVE-2026-45022.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious Git repository containing a <code>commit</code> or <code>tag</code> object with malformed headers.</li>
<li>The malformed object is designed to exploit the parsing differences between <code>go-git</code> and upstream Git.</li>
<li>A user or system clones or fetches the malicious repository using a vulnerable version of <code>go-git</code>.</li>
<li><code>go-git</code> parses the malformed object, leading to an inconsistent internal representation of the commit or tag.</li>
<li>If commit signing or verification is performed, <code>go-git</code> operates on the reconstructed data.</li>
<li>The signing process uses the altered commit payload, resulting in a signature that doesn&rsquo;t match the original object.</li>
<li>During verification, <code>go-git</code> might accept a signature for a commit whose metadata differs from the intended signed version.</li>
<li>The user trusts the commit based on the seemingly valid signature, potentially introducing malicious code or configuration.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The vulnerability in <code>go-git</code> could lead to the acceptance of malicious code into a project, even if it is signed. This can occur because <code>go-git</code> may incorrectly verify a commit signature due to parsing differences. The number of victims is potentially large, as <code>go-git</code> is a widely used library in the Go ecosystem. Targeted sectors include software development, DevOps, and any industry relying on Git for version control and software distribution. A successful attack could compromise software integrity, leading to supply chain attacks and data breaches.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to <code>go-git/go-git/v5</code> version 5.19.0 or later to address CVE-2026-45022.</li>
<li>If using <code>go-git/go-git/v6</code>, avoid versions between 6.0.0-alpha.1 and 6.0.0-alpha.2.</li>
<li>Implement integrity checks on Git objects to detect inconsistencies between <code>go-git</code>&rsquo;s representation and the actual object data.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>vulnerability</category><category>git</category><category>go</category><category>supply chain</category></item></channel></rss>