{"answers":{"affected":"5 open source packages ship an affected version, including gitlab and ruby-saml. It affects 3 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45409 exists.","fix":"Upgrade gitlab to a fixed version for your release line: 16.11.10, 17.0.8, 17.1.8 or 17.2.7.","what":"CVE-2024-45409 is a critical authentication bypass vulnerability in Gitlab Gitlab, published on 10 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-45409 and fix it if it is affected.\n\nWhat it is: CVE-2024-45409 is a critical authentication bypass vulnerability in Gitlab Gitlab, published on 10 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45409 exists.\n\nAffected packages and fixed versions:\n- gitlab (Bitnami): affected all versions; fixed in 16.11.10, 17.0.8, 17.1.8, 17.2.7, 17.3.3\n- ruby-saml (RubyGems): affected all versions; fixed in 1.12.3\n- ruby-saml (RubyGems): affected all versions; fixed in 1.12.3\n- ruby-saml (RubyGems): affected from 1.13.0; fixed in 1.17.0\n- ruby-saml (RubyGems): affected from 1.13.0; fixed in 1.17.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-45409/ (Markdown: https://insights.sbomify.com/CVE-2024-45409/index.md)","id":"CVE-2024-45409","markdown":"https://insights.sbomify.com/CVE-2024-45409/index.md","name":"CVE-2024-45409","record":{"aliases":["BIT-gitlab-2024-45409","DEBIAN-CVE-2024-45409","DLA-3949-1","DSA-5774-1","GHSA-jw9c-mfg7-9rx2","UBUNTU-CVE-2024-45409"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby SAML library","requires_auth":"none","summary":"An unauthenticated attacker can forge SAML responses to log in as any user due to improper signature verification in the Ruby SAML library.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gitlab","vendor":"gitlab"},{"product":"omniauth_saml","vendor":"omniauth"},{"product":"ruby-saml","vendor":"onelogin"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"The Ruby SAML library is for implementing the client side of a SAML authorization. Ruby-SAML in \u003c= 12.2 and 1.13.0 \u003c= 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.","ecosystems":["Bitnami","RubyGems"],"exploits":{"exploitdb":0,"first_seen":"2024-10-07","github_poc":2,"max_poc_stars":86,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-10-07T09:24:46Z","kind":"github_poc","ref":"https://github.com/synacktiv/CVE-2024-45409","stars":86,"title":"Ruby-SAML / GitLab Authentication Bypass (CVE-2024-45409) exploit"},{"date":"2026-10-25T06:38:44Z","kind":"github_poc","ref":"https://github.com/barkotenicholas/CVE-2024-45409","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector","id":"CVE-2024-45409","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"gitlab:gitlab","products":["gitlab:gitlab"],"type":"auth_bypass","year":"2024"},"n_packages":5,"n_references":4,"next":{"headline":"HTTP client can remove the X-Forwarded headers in Traefik","id":"CVE-2024-45410"},"packages":[{"ecosystem":"Bitnami","fixed":["16.11.10","17.0.8","17.1.8","17.2.7","17.3.3"],"introduced":["0","17.0.0","17.1.0","17.2.0","17.3.0"],"last_affected":[],"package":"gitlab","purl":"pkg:bitnami/gitlab","source":"BIT-gitlab-2024-45409"},{"ecosystem":"RubyGems","fixed":["1.12.3"],"introduced":["0"],"last_affected":[],"package":"ruby-saml","purl":null,"source":"GHSA-jw9c-mfg7-9rx2"},{"ecosystem":"RubyGems","fixed":["1.12.3"],"introduced":["0"],"last_affected":[],"package":"ruby-saml","purl":"pkg:gem/ruby-saml","source":"GHSA-jw9c-mfg7-9rx2"},{"ecosystem":"RubyGems","fixed":["1.17.0"],"introduced":["1.13.0"],"last_affected":[],"package":"ruby-saml","purl":null,"source":"GHSA-jw9c-mfg7-9rx2"},{"ecosystem":"RubyGems","fixed":["1.17.0"],"introduced":["1.13.0"],"last_affected":[],"package":"ruby-saml","purl":"pkg:gem/ruby-saml","source":"GHSA-jw9c-mfg7-9rx2"}],"prev":{"headline":"eLabFTW contains a direct and indirect information disclosure","id":"CVE-2024-45408"},"products":["ruby-saml"],"published":"2024-09-10","related":[{"cvss_score":10,"headline":"GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound","id":"CVE-2026-97229","kev_date_added":"2026-10-29","published":"2026-10-13"},{"cvss_score":10,"headline":"GitLab Community Edition and Enterprise Edition Path Traversal","id":"CVE-2026-85706","kev_date_added":"2026-09-11","published":"2026-09-12"},{"cvss_score":10,"headline":"GitLab Community and Enterprise Editions Improper Access Control","id":"CVE-2023-7028","kev_date_added":"2024-05-01","published":"2024-01-12"},{"cvss_score":10,"headline":"GitLab Community and Enterprise Editions Remote Code Execution","id":"CVE-2021-22205","kev_date_added":"2021-11-03","published":"2021-04-23"},{"cvss_score":6.8,"headline":"GitLab Community and Enterprise Editions Server-Side Request Forgery (SSRF)","id":"CVE-2021-39935","kev_date_added":"2026-02-03","published":"2021-12-13"},{"cvss_score":6.8,"headline":"GitLab Server-Side Request Forgery (SSRF)","id":"CVE-2021-22175","kev_date_added":"2026-02-18","published":"2021-06-11"},{"cvss_score":10,"headline":"Integer Overflow or Wraparound in GitLab","id":"CVE-2026-110264","kev_date_added":null,"published":"2026-10-22"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-11","vendors":["SAML-Toolkits"]},"summary":"An unauthenticated attacker can forge SAML responses to log in as any user due to improper signature verification in the Ruby SAML library.","url":"https://insights.sbomify.com/CVE-2024-45409/"}