GrepBoard/Manuals
605 manuals ·

GitLab SAML + LDAP Auto-Link CVE-2026-15723 — Are You Exposed?

·Tested on GitLab official advisory · 2026-10 (config-check script run on Ubuntu 24.04 · Python 3.12)·Test scope ↓·5 steps

CVE-2026-15723 hits GitLab when OmniAuth SAML and LDAP auto-linking are both on. Check three settings, then upgrade to 19.3.6 or later.

CVE-2026-15723 is a High (CVSS 8.2) issue GitLab disclosed on 2026-10-21 alongside its critical patch. According to the advisory, when OmniAuth SAML and LDAP auto-linking were both enabled, an authenticated user could take over an existing LDAP-backed account without any action from the victim. The cause is improper input sanitization in the LDAP email lookup used while linking an OmniAuth identity. Official advisory: GitLab Critical Patch Release: 19.5.1 and others.

[1] Start with the affected versions: 10.1 up to before 19.3.6, 19.4 before 19.4.3, and 19.5 before 19.5.1. Unlike CVE-2026-110264 (CVSS 10.0) from the same day, the 19.0, 19.1 and 19.2 branches have no fixed release. To find your version and compare it, use steps 1 to 3 of the critical patch post.

[2] Check all three conditions in gitlab.rb. The advisory does not name the settings. The matching names in the official docs are below (OmniAuth docs, LDAP docs).

Conditiongitlab.rb setting
SAML sign-in in useomniauth_providers has a provider whose name starts with saml (name: 'saml'; with several providers, name: 'saml_2' plus strategy_class: 'OmniAuth::Strategies::SAML')
LDAP in usegitlab_rails['ldap_enabled'] = true
LDAP auto-linkgitlab_rails['omniauth_auto_link_ldap_user'] = true (or the SAML auto-link below)

The OmniAuth docs describe the last setting as creating an LDAP identity for users created through an OmniAuth provider, and require LDAP integration plus the same uid on both sides. The advisory does not say whether its "SAML auto-linking" means omniauth_auto_link_saml_user. The SAML setup steps put gitlab_rails['omniauth_auto_link_saml_user'] = true in the default configuration (SAML docs), and it cannot be told which one is meant, so the script below counts either one being on as a possible match.

console
$ grep -nE "omniauth_|ldap_enabled" /etc/gitlab/gitlab.rb

Telling commented lines (#) from live ones by eye is error-prone, so here is a small script. It skips comments and trailing # … comments and reads the last value set; providers are matched as name: 'saml…', the old "name" => "saml" hash form, or a SAML strategy_class. The run below uses five sample settings: a.rb has the LDAP auto-link on (with a trailing comment on the ldap_enabled line), b.rb has the auto-link line commented out, c.rb has no SAML provider and LDAP off, d.rb uses saml_2 with a strategy_class and the SAML auto-link, and e.rb uses the old hash form "name" => "saml".

console
$ python3 gl_rbcheck.py samples/a.rb$ python3 gl_rbcheck.py samples/b.rb$ python3 gl_rbcheck.py samples/c.rb$ python3 gl_rbcheck.py samples/d.rb$ python3 gl_rbcheck.py samples/e.rb
output
$ python3 gl_rbcheck.py samples/a.rbomniauth_enabled               trueldap_enabled                   trueomniauth_auto_link_ldap_user   trueomniauth_auto_link_saml_user   (not set)saml provider listed           yespossible match: YES$ python3 gl_rbcheck.py samples/b.rbomniauth_enabled               trueldap_enabled                   trueomniauth_auto_link_ldap_user   (not set)omniauth_auto_link_saml_user   (not set)saml provider listed           yespossible match: no (not a safety guarantee)$ python3 gl_rbcheck.py samples/c.rbomniauth_enabled               trueldap_enabled                   falseomniauth_auto_link_ldap_user   trueomniauth_auto_link_saml_user   (not set)saml provider listed           nopossible match: no (not a safety guarantee)$ python3 gl_rbcheck.py samples/d.rbomniauth_enabled               trueldap_enabled                   trueomniauth_auto_link_ldap_user   (not set)omniauth_auto_link_saml_user   truesaml provider listed           yespossible match: YES$ python3 gl_rbcheck.py samples/e.rbomniauth_enabled               trueldap_enabled                   trueomniauth_auto_link_ldap_user   trueomniauth_auto_link_saml_user   (not set)saml provider listed           yespossible match: YES

[3] Upgrade whether or not you match. The advisory lists no mitigation setting for this issue and only recommends upgrading. Fixed releases by branch:

Installed branchFixed release
19.519.5.1
19.419.4.3
19.319.3.6
19.2 and olderNo fix in the same branch — move to 19.3.6 or later

Install the fixed version explicitly, as in the package upgrade docs.

console
$ sudo apt update && sudo apt install gitlab-ee=19.3.6-ee.0

[4] The same patch fixes two more issues that touch SAML and OAuth. Both share the fixed releases 19.3.6, 19.4.3 and 19.5.1.

CVEIssueSeverityAffected from
CVE-2026-112212Cache poisoning in OAuth/OIDC discovery endpointsHigh (7.5)18.3
CVE-2026-16255Instance-wide SAML/LDAP membership lock not fully enforced (EE only)Medium (5.9)12.0

[5] After upgrading, confirm the version is at or above the fixed release for your branch. The advisory gives no instruction to change settings after the upgrade.

Where the check goes wrong

  • 19.2.9 is a fixed release for CVE-2026-110264 but does not close this one. In the output of the critical patch post, 19.2.9 shows AFFECTED, no backport in the right-hand column only.
  • A grep hit with a leading # is a disabled setting. That is why the script skips comments.
  • Settings kept outside gitlab.rb (Helm chart values, gitlab.yml on source installs) were not tested.
  • YES from the script only means the conditions appear in the gitlab.rb text; it does not prove that sign-in works that way. no is not a verdict of "not affected".

#gitlab#saml#ldap