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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2024-09-1018:50CVE publishedCNA
- 2024-09-1019:15CVE publishedNVD
Versions per branch
NVD · OSV · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 17.3 | ≥ 17.3.0, < 17.3.3 | 17.3.3 | NVD · OSV |
| 17.2 | ≥ 17.2.0, < 17.2.7 | 17.2.7 | NVD · OSV |
| 17.1 | ≥ 17.1.0, < 17.1.8 | 17.1.8 | NVD · OSV |
| 17.0 | ≥ 17.0.0, < 17.0.8 | 17.0.8 | NVD · OSV |
| 16.11 | < 16.11.10 | 16.11.10 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.10 | ≤ 1.10.3 | no fix published | NVD |
| 2.0 | = 2.0.0 | no fix published | NVD |
| 2.1 | = 2.1.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.x | ≥ 1.13.0, < 1.17.0 | 1.17.0 | NVD · CISA-ADP · OSV |
| 1.12 | < 1.12.3 | 1.12.3 | NVD · CISA-ADP · OSV |
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-samlAffected
- = < 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
Fix
- Update GitLab to 17.3.3 · 17.2.7 · 17.1.8 · 17.0.8 · 16.11.10
Advisories and patches
- github.comPatch
- github.comPatch
- github.comVendor Advisory
- github.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-10-16
- PoC-in-GitHub2 repositories, unverifiedknown since 2026-11-01synacktiv/CVE-2024-45409barkotenicholas/CVE-2024-45409
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-10-16
- CNACVSS 3.1102024-09-11
- NVDCVSS 3.19.8read 2026-11-04
- CNAweakness (CWE)CWE-3472024-09-11
- FIRST EPSSEPSS score12.5 %read 2026-11-18
- PoC-in-GitHubproof of concept2known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2024-09-10
Identifiers
- BIT-gitlab-2024-45409same flawBitnami · Apache-2.0
- EUVD-2024-2828same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-jw9c-mfg7-9rx2same flawGitHub Advisory Database · CC-BY-4.0
- DLA-3949-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5774-1advisory covering several CVEsDebian · LicenseRef-unstated
- USN-7309-1advisory covering several CVEsUbuntu
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?
Is CVE-2024-45409 actively exploited?
What is the CVSS score for CVE-2024-45409?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-jw9c-mfg7-9rx2
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- CISA Vulnrichment · CC0-1.0