GitLab SAML + LDAP Auto-Link CVE-2026-15723 — Are You Exposed?
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).
| Condition | gitlab.rb setting |
|---|---|
| SAML sign-in in use | omniauth_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 use | gitlab_rails['ldap_enabled'] = true |
| LDAP auto-link | gitlab_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.
$ grep -nE "omniauth_|ldap_enabled" /etc/gitlab/gitlab.rbTelling 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".
$ 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$ 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 branch | Fixed release |
|---|---|
| 19.5 | 19.5.1 |
| 19.4 | 19.4.3 |
| 19.3 | 19.3.6 |
| 19.2 and older | No fix in the same branch — move to 19.3.6 or later |
Install the fixed version explicitly, as in the package upgrade docs.
$ 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.
| CVE | Issue | Severity | Affected from |
|---|---|---|---|
| CVE-2026-112212 | Cache poisoning in OAuth/OIDC discovery endpoints | High (7.5) | 18.3 |
| CVE-2026-16255 | Instance-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 backportin the right-hand column only. - A
grephit with a leading#is a disabled setting. That is why the script skips comments. - Settings kept outside
gitlab.rb(Helm chart values,gitlab.ymlon source installs) were not tested. YESfrom the script only means the conditions appear in thegitlab.rbtext; it does not prove that sign-in works that way.nois not a verdict of "not affected".