# CVE-2024-25619: Destroying OAuth Applications doesn't notify Streaming of Access Tokens being destroyed in mastodon

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2024-02-14T20:50:10.809Z
- Modified: 2026-09-08T08:48:13.151Z
- Also known as: BIT-MASTODON-2024-25619, GHSA-7w3c-p9j8-mq3x
- Weaknesses: CWE-613, CWE-672
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Mastodon is a free, open-source social network server based on ActivityPub. When an OAuth Application is destroyed, the streaming server wasn't being informed that the Access Tokens had also been destroyed, this could have posed security risks to users by allowing an application to continue listening to streaming after the application had been destroyed. Essentially this comes down to the fact that when Doorkeeper sets up the relationship between Applications and Access Tokens, it uses a `dependent: delete_all` configuration, which means the `after_commit` callback setup on `AccessTokenExtension` didn't actually fire, since `delete_all` doesn't trigger ActiveRecord callbacks. To mitigate, we need to add a `before_destroy` callback to `ApplicationExtension` which announces to streaming that all the Application's Access Tokens are being "killed". Impact should be negligible given the affected application had to be owned by the user. None the less this issue has been addressed in versions 4.2.6, 4.1.14, 4.0.14, and 3.5.18. Users are advised to upgrade. There are no known workaround for this vulnerability.

(As written by CVE List.)

## Affected

- mastodon mastodon: >= 4.2.6, < 4.2.6; >= 4.1.0, < 4.1.14; >= 4.0.0, < 4.0.14; < 3.5.18
- joinmastodon mastodon: before 3.5.18; from 4.0.0 before 4.0.14; from 4.1.0 before 4.1.14; from 4.2.0 before 4.2.6
- mastodon (Bitnami): before 4.2.6

## Every score

- GitHub_M: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/mastodon/mastodon/security/advisories/GHSA-7w3c-p9j8-mq3x> (advisory, vendor-advisory)
- <https://github.com/mastodon/mastodon/commit/68eaa804c9bafdc5f798e114e9ba00161425dd71> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-25619> (web)

## Sources

- CVE List: [CVE-2024-25619](https://www.cve.org/CVERecord?id=CVE-2024-25619), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-25619](https://nvd.nist.gov/vuln/detail/CVE-2024-25619), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MASTODON-2024-25619](https://osv.dev/vulnerability/BIT-MASTODON-2024-25619), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-25619 · Whole record: https://cve.day/CVE-2024-25619.json · Rebuilt by cve.day 2026-11-25T22:58:36.826Z
