First published: Wed Mar 12 2025(Updated: )
### Summary An authentication bypass vulnerability was found in ruby-saml due to a parser differential. ReXML and Nokogiri parse XML differently, the parsers can generate entirely different document structures from the same XML input. That allows an attacker to be able to execute a Signature Wrapping attack. ### Impact This issue may lead to authentication bypass.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
ruby-saml | <1.12.4<1.18.0 | |
rubygems/ruby-saml | >=1.13.0<1.18.0 | 1.18.0 |
rubygems/ruby-saml | <1.12.4 | 1.12.4 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of CVE-2025-25291 is high due to the potential for authentication bypass.
To fix CVE-2025-25291, upgrade ruby-saml to versions 1.12.4 or 1.18.0 or later.
CVE-2025-25291 affects the ruby-saml library.
ruby-saml versions prior to 1.12.4 and between 1.13.0 and 1.18.0 are impacted by CVE-2025-25291.
CVE-2025-25291 exploits the difference in XML parsing between ReXML and Nokogiri, leading to different document structures.