SecPod

Learn Search

Search across all Learn content

← Back to Security Research
Git Wrecked: GitLab Users Urged to Patch Critical Security Flaws

Git Wrecked: GitLab Users Urged to Patch Critical Security Flaws

GitLab has released patches to address nine vulnerabilities affecting various installations of the Community Edition (CE) and Enterprise Edition (EE). Two of these have been classified as critical and are tracked as CVE-2025-25291 and CVE-2025-25292, each with a CVSS score of 8.8. These vulnerabilit...

Mar 13, 2025By Santosh Sethuraman3 min read

GitLab has released patches to address nine vulnerabilities affecting various installations of the Community Edition (CE) and Enterprise Edition (EE). Two of these have been classified as critical and are tracked as CVE-2025-25291 and CVE-2025-25292, each with a CVSS score of 8.8. These vulnerabilities impact GitLab’s ruby-saml component and, if exploited, could lead to authentication bypass.

GitLab is a DevOps platform offering Git-based version control, CI/CD automation, and project management features. It provides a self-hosted and cloud-based option, with Community (CE) and Enterprise (EE) editions available. With GitLab, teams can work together effectively, simplify development processes, and improve security for their software projects.

Technical Details

After moving away from ruby-saml for authentication in 2014, GitLab opted to evaluate its usage in late 2024. This decision inadvertently made GitLab a potential attack surface for these two critical vulnerabilities.

The root cause of these authentication bypass vulnerabilities in ruby-saml is due to the presence of a parser differential. Parser differentials occur when different parsers interpret the same input in different ways. The discovery of the parser differential and the two critical flaws had four stages:

  • Identifying the use of two different XML parsers during code review.
  • Determining whether and how a parser discrepancy could be exploited.
  • Discovering an actual parsing inconsistency between the parsers in use.
  • Exploiting the parser discrepancy to develop a complete attack

Exploiting these vulnerabilities is possible because it is possible to create an XML document that is seen differently by the two parsers used by ruby-saml.

Attackers with access to a single valid signature, created using the key that validates SAML responses or assertions for the targeted organization, can use it to generate their own SAML assertions. This allows them to log in as any user.

Other than these two critical vulnerabilities, GitLab has patched seven other vulnerabilities tracked as CVE-2025-27407, CVE-2024-13054, CVE-2024-12380, CVE-2025-1257, CVE-2025-0652, CVE-2024-8402, CVE-2024-7296, which are either rated medium or low.

Impact

The impact of these vulnerabilities, particularly the critical authentication bypass flaws (CVE-2025-25291 and CVE-2025-25292), is highly severe. They grant attackers full system access, which could allow them to obtain or modify sensitive data. The risk is further heightened by the attack’s low complexity.

Products Affected

The vulnerabilities affect GitLab CE/EE versions 17.9.0, 17.9.1, 17.8.0, 17.8.1, 17.8.2, 17.8.3, 17.8.4, 17.7.0, 17.7.1, 17.7.2, 17.7.3, 17.7.4, 17.7.5, 17.7.6, and below.

Solution and Mitigation

To patch the vulnerabilities, customers must upgrade to the GitLab CE/EE versions 17.7.7, 17.8.5, and 17.9.2.

For customers unable to perform the upgrade, GitLab has provided a workaround to mitigate the issue. The workaround can be done by following these steps:

  1. Enable GitLab two-factor authentication for all user accounts on the GitLab self-managed instance. (NOTE: Enabling identity provider multi-factor authentication does not mitigate this vulnerability) 
  2. Do not allow the SAML two-factor bypass option in GitLab.
  3. Require admin approval for automatically created new users (gitlab_rails[‘omniauth_block_auto_created_users’] = true)

Instantly Fix Risks with SanerNow Patch Management

SanerNow patch management is a continuous, automated, and integrated software that instantly fixes risks exploited in the wild. The software supports major operating systems like Windows, Linux, and macOS, as well as 550+ third-party applications.

It also allows you to set up a safe testing area to test patches before deploying them in a primary production environment. SanerNow patch management additionally supports a patch rollback feature in case of patch failure or a system malfunction.

Experience the fastest and most accurate patching software here.

Featured Posts

Open Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras
Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras

CVE Research

Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras

A single operator compromised 14,530+ Dahua cameras across Ukraine and Russia in 35 days, chaining credential brute-force, a CVE-2021-33044/33045 authentication bypass, and P2P relay abuse to plant a persistent backdoor and harvest transferable admin access.

Aug 21, 2026

Open Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF
Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF

CVE Research

Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF

CVE-2026-19478 is a critical code injection vulnerability in GitLab CE/EE that allows an unauthenticated attacker to modify or delete public projects and user data by abusing a GraphQL directive. A second high-severity issue, CVE-2026-19650, involves cross-site request forgery in the GraphQL multiplex query handler. This article examines how the critical vulnerability works, the availability of a public proof-of-concept, the potential impact on self-managed instances, the affected versions, and the security updates released to remediate both issues.

Aug 19, 2026

Open No Password Needed: macOS Screen Sharing Flaw (CVE-2026-65400) Used to Deploy Monero Miners
No Password Needed: macOS Screen Sharing Flaw (CVE-2026-65400) Used to Deploy Monero Miners

CVE Research

No Password Needed: macOS Screen Sharing Flaw (CVE-2026-65400) Used to Deploy Monero Miners

Aug 19, 2026

Open Evooo1Bot: Mirai-Based Linux Botnet Turns Edge Devices Into SOCKS5 Proxies
Evooo1Bot: Mirai-Based Linux Botnet Turns Edge Devices Into SOCKS5 Proxies

CVE Research

Evooo1Bot: Mirai-Based Linux Botnet Turns Edge Devices Into SOCKS5 Proxies

Aug 19, 2026