GO-2026-6909 Nil-pointer panic in validateAssertion and namespace-blind Subject.NameID in github.com/crewjam/saml
- Published
- Updated
- Exploit status
- No public exploit known
Description
github.com/crewjam/saml through v0.5.1 contains two vulnerabilities in SAML assertion processing:
-
ServiceProvider.validateAssertion dereferences assertion.Issuer without a nil check when ExpectedIDPEntityID is non-empty. A signed SAML assertion that omits the optional saml:Issuer element causes a nil-pointer dereference panic after signature verification.
-
Subject uses the bare XML struct tag xml:"NameID", which matches <NameID> elements in any XML namespace. When a signed assertion omits saml:NameID and includes a <NameID> element in a foreign namespace inside saml:Subject, encoding/xml populates Subject.NameID from the foreign element, allowing an authenticated principal to spoof Subject.NameID.Value.
Upgrade path
1 package: 0 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crewjam github.com/crewjam/saml(Go) | All versions | No fix listed | No fix yet |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crewjam github.com/crewjam/saml(Go) | All versions | No fix listed |
References
- github.com issue-tracking