Authentication Bypass in ruby-saml
CVE-2025-25291

9.3CRITICAL

Key Information:

Status
Vendor
CVE Published:
12 March 2025

Badges

πŸ“ˆ TrendedπŸ“ˆ Score: 1,340πŸ“° News Worthy

Key facts: CVE-2025-25291 is a critical severity (CVSS 9.3) vulnerability in Saml-toolkits ruby-saml. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 7.2%, the estimated probability of exploitation in the next 30 days. Fixed in ruby-saml 1.12.4, 1.13.0, 1.18.0.

What is CVE-2025-25291?

CVE-2025-25291 is a vulnerability identified in the ruby-saml library, which is utilized for implementing SAML (Security Assertion Markup Language) single sign-on (SSO) functionalities in Ruby-based applications. This vulnerability allows attackers to bypass authentication mechanisms due to discrepancies in how different XML parsers interpret input data. If exploited, this could potentially allow unauthorized users to gain access to sensitive resources, undermining the security of organizations relying on ruby-saml for their authentication processes.

Technical Details

The vulnerability arises from a parser differential between the ReXML and Nokogiri libraries used within the ruby-saml framework. These parsers generate different document structures from the same XML input, which can lead to security lapses such as Signature Wrapping attacks. This weakens the authentication protocols, making it possible for attackers to manipulate SAML messages to bypass authentication controls. Versions prior to 1.12.4 and 1.18.0 are affected and have been addressed in subsequent releases.

Potential Impact of CVE-2025-25291

  1. Unauthorized Access: The primary risk associated with this vulnerability is the potential for unauthorized users to bypass authentication. This can lead to unauthorized access to systems and sensitive data, impacting organizational security significantly.

  2. Data Breaches: Exploiting this authentication bypass could facilitate data breaches, where attackers gain access to confidential information. This risk is particularly acute for organizations that handle sensitive customer data.

  3. Reputational Damage: The fallout from a successful exploitation could result in significant reputational harm to affected organizations. Trust is vital in maintaining customer relationships, and breaches arising from such vulnerabilities can lead to long-lasting impacts on brand integrity.

Affected Version(s)

ruby-saml < 1.12.4 < 1.12.4

ruby-saml >= 1.13.0, < 1.18.0 < 1.13.0, 1.18.0

News Articles

GitLab addressed critical auth bypass flaws in CE and EE)

GitLab addressed two critical authentication bypass vulnerabilities in Community Edition (CE) and Enterprise Edition (EE).

References

Browse all analysed vulnerabilities β€Ί

EPSS Score

7% chance of being exploited in the next 30 days.

CVSS V4

Score:
9.3
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • πŸ“ˆ

    Vulnerability started trending

  • πŸ“°

    First article discovered by Security Affairs

  • Vulnerability published

  • Vulnerability Reserved

.