Skip to content
Noroxi
CVE-2024-45409· NVD / CVE Program· CNA GitHub_M

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

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.

CriticalCVSS 9.8 · v3.1—Proof of concept Fix available
Published
Sep 10, 2024
Updated
Jun 17, 2026
EPSS
10.7% · 96th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

42

Plan

Add it to your regular patch cycle.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
3 / 30 · 10.7%

CISA SSVC decision

Exploitation
proof of concept
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
9.8
CNA · GitHub_M
10.0
0.2 point gap

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
oneloginruby-saml
omniauthomniauth saml
gitlabgitlab

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • gitlab gitlab17.3.0 and later · before 17.3.3
  • gitlab gitlabbefore 16.11.10
  • gitlab gitlab17.0.0 and later · before 17.0.8
  • gitlab gitlab17.1.0 and later · before 17.1.8
  • gitlab gitlab17.2.0 and later · before 17.2.7
  • omniauth omniauth samlup to 1.10.3 inclusive
  • omniauth omniauth saml2.0.0
  • omniauth omniauth saml2.1.0
  • onelogin ruby-samlbefore 1.12.3
  • onelogin ruby-saml1.13.0 and later · before 1.17.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • SAML-Toolkits ruby-saml

    • < 1.12.3, >= 1.13.0, < 1.17.0affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:11ruby-samlbefore 1.11.0-1+deb11u11.11.0-1+deb11u1
Debian:12ruby-samlbefore 1.13.0-1+deb12u11.13.0-1+deb12u1
RubyGemsomniauth-samlfrom 2.0.0 · before 2.1.22.1.2
RubyGemsomniauth-samlfrom 2.2.0 · before 2.2.12.2.1
RubyGemsomniauth-samlbefore 1.10.51.10.5
RubyGemsruby-samlfrom 1.13.0 · before 1.17.01.17.0
RubyGemsruby-samlbefore 1.12.31.12.3

Other highest-scoring records for the same primary product.

  • CVE-2017-11428Multiple SAML libraries may allow authentication bypass via incorrect XML canonicalization and DOM traversal
    40Plan
  • CVE-2015-20108xml_security.rb in the ruby-saml gem before 1.0.0 for Ruby allows XPath injection and code execution because prepared statements are not use
    39Monitor
  • CVE-2025-66568ruby-saml Libxml2 Canonicalization errors can bypass Digest/Signature validation
    37Monitor
  • CVE-2025-66567ruby-saml has a SAML authentication bypass due to namespace handling (parser differential)
    37Monitor
  • CVE-2016-5697Ruby-saml before 1.3.0 allows attackers to perform XML signature wrapping attacks via unspecified vectors.
    30Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
SAML-Toolkits ruby-saml1.17.0 · descriptionVendor (CNA)
Debian:ruby-saml1.13.0-1+deb12u1 · Debian:12Package registry (OSV)
RubyGems:omniauth-saml1.10.5Package registry (OSV)
RubyGems:omniauth-saml2.1.2Package registry (OSV)
RubyGems:omniauth-saml2.2.1Package registry (OSV)
RubyGems:ruby-saml1.12.3Package registry (OSV)
RubyGems:ruby-saml1.17.0Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Nuclei detection template ×1
  • Proof-of-concept repository on GitHub ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Nuclei detection templateNuclei template CVE-2024-45409 —
Proof-of-concept repository on GitHubstars:852024-10-07

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+26 d
  3. TodaySep 29, 2026+749 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2025-66567455 days apartruby-saml has a SAML authentication bypass due to namespace handling (parser differential)
    37Monitor
  • CVE-2025-66568455 days apartruby-saml Libxml2 Canonicalization errors can bypass Digest/Signature validation
    37Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Root cause

The verifier takes the algorithm to verify with from the token’s own header. Untrusted data ends up deciding its own verification rule.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const claims = jwt.verify(token, publicKey);

Fixed

ts
const claims = jwt.verify(token, publicKey, {  algorithms: ["RS256"],  issuer: "https://id.example.com",  audience: "portal",});

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records