SecurityContext

CVE-2021-21335: nginx - Authentication Bypass

  • Cve: CVE-2021-21335
  • Name: nginx - Authentication Bypass
  • Description: In the SPNEGO HTTP Authentication Module for nginx (spnego-http-auth-nginx-module) before version 1.1.1 basic Authentication can be bypassed using a malformed username. This affects users of spnego-http-auth-nginx-module that have enabled basic authentication. This is fixed in version 1.1.1 of spnego-http-auth-nginx-module. As a workaround, one may disable basic authentication.
  • Impact: Attackers can bypass basic authentication, potentially gaining unauthorized access to protected resources.
  • Remediation: Update to version 1.1.1 of spnego-http-auth-nginx-module or disable basic authentication as a workaround.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.0166
  • Epss percentile: 0.77153
  • Assignee: [email protected]
  • Published at: 2021-03-08T21:15:16Z
  • Age in days: 2087
  • Modified at: 2026-06-17T03:35:19Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21335
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-287Improper Authentication

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570Patch, Third Party Advisory
https://github.com/stnoonan/spnego-http-auth-nginx-module/security/advisories/GHSA-ww8q-72rx-hc54Patch, Third Party Advisory
https://github.com/stnoonan/spnego-http-auth-nginx-module/releases/tag/v1.1.1Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
spnego_http_authentication_module_project:spnego_http_authentication_module< 1.1.1nonvd/v1/products/spnego_http_authentication_module_project/spnego_http_authentication_module

Projects

RepositoryLink kindsIndexedUrl
stnoonan/spnego-http-auth-nginx-modulecommit, fix, releases, security_advisoryyes/v1/repositories/stnoonan/spnego-http-auth-nginx-module

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts