---
id: CVE-2026-33487
title: goxmlsig provides XML Digital Signatures implemented in Go
summary: >-
  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.…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'
cwe:
  - CWE-347
  - CWE-682
vendor: goxmldsig_project
product: goxmldsig
affected:
  - goxmldsig < 1.6.0
patched:
  - goxmldsig 1.6.0
published: '2026-03-26'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T13:19:24.923'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-33487'
references:
  - url: >-
      https://github.com/russellhaering/goxmldsig/security/advisories/GHSA-479m-364c-43vc
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:13548'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:20943'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:20946'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:21769'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:22347'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:22423'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:23345'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:36882'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-33487'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2451814'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33487.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-33487'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-33487'
  - url: 'https://github.com/russellhaering/goxmldsig'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
  - osv
  - go
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-03-30T11:16:13.379400Z'
epss: 0.00299
epssPercentile: 0.22775
ingestedAt: '2026-07-10T01:55:22.971Z'
aliases:
  - GHSA-479m-364c-43vc
  - GO-2026-4753
ecosystem: go
---

## Overview

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.

## Affected

- `goxmldsig < 1.6.0`

## Remediation

Upgrade past the affected range:

- `goxmldsig 1.6.0`

## Vendor advisories

- **RHSA-2026:22423** · Red Hat · fixed in: Multicluster Global Hub 1.3.4 · released 2026-06-02 · [advisory](https://access.redhat.com/errata/RHSA-2026:22423)
- **RHSA-2026:22347** · Red Hat · fixed in: Multicluster Global Hub 1.4.5 · released 2026-06-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:22347)
- **RHSA-2026:23345** · Red Hat · fixed in: Multicluster Global Hub 1.6.5 · released 2026-06-04 · [advisory](https://access.redhat.com/errata/RHSA-2026:23345)
- **RHSA-2026:36882** · Red Hat · fixed in: Red Hat Advanced Cluster Management for Kubernetes 2.14 · released 2026-07-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:36882)
- **RHSA-2026:13548** · Red Hat · fixed in: Red Hat Advanced Cluster Management for Kubernetes 2.15 · released 2026-05-04 · [advisory](https://access.redhat.com/errata/RHSA-2026:13548)
- **RHSA-2026:20946** · Red Hat · fixed in: Red Hat OpenShift GitOps 1.18 · released 2026-05-26 · [advisory](https://access.redhat.com/errata/RHSA-2026:20946)
- **RHSA-2026:20943** · Red Hat · fixed in: Red Hat OpenShift GitOps 1.19 · released 2026-05-26 · [advisory](https://access.redhat.com/errata/RHSA-2026:20943)
- **RHSA-2026:21769** · Red Hat · fixed in: Red Hat multicluster global hub 1.5.3 · released 2026-05-28 · [advisory](https://access.redhat.com/errata/RHSA-2026:21769)

## Package advisory (CVE-2026-33487)

Affected packages:

- `github.com/russellhaering/goxmldsig < 1.6.0`

Patched in:

- `github.com/russellhaering/goxmldsig 1.6.0`

Source: https://osv.dev/vulnerability/GHSA-479m-364c-43vc
