Skip to main content
Public proof of conceptFix available

CVE-2024-45409

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

A public proof of concept exists; no exploitation attested.

  • Published2024-09-10
  • Fixed in17.3.3 · 17.2.7 · 17.1.8 · 17.0.8 · 16.11.10
  • WeaknessCWE-347

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-09-1018:50CVE publishedCNA
  2. 2024-09-1019:15CVE publishedNVD

Versions per branch

NVD · OSV · CISA-ADP
GitLab
BranchAffectedFixed in
17.3≥ 17.3.0, < 17.3.317.3.3
17.2≥ 17.2.0, < 17.2.717.2.7
17.1≥ 17.1.0, < 17.1.817.1.8
17.0≥ 17.0.0, < 17.0.817.0.8
16.11< 16.11.1016.11.10
Omniauth omniauth saml
BranchAffectedFixed in
1.10≤ 1.10.3no fix published
2.0= 2.0.0no fix published
2.1= 2.1.0no fix published
Onelogin ruby-saml
BranchAffectedFixed in
1.x≥ 1.13.0, < 1.17.01.17.0
1.12< 1.12.31.12.3

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • SAML-Toolkits ruby-saml
    Affected
    • = < 1.12.3no fix stated
    • = >= 1.13.0, < 1.17.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-09-11

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • ruby-samlUbuntu:Pro:18.04:LTSall versions · fixed in 1.7.2-1ubuntu0.1~esm1
  • ruby-samlUbuntu:Pro:16.04:LTSall versions · fixed in 1.1.2-1ubuntu1+esm1
  • ruby-samlUbuntu:24.04:LTSall versions · fixed in 1.15.0-1ubuntu0.24.04.1
  • ruby-samlUbuntu:22.04:LTSall versions · fixed in 1.13.0-1ubuntu0.1
  • ruby-samlUbuntu:20.04:LTSall versions · fixed in 1.11.0-1ubuntu0.1
  • ruby-samlDebian:12all versions · fixed in 1.13.0-1+deb12u1
  • ruby-samlDebian:11all versions · fixed in 1.11.0-1+deb11u1

Full record on NVD

Fix

  1. Update GitLab to 17.3.3 · 17.2.7 · 17.1.8 · 17.0.8 · 16.11.10

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2024-09-10
Last Modified
2026-11-04
NVD status
Modified
GitHub Advisory
GHSA-jw9c-mfg7-9rx2

Frequently asked questions

What is CVE-2024-45409?

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.

Is CVE-2024-45409 actively exploited?

A proof-of-concept exploit exists for CVE-2024-45409, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-45409?

CVE-2024-45409 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running ruby-saml? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record