<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-08T09:21:38.175276+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-479m-364c-43vc</id>
    <title>GHSA-479m-364c-43vc — validateSignature Loop Variable Capture Signature Bypass in goxmldsig</title>
    <updated>2026-10-08T09:21:38.176405+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: github.com/russellhaering/goxmldsig</p>
<p>### Details</p>
<p>The `validateSignature` function in `validate.go` goes through the references in the `SignedInfo` block to find one that matches the signed element'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.</p>
<p>------</p>
<p>### Technical Details</p>
<p>The code takes the address of a loop iteration variable (&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.</p>
<p>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.</p>
<p>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;_ref stays the same during the loop (due to stack or heap slot reuse), which confirms the pointer aliasing issue.</p>
<p>```````go
// goxmldsig/validate.go (Lines 309-313)	
for _, _ref := range signedInfo.References {
		if _ref.URI == "" || _ref.URI[1:] == idAttr {
			ref = &amp;_ref // &lt;- Capture var…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-479m-364c-43vc"/>
  </entry>
</feed>
