Service crash via nil parent dereference
Published Apr 30, 2021 · Updated Sep 17, 2024
NULL pointer dereference in gosaml2 before 0.7.0 allows remote attackers to crash SAML-consuming services with malformed XML signatures. In validateAssertionSignatures, malformed assertion structure can leave an unverified Assertion without a parent, but the error path dereferences Parent().Tag. A network-reachable application must pass attacker-controlled SAML response data into RetrieveAssertionInfo; the resulting panic interrupts that process unless recovered.
Summary
What happened
NULL pointer dereference in gosaml2 before 0.7.0 allows remote attackers to crash SAML-consuming services with malformed XML signatures. In validateAssertionSignatures, malformed assertion structure can leave an unverified Assertion without a parent, but the error path dereferences Parent().Tag. A network-reachable application must pass attacker-controlled SAML response data into RetrieveAssertionInfo; the resulting panic interrupts that process unless recovered.
The record
- CVE
- CVE-2020-7731
- Published
- Apr 30, 2021
- Updated
- Sep 17, 2024
- Vendor
- Russell Haering
- Product
- gosaml2
- Classifications
- CWE-476, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 30, 2021CVE publishedPublication date reported by the CVE source.
- Sep 17, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <unspecified
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Malformed SAML assertion crash reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo