Kludex Starlette
Starlette: SSRF and NTLM credential theft via UNC paths in StaticFiles on Windows
Starlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and earlier, StaticFiles on Windows is vulnerable to SSRF. An UNC path such as \\attacker.com\share can cause os.path.realpath to initiate an outbound SMB connection before the path is rejected, exposing the service account’s NTLMv2 credentials for offline cracking or relay even though the HTTP response is only a 404. The issue affects default follow_symlink=False deployments, including frameworks built on Starlette such as FastAPI; POSIX systems and follow_symlink=True are unaffected. The issue is fixed in 1.1.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.1.0
Fixed in 1.1.0
Mitigation
Upgrade starlette to 1.1.0 or later.
References
- Vendor advisory github.com/Kludex/starlette/security/advisorie…
- Patch github.com/Kludex/starlette/pull/3287
- Patch github.com/Kludex/starlette/commit/fd53168a776…
1 more
- Release notes github.com/Kludex/starlette/releases/tag/1.1.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.