Vulnerability DatabaseGHSA-fm32-72mc-qrfg

GHSA-fm32-72mc-qrfg: 
Rust vulnerability analysis and mitigation

Summary

When basic authentication is enabled, OPTIONS requests are answered without a credential check, so an unauthenticated client can learn which files and directories exist behind the authentication.

Details

Basic authentication exempts every OPTIONS request, not only CORS preflights. The OPTIONS handling then resolves the request path like a GET would: an existing file yields 204 No Content, a missing path 404 Not Found, a directory without a trailing slash a 308 redirect, and a symlink 403 Forbidden. The status code reveals the state of a path that should require authentication. In v2, with --accept-markdown, the reply also carries Content-Type: text/markdown when a markdown variant of the path exists, and custom header rules ([[advanced.headers]]) match the resolved index file of a directory request, so the headers depend on the path as well.

PoC

  • Run SWS with basic-auth set.
  • Without credentials, send OPTIONS /existing-file and OPTIONS /missing-file.
  • The responses are 204 and 404 respectively instead of 401 Unauthorized for both.

Impact

An unauthenticated client can enumerate the protected directory tree (file names, directories, symlinks). No file content is disclosed by this issue alone. v3.0.0-beta.1, v3.0.0-beta.2 and v2.30.0 to v2.44.1 are affected when --basic-auth is set. v2.28.0 and earlier apply basic authentication to OPTIONS and return 401.

Mitigation until fixed

  • Reject or authenticate OPTIONS requests at a reverse proxy in front of SWS.

Fix

  • Apply basic authentication to all OPTIONS requests except genuine CORS preflights (Origin plus Access-Control-Request-Method present, CORS enabled).
  • Answer OPTIONS with 204 before resolving the path, so the status does not depend on the resource.
  • Skip markdown negotiation for methods other than GET and HEAD, and match custom header rules of an OPTIONS reply by the request URI only.

Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-xm3f-jwj9-3x8mMEDIUM4.5
  • Rust logoRust
  • russh-config
NoYesNov 21, 2026
GHSA-m6v5-wqxv-mffhMEDIUM4.3
  • Rust logoRust
  • russh
NoYesNov 21, 2026
GHSA-66vf-xq4p-pg7qLOW3.7
  • Rust logoRust
  • russh
NoYesNov 21, 2026
GHSA-7qgr-cjxw-6vjfLOW3.1
  • Rust logoRust
  • russh
NoYesNov 21, 2026
GHSA-v3vc-7662-5hv7LOWN/A
  • Rust logoRust
  • russh
NoYesNov 21, 2026

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

Additional Wiz resources

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