<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Thu, 08 Oct 2026 09:20:37 +0000</lastBuildDate>
    <item>
      <title>GHSA-479m-364c-43vc — validateSignature Loop Variable Capture Signature Bypass in goxmldsig</title>
      <link>https://cve.radiocsirt.org/vuln/ghsa-479m-364c-43vc</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: github.com/russellhaering/goxmldsig&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The `validateSignature` function in `validate.go` goes through the references in the `SignedInfo` block to find one that matches the signed element&amp;#39;s ID. In Go versions before 1.22, or when `go.mod` uses an older version, there is a loop variable capture issue. The code takes the address of the loop variable `_ref` instead of its value. As a result, if more than one reference matches the ID or if the loop logic is incorrect, the `ref` pointer will always end up pointing to the last element in the `SignedInfo.References` slice after the loop.&lt;/p&gt;
&lt;p&gt;------&lt;/p&gt;
&lt;p&gt;### Technical Details&lt;/p&gt;
&lt;p&gt;The code takes the address of a loop iteration variable (&amp;amp;_ref). In the standard Go compiler, this variable is only allocated once for the whole loop, so its address stays the same, but its value changes with each iteration.&lt;/p&gt;
&lt;p&gt;As a result, any pointer to this variable will always point to the value of the *last* element processed by the loop, no matter which element matched the search criteria.&lt;/p&gt;
&lt;p&gt;Using Radare2, I found that the assembly at 0x1001c5908 (the start of the loop) loads the iteration values but does not create a new allocation (runtime.newobject) for the variable _ref inside the loop. The address &amp;amp;_ref stays the same during the loop (due to stack or heap slot reuse), which confirms the pointer aliasing issue.&lt;/p&gt;
&lt;p&gt;```````go
// goxmldsig/validate.go (Lines 309-313)	
for _, _ref := range signedInfo.References {
		if _ref.URI == &amp;#34;&amp;#34; || _ref.URI[1:] == idAttr {
			ref = &amp;amp;_ref // &amp;lt;- Capture var…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: github.com/russellhaering/goxmldsig&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The `validateSignature` function in `validate.go` goes through the references in the `SignedInfo` block to find one that matches the signed element&amp;#39;s ID. In Go versions before 1.22, or when `go.mod` uses an older version, there is a loop variable capture issue. The code takes the address of the loop variable `_ref` instead of its value. As a result, if more than one reference matches the ID or if the loop logic is incorrect, the `ref` pointer will always end up pointing to the last element in the `SignedInfo.References` slice after the loop.&lt;/p&gt;
&lt;p&gt;------&lt;/p&gt;
&lt;p&gt;### Technical Details&lt;/p&gt;
&lt;p&gt;The code takes the address of a loop iteration variable (&amp;amp;_ref). In the standard Go compiler, this variable is only allocated once for the whole loop, so its address stays the same, but its value changes with each iteration.&lt;/p&gt;
&lt;p&gt;As a result, any pointer to this variable will always point to the value of the *last* element processed by the loop, no matter which element matched the search criteria.&lt;/p&gt;
&lt;p&gt;Using Radare2, I found that the assembly at 0x1001c5908 (the start of the loop) loads the iteration values but does not create a new allocation (runtime.newobject) for the variable _ref inside the loop. The address &amp;amp;_ref stays the same during the loop (due to stack or heap slot reuse), which confirms the pointer aliasing issue.&lt;/p&gt;
&lt;p&gt;```````go
// goxmldsig/validate.go (Lines 309-313)	
for _, _ref := range signedInfo.References {
		if _ref.URI == &amp;#34;&amp;#34; || _ref.URI[1:] == idAttr {
			ref = &amp;amp;_ref // &amp;lt;- Capture var…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/ghsa-479m-364c-43vc</guid>
    </item>
  </channel>
</rss>
