{"answers":{"affected":"2 open source packages ship an affected version, including DisCatSharp. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-24849 in the wild and no public exploit code.","fix":"Upgrade DisCatSharp to 9.9.1 or later.","what":"CVE-2022-24849 is a medium-severity vulnerability in Aiko-IT-Systems DisCatSharp, published on 14 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-24849 and fix it if it is affected.\n\nWhat it is: CVE-2022-24849 is a medium-severity vulnerability in Aiko-IT-Systems DisCatSharp, published on 14 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-24849 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- DisCatSharp (NuGet): affected from 9.8.5; fixed in 9.9.1\n- DisCatSharp (NuGet): affected from 9.8.5; fixed in 9.9.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-24849/ (Markdown: https://insights.sbomify.com/CVE-2022-24849/index.md)","id":"CVE-2022-24849","markdown":"https://insights.sbomify.com/CVE-2022-24849/index.md","name":"CVE-2022-24849","record":{"aliases":["GHSA-frxg-hf44-q765"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Discord API wrapper","requires_auth":"none","summary":"DisCatSharp library versions inadvertently sent bot tokens to a third-party server, exposing credentials to the library developers.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"discatsharp","vendor":"aitsys"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"DisCatSharp is a Discord API wrapper for .NET. 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 `RequireDisCatSharpDeveloperAttribute`s 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. 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. Users unable to upgrade should remove all uses of the two `RequireDisCatSharpDeveloperAttribute`s and all direct calls to `BaseDiscordClient.LibraryDeveloperTeam`.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Contact to DisCatSharp-owned server using authenticated client","id":"CVE-2022-24849","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":2,"n_references":1,"next":{"headline":"Category group permissions leaked in Discourse","id":"CVE-2022-24850"},"packages":[{"ecosystem":"NuGet","fixed":["9.9.1"],"introduced":["9.8.5"],"last_affected":[],"package":"DisCatSharp","purl":null,"source":"GHSA-frxg-hf44-q765"},{"ecosystem":"NuGet","fixed":["9.9.1"],"introduced":["9.8.5"],"last_affected":[],"package":"DisCatSharp","purl":"pkg:nuget/DisCatSharp","source":"GHSA-frxg-hf44-q765"}],"prev":{"headline":"SQL Injection in DHIS2's in OrgUnit program association","id":"CVE-2022-24848"},"products":["DisCatSharp"],"published":"2022-04-14","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["Aiko-IT-Systems"]},"summary":"DisCatSharp library versions inadvertently sent bot tokens to a third-party server, exposing credentials to the library developers.","url":"https://insights.sbomify.com/CVE-2022-24849/"}