CVE-2024-45409:
SAML authentication bypass via Incorrect XPath selector
10
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.94209%
CWE
Published
9/10/2024
Updated
9/16/2024
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ruby-saml | rubygems | < 1.12.3 | 1.12.3 |
ruby-saml | rubygems | >= 1.13.0, < 1.17.0 | 1.17.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper XPath selectors in signature validation logic. The commit diff shows critical changes in xml_security.rb's validate_signature method:
- Changed XPath from '//ds:Reference' to './ds:Reference' to scope selection
- Added check for duplicate IDs (reference_nodes.length > 1)
- Modified CanonicalizationMethod/DigestMethod XPaths to use relative paths These changes directly address the signature bypass by preventing attackers from injecting malicious elements with duplicate IDs through absolute XPath traversal, which aligns with CWE-347 (signature verification flaw) described in the advisory.