CVE-2022-24849

CVE-2022-24849 is a medium-severity security vulnerability in DisCatSharp (nuget), affecting versions >= 9.8.5, < 9.9.1. It is fixed in 9.9.1.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

Exposure of Sensitive Information to an Unauthorized Actor in DisCatSharp

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:

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.

CVE-2022-24849 has a CVSS score of 6.5 (Medium). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (9.9.1); upgrading removes the vulnerable code path.

Affected versions

DisCatSharp (>= 9.8.5, < 9.9.1)

Security releases

DisCatSharp → 9.9.1 (nuget)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

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.

Frequently Asked Questions

  1. What is CVE-2022-24849? CVE-2022-24849 is a medium-severity security vulnerability in DisCatSharp (nuget), affecting versions >= 9.8.5, < 9.9.1. It is fixed in 9.9.1.
  2. How severe is CVE-2022-24849? CVE-2022-24849 has a CVSS score of 6.5 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of DisCatSharp are affected by CVE-2022-24849? DisCatSharp (nuget) versions >= 9.8.5, < 9.9.1 is affected.
  4. Is there a fix for CVE-2022-24849? Yes. CVE-2022-24849 is fixed in 9.9.1. Upgrade to this version or later.
  5. Is CVE-2022-24849 exploitable, and should I be worried? Whether CVE-2022-24849 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2022-24849 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2022-24849? Upgrade DisCatSharp to 9.9.1 or later.

Other vulnerabilities in DisCatSharp

Stop the waste.
Protect your environment with Kodem.