CVE-2022-24849
C# vulnerability analysis and mitigation

Overview

A vulnerability in DisCatSharp versions 9.8.5 through 9.9.0 allowed potential exposure of bot tokens to a non-Discord server when using RequireDisCatSharpDeveloperAttributes or BaseDiscordClient.LibraryDeveloperTeam features. The vulnerability was discovered and disclosed on April 13, 2022, affecting the DisCatSharp NuGet package (GitHub Advisory).

Technical details

The vulnerability occurred when the HttpClient responsible for Discord API requests was incorrectly reused to send requests to DisCatSharp's website during team member fetching operations. This implementation error could result in bot tokens being sent to a server owned and operated by DisCatSharp's development team, though the tokens were reportedly not logged (GitHub Advisory).

Impact

Users who implemented either the RequireDisCatSharpDeveloperAttributes or used the BaseDiscordClient.LibraryDeveloperTeam functionality in affected versions potentially had their bot tokens exposed to a non-Discord server. While the tokens were not logged according to the development team, the exposure created a security risk (GitHub Advisory).

Mitigation and workarounds

The issue was patched in version 9.9.1 for the stable release, and subsequent 10.0.0 prereleases were also fixed. As a workaround, users can remove all uses of the two RequireDisCatSharpDeveloperAttributes and all direct calls to BaseDiscordClient.LibraryDeveloperTeam (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67288CRITICAL10
  • C#C#
  • Umbraco.Cms
NoNoDec 22, 2025
CVE-2025-68618HIGH7.5
  • C#C#
  • Magick.NET-Q8-OpenMP-arm64
NoYesDec 30, 2025
CVE-2025-68950MEDIUM6.2
  • C#C#
  • ImageMagick-c++
NoYesDec 30, 2025
CVE-2025-67291MEDIUM6.1
  • C#C#
  • Piranha
NoNoDec 22, 2025
CVE-2025-67290MEDIUM6.1
  • C#C#
  • Piranha
NoNoDec 22, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management