CVE-2021-21335

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-21335
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-21335.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-21335
Related
  • GHSA-ww8q-72rx-hc54
Published
2021-03-08T21:15:16Z
Modified
2025-10-15T09:14:21.517244Z
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

Affected versions

v1.*

v1.0.0
v1.1.0

Database specific

vanir_signatures

[
    {
        "id": "CVE-2021-21335-96db8614",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "ngx_http_auth_spnego_module.c",
            "function": "ngx_http_auth_spnego_handler"
        },
        "deprecated": false,
        "digest": {
            "length": 3010.0,
            "function_hash": "72009278362700319588796017657292650017"
        },
        "source": "https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570"
    },
    {
        "id": "CVE-2021-21335-e3d42e4c",
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "ngx_http_auth_spnego_module.c"
        },
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "184303827427714694529644895348184658594",
                "339901842394811731769551324700142596822",
                "77201998263918464123882835720729499067",
                "319109234672289250995724412850191116713"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570"
    }
]