logo

CVE-2025-25291 ruby-saml

Package

Manager: gem
Name: ruby-saml
Vulnerable Version: >=0 <1.12.4 || >=1.13.0 <1.18.0

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:P/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

EPSS: 0.13868 pctl0.94062

Details

Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential) ### 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.

Metadata

Created: 2025-03-12T20:20:24Z
Modified: 2025-03-20T13:22:47Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-4vc4-m8qh-g8jm/GHSA-4vc4-m8qh-g8jm.json
CWE IDs: ["CWE-347", "CWE-436"]
Alternative ID: GHSA-4vc4-m8qh-g8jm
Finding: F204
Auto approve: 1