CVE-2021-21335

Source
https://cve.org/CVERecord?id=CVE-2021-21335
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21335.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-21335
Related
  • GHSA-ww8q-72rx-hc54
Published
2021-03-08T21:15:16.573Z
Modified
2026-04-11T23:33:58.371721Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/stnoonan/spnego-http-auth-nginx-module

Affected ranges

Type
GIT
Repo
https://github.com/stnoonan/spnego-http-auth-nginx-module
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.1.1"
        }
    ]
}

Affected versions

v1.*
v1.0.0
v1.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21335.json"
vanir_signatures_modified
"2026-04-11T23:33:58Z"
vanir_signatures
[
    {
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570",
        "digest": {
            "function_hash": "72009278362700319588796017657292650017",
            "length": 3010.0
        },
        "id": "CVE-2021-21335-96db8614",
        "deprecated": false,
        "target": {
            "file": "ngx_http_auth_spnego_module.c",
            "function": "ngx_http_auth_spnego_handler"
        }
    },
    {
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "184303827427714694529644895348184658594",
                "339901842394811731769551324700142596822",
                "77201998263918464123882835720729499067",
                "319109234672289250995724412850191116713"
            ]
        },
        "id": "CVE-2021-21335-e3d42e4c",
        "deprecated": false,
        "target": {
            "file": "ngx_http_auth_spnego_module.c"
        }
    }
]