Description
Mathesar 0.7.0 through 0.12.0 contains an unauthenticated memory exhaustion vulnerability because _get_publicly_shared_form_from_request in mathesar/auth.py caches HttpRequest objects indefinitely. Attackers can send repeated requests with large headers to /files/ download, thumbnail, load, or upload views, growing worker memory until the server process crashes.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mathesar-foundation | mathesar | 0.7.0 ≤0.12.0 | — |
References
- https://github.com/mathesar-foundation/mathesar/blob/0.12.0/mathesar/auth.py#L109-L138
- https://github.com/mathesar-foundation/mathesar/blob/0.12.0/mathesar/views/download_link.py#L18-L66
- https://www.vulncheck.com/advisories/mathesar-0.7.0-through-0.12.0-unauthenticated-memory-exhaustion-via-functools-cache