{"id":"CVE-2026-33487","published":"2026-03-26T17:17:51Z","modified":"2026-09-09T12:05:00Z","title":"goxmldsig has validateSignature Loop Variable Capture Signature Bypass","vendor":"russellhaering","product":"goxmldsig","tier":"tail","description":{"text":"goxmlsig provides XML Digital Signatures implemented in Go. Prior to version 1.6.0, 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. goxmlsig version 1.6.0 contains a patch.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00363,"percentile":0.30757,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"},{"id":"CWE-682","name":"Incorrect Calculation"}],"references":[{"url":"https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-479m-364c-43vc","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-33487","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2451814","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33487.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22423","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22347","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23345","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:36882","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:13548","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:20946","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:20943","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21769","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":6.15},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"russellhaering","affectedVersions":[{"vendor":"russellhaering","product":"goxmldsig","versions":["< 1.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-30T11:16:13.379400Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","vulnerableRanges":["<1.6.0"],"patched":["1.6.0"],"from":["GHSA-479m-364c-43vc","GO-2026-4753"],"provenance":"source"}],"summary":{"text":"The goxmldsig library (vendor russellhaering) has a flaw in its validateSignature function in validate.go, which walks the SignedInfo references to match the signed element's ID. In Go versions before 1.22, or when go.mod pins an older version, a loop variable is captured by address rather than value, so the reference pointer can end up pointing at the last element of the References slice when multiple references match the ID or the loop logic is wrong.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:55Z"},"euvd":{"id":"EUVD-2026-16281","exploited":false,"provenance":"source"}}