CVE-2024-45409: The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector

CVE-2024-45409 affects 5 listed versions of GitLab in the Dawnsentry catalogue.

9.8CVSS critical
Proof of concept publicexploitation
12%EPSS (next 30 days)
10 September 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

GitLab

5 of 250 listed versions are affected. Fixed in 17.3.3, 17.2.7. The newest release, 19.6.2, is not affected.

17.3.2 17.3.1 17.3.0 17.2.6 17.2.5

What it is

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.

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

Published by GitHub on 10 September 2024. Last changed 4 November 2026.

Sources

Check one version you run: look CVE-2024-45409 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.