Description
Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.4.21, 4.5.14, 4.6.4, and 4.7.0-beta.1, the administrative statistics endpoints handled by Api::V1::Admin::MeasuresController and Api::V1::Admin::RetentionController checked authorization only after beginning expensive calculations. Anonymous callers could submit keys, start_at, and end_at parameters that caused long-running SQL queries in Admin::Metrics::Measure, Admin::Metrics::Retention, and Admin::Metrics::Dimension::BaseDimension, allowing repeated requests to exhaust server resources. This issue is fixed in versions 4.4.21, 4.5.14, 4.6.4, and 4.7.0-beta.1.
Published: 2026-08-10
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in Mastodon's administrative statistics endpoints, which perform lengthy SQL queries without checking authorization until after the expensive calculations begin. An unauthenticated user can supply arbitrary key, start_at, and end_at parameters that trigger these queries, which can consume a large amount of CPU, memory, and I/O. The result is a denial‑of‑service condition, allowing an attacker to exhaust server resources and potentially disrupt service availability.

Affected Systems

Affected servers run Mastodon up to and including the unstable release 4.7.0-beta.1 and the stable releases 4.4.20, 4.5.13, and 4.6.3. Any instance that has not yet applied the patches found in releases 4.4.21, 4.5.14, 4.6.4, or 4.7.0-beta.1 is vulnerable. The issue is triggered through the publicly reachable /api/v1/admin/measures and /api/v1/admin/retention endpoints.

Risk and Exploitability

The CVSS base score of 7.5 classifies the vulnerability as high severity. While an EPSS score is not available, the lack of a KEV listing does not preclude exploitation; the attacker only needs network access to the targeted API. Because the vulnerability can be invoked from the internet without prior authentication, the likelihood of exploitation is significant for exposed instances, especially those with loosened rate‑limiting or no ingress protection. Mitigating the risk requires patching or restricting network access to these endpoints.

Generated by OpenCVE AI on August 10, 2026 at 22:33 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Mastodon version 4.4.21 or newer
  • Apply the latest deployment code that fixes the Admin::Metrics endpoints
  • If upgrading is not immediately possible, block or rate‑limit unauthenticated traffic to the /api/v1/admin/* endpoints via a firewall or reverse proxy

Generated by OpenCVE AI on August 10, 2026 at 22:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Description Mastodon is a free, open-source social network server based on ActivityPub. Prior to 4.4.21, 4.5.14, 4.6.4, and 4.7.0-beta.1, the administrative statistics endpoints handled by Api::V1::Admin::MeasuresController and Api::V1::Admin::RetentionController checked authorization only after beginning expensive calculations. Anonymous callers could submit keys, start_at, and end_at parameters that caused long-running SQL queries in Admin::Metrics::Measure, Admin::Metrics::Retention, and Admin::Metrics::Dimension::BaseDimension, allowing repeated requests to exhaust server resources. This issue is fixed in versions 4.4.21, 4.5.14, 4.6.4, and 4.7.0-beta.1.
Title Mastodon: Exhausting data by an unauthenticated request to the admin retention API
Weaknesses CWE-405
CWE-770
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-10T21:13:20.856Z

Reserved: 2026-08-10T17:57:26.143Z

Link: CVE-2026-72914

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T22:45:05Z

Weaknesses
  • CWE-405

    Asymmetric Resource Consumption (Amplification)

  • CWE-770

    Allocation of Resources Without Limits or Throttling