Skip to content
OpenAdvisories
Critical · 10.0 Public exploit CVE-2024-45409 BIT-gitlab-2024-45409EUVD-2024-2828GHSA-jw9c-mfg7-9rx2

The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector

Published Sep 10, 2024 · Updated Nov 4, 2026 · Assigned by GitHub_M

Description

The Ruby SAML library is for implementing the client side of a SAML authorization. Ruby-SAML in <= 12.2 and 1.13.0 <= 1.16.0 does not properly verify the signature of the SAML Response. An unauthenticated attacker with access to any signed saml document (by the IdP) can thus forge a SAML Response/Assertion with arbitrary contents. This would allow the attacker to log in as arbitrary user within the vulnerable system. This vulnerability is fixed in 1.17.0 and 1.12.3.

Affected products

VendorProductAffectedFixed
SAML-Toolkits ruby-saml < 1.12.3, >= 1.13.0, < 1.17.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 ruby-saml 1.13.0-1+deb12u1 DSA-5774-1
Debian 11 ruby-saml 1.11.0-1+deb11u1 DLA-3949-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS ruby-saml 1.15.0-1ubuntu0.24.04.1 USN-7309-1
Ubuntu 22.04 LTS ruby-saml 1.13.0-1ubuntu0.1 USN-7309-1
Ubuntu 20.04 LTS ruby-saml 1.11.0-1ubuntu0.1 USN-7309-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS ruby-saml 1.7.2-1ubuntu0.1~esm1 USN-7309-1
Ubuntu Pro 16.04 LTS ruby-saml 1.1.2-1ubuntu1+esm1 USN-7309-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems ruby-saml < 1.12.3 1.12.3 GHSA-jw9c-mfg7-9rx2
RubyGems ruby-saml >= 1.13.0, < 1.17.0 1.17.0 GHSA-jw9c-mfg7-9rx2

Advisories 5

References