CVE-2022-24849 — Vulnerability in DisCatSharp — CVE Details
Exposure of Sensitive Information to an Unauthorized Actor in DisCatSharp
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.98%). Schedule for your next planned update.
Does your project use an affected DisCatSharp version?
Paste your packages.lock.json to check it for CVE-2022-24849 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Users of versions 9.8.5, 9.8.6, 9.9.0 and previously published prereleases of 10.0.0 who have used either one of the two RequireDisCatSharpDeveloperAttributes or the BaseDiscordClient.LibraryDeveloperTeam have potentially had their bot token sent to a web server not affiliated with Discord. This server is owned and operated by DisCatSharp's development team. The tokens were not logged, yet it is still advisable to reset the tokens of potentially affected bots.
Patches
9.9.1 has been released to patch the issue for the current stable release and the current 10.0.0 prereleases are also no longer affected.
Workarounds
Remove all uses of the two RequireDisCatSharpDeveloperAttributes and all direct calls to BaseDiscordClient.LibraryDeveloperTeam.
Details
The HttpClient responsible for sending requests to the Discord API was erroneously reused to send requests to our website when DisCatSharp's team members were to be fetched.
For more information
If you have any questions or comments about this advisory:
- Join our Discord server
- Email us at ottero@aitsys.dev
Advisory Timeline
- First published April 22, 2022 (1679 days ago).
- Last revised November 8, 2023 — 564 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package DisCatSharp --version 9.9.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: NuGet (1).
| Package | Fixed In |
|---|---|
| DisCatSharp NuGet · Affected: 9.8.5, 9.8.6, 9.8.6-nightly-00261, 9.8.6-nightly-00262 (+20 more) | 9.9.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-200Information ExposureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
References
Frequently Asked Questions
- What is CVE-2022-24849?
- Exposure of Sensitive Information to an Unauthorized Actor in DisCatSharp. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2022-24849?
- CVE-2022-24849 affects DisCatSharp. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-24849 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 61.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2017-0249HIGH
High severity vulnerability that affects Microsoft.AspNetCore.Mvc
- CVE-2026-114154MEDIUM
Microsoft Security Advisory CVE-2026-114154 - ASP.NET Core Denial of Service Vulnerability
- GHSA-6856-87hx-p5x7MEDIUM
Microsoft Security Advisory CVE-2026-105544 - .NET Elevation of Privilege Vulnerability