# CVE-2026-142295: Mathesar 0.7.0 through 0.12.0 Unauthenticated Memory Exhaustion via functools.cache

Source: https://aplosec.si/cve/CVE-2026-142295/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142295

High 8.7 · Reported · No fix listed · CWE-401 · Server

# Mathesar 0.7.0 through 0.12.0 Unauthenticated Memory Exhaustion via functools.cache

CVE-2026-142295 · published 2026-12-02

In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). No fixed release is listed yet.

## Summary

CVE-2026-142295 affects Mathesar (Server) >= 0.7.0, <= 0.12.0: Unauthenticated Memory Exhaustion via functools.cache (CWE-401). No fixed release is listed. CVSS 4.0 base score 8.7 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/mathesar-0.7.0-through-0.12.0-unauthenticated-memory-exhaustion-via-functools-cache](https://www.vulncheck.com/advisories/mathesar-0.7.0-through-0.12.0-unauthenticated-memory-exhaustion-via-functools-cache)

- [Vulnerable codehttps://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/auth.py#L109-L138)

- [Vulnerable codehttps://github.com/mathesar-foundation/mathesar/blob/0.12.0/mathesar/views/download_link.py#L18-L66](https://github.com/mathesar-foundation/mathesar/blob/0.12.0/mathesar/views/download_link.py#L18-L66)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142295](https://www.cve.org/CVERecord?id=CVE-2026-142295)

**Severity:** High 8.7 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142295)

**Package:** Mathesar

**Ecosystem:** Server

**Affected:** >= 0.7.0, <= 0.12.0

**Fixed:** None

**Weakness:** CWE-401

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
