CVE-2021-21411
Homebrew vulnerability analysis and mitigation

Overview

OAuth2-Proxy is an open source reverse proxy that provides authentication with Google, Github or other providers. A vulnerability was discovered in version 7.0.0 where the --gitlab-group flag for group-based authorization in the GitLab provider stopped functioning properly. The issue was assigned CVE-2021-21411 and was discovered in March 2021 (GitHub Advisory).

Technical details

The vulnerability was introduced while adding GitLab project-based authorization support. A bug caused the user session's groups field to be populated with the --gitlab-group config entries instead of pulling the individual user's group membership from the GitLab Userinfo endpoint. When session groups were compared against allowed groups for authorization, they matched improperly since both lists contained the same data, resulting in authorization being incorrectly granted (GitHub Advisory). The vulnerability has a CVSS v3.1 base score of 5.5 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N) (NVD).

Impact

This vulnerability affected GitLab Provider users who relied on group membership for authorization restrictions. Any authenticated users in the GitLab environment could access applications regardless of --gitlab-group membership restrictions. Additionally, authenticated users had whatever groups were set in --gitlab-group added to the new X-Forwarded-Groups header to the upstream application (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in version 7.1.0. For users unable to upgrade immediately, there was no direct workaround for the Group membership bug. However, users could set --gitlab-project to use Project membership as the authorization checks instead of groups, as this functionality remained unaffected (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management