CVE-2026-142295: Mathesar 0.7.0 through 0.12.0 Unauthenticated Memory Exhaustion via functools.cache
Mathesar 0.7.0 through 0.12.0 contains an unauthenticated memory exhaustion vulnerability because getpubliclysharedformfromrequest 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 Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Mathesar versions 0.7.0 through 0.12.0 are affected when the /files/ download, thumbnail, load, or upload views are reachable by an attacker.
Does exploitation require authentication or user interaction?
No. The issue is unauthenticated and can be triggered remotely without user interaction by sending repeated requests with large headers.
What indicates an exploitation attempt or impact?
Look for repeated requests with unusually large headers targeting the /files/ download, thumbnail, load, or upload views, along with sustained worker-memory growth or server-process crashes.