VDB
Sign up
HIGH7.5

GO-2020-0046

Panic due to malformed XML digital signature in github.com/russellhaering/goxmldsig

Quick fix

GO-2020-0046 — github.com/russellhaering/goxmldsig: upgrade to the fixed version with the command below.

go get github.com/russellhaering/goxmldsig@v1.1.1

Details

Due to a nil pointer dereference, a malformed XML Digital Signature can cause a panic during validation. If user supplied signatures are being validated, this may be used as a denial of service vector.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/russellhaering/goxmldsig
Introduced in: 0Fixed in: 1.1.1
Fixgo get github.com/russellhaering/goxmldsig@v1.1.1
Go/github.com/russellhaering/gosaml2
Introduced in: 0Fixed in: 0.7.0
Fixgo get github.com/russellhaering/gosaml2@v0.7.0

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/github.com/russellhaering/goxmldsig"]}'