{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.7.0"
                  },
                  {
                    "last_affected": "0.12.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "68686e79b8c93a6d9f00dbb4d873197da2a5bf35"
            },
            {
              "last_affected": "b81289204f7201e3a9032ec346f23d749da13a50"
            }
          ],
          "repo": "https://github.com/mathesar-foundation/mathesar",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-401"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142295.json"
  },
  "details": "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.",
  "id": "CVE-2026-142295",
  "modified": "2026-12-02T17:45:16.669163263Z",
  "published": "2026-12-02T16:48:59.576Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142295.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/mathesar-foundation/mathesar"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/mathesar-foundation/mathesar/blob/0.12.0/mathesar/auth.py#L109-L138"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/mathesar-foundation/mathesar/blob/0.12.0/mathesar/views/download_link.py#L18-L66"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142295"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/mathesar-0.7.0-through-0.12.0-unauthenticated-memory-exhaustion-via-functools-cache"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Mathesar 0.7.0 through 0.12.0 Unauthenticated Memory Exhaustion via functools.cache"
}