Mastodon
Mastodon: Exhausting data by an unauthenticated request to the admin retention API
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.4.21
- >= 4.5.0-beta.1, < 4.5.14
- >= 4.6.0-beta.1, < 4.6.4
Fixed in 4.4.21, 4.5.14, 4.6.4
Mitigation
Upgrade mastodon to 4.4.21 or 4.5.14 or 4.6.4 or later.
References
- Vendor advisory github.com/mastodon/mastodon/security/advisori…
- Patch github.com/mastodon/mastodon/commit/18c61f286f…
- Patch github.com/mastodon/mastodon/commit/467c933459…
5 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.