{"id":"CVE-2022-36024","aliases":["CVE-2022-36024","GHSA-qmhj-m29v-gvmr","PYSEC-2022-43146"],"related":[],"kind":"vulnerability","state":"published","title":"Bots using py-cord as discord api wrapper are vulnerable to shutdowns through remote code execution","summary":"py-cord is a an API wrapper for Discord written in Python. Bots creating using py-cord version 2.0.0 are vulnerable to remote shutdown if they are added to the server with the `application.commands` scope without the `bot` scope. Currently, it appears that all public bots that use slash commands are affected. This issue has been patched in version 2.0.1. There are currently no recommended workarounds - please upgrade to a patched version.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"py-cord is a an API wrapper for Discord written in Python. Bots creating using py-cord version 2.0.0 are vulnerable to remote shutdown if they are added to the server with the `application.commands` scope without the `bot` scope. Currently, it appears that all public bots that use slash commands are affected. This issue has been patched in version 2.0.1. There are currently no recommended workarounds - please upgrade to a patched version.","source":"cvelist"},{"lang":"en","text":"### Impact\npy-cord is a an API wrapper for Discord written in Python. Bots using py-cord version 2.0.0 are vulnerable to remote shutdown if they are added to the server with the `application.commands` scope without the `bot` scope. Currently, it appears that all public bots that use slash commands are affected.\n\n### Patches\nThis issue has been patched in version 2.0.1.\n\n### Workarounds\nThere are currently no recommended workarounds - please upgrade to a patched version.\n\n### References\nhttps://github.com/Pycord-Development/pycord/pull/1568\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [our GitHub](https://github.com/Pycord-Development/pycord)\n* Email us at [support@pycord.dev](mailto:support@pycord.dev)","format":"markdown","source":"ghsa"},{"lang":"es","text":"py-cord es una envoltura de API escrita en Python. Los bots que se crean utilizando la versión 2.0.0 de py-cord son vulnerables al cierre remoto si se añaden al servidor con el ámbito `application.commands` sin el ámbito `bot`. Actualmente, parece que todos los bots públicos que usan comandos de barra están afectados. Este problema ha sido corregido en la versión 2.0.1. Actualmente no hay soluciones recomendadas - por favor, actualice a una versión parcheada.","source":"nvd"}],"published":"2022-08-18T14:18:37.000Z","modified":"2026-06-17T04:52:45.827Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-284","CWE-862"],"affected":[{"ranges":[{"version":"= 2.0.0","status":"affected"}],"vendor":"Pycord-Development","product":"pycord","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.1"}],"ecosystem":"PyPI","package":"py-cord","purl":"pkg:pypi/py-cord","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.0.0"}],"vendor":"pycord_development","product":"pycord","cpe":"cpe:2.3:a:pycord_development:pycord:2.0.0:*:*:*:*:discord:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.1"}],"ecosystem":"PyPI","package":"py-cord","purl":"pkg:pypi/py-cord","source":"pysec"}],"references":[{"url":"https://github.com/Pycord-Development/pycord/security/advisories/GHSA-qmhj-m29v-gvmr","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Pycord-Development/pycord/pull/1568","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36024","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Pycord-Development/pycord","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/py-cord/PYSEC-2022-43146.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-23T15:52:15.958Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36024","url":"https://www.cve.org/CVERecord?id=CVE-2022-36024","licence":"CVE Terms of Use","modified":"2025-04-23T17:49:06.683Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qmhj-m29v-gvmr","url":"https://github.com/advisories/GHSA-qmhj-m29v-gvmr","licence":"CC-BY-4.0","modified":"2024-11-26T18:46:54.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36024","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36024","licence":"Public domain","modified":"2026-06-17T04:52:45.827Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-43146","url":"https://osv.dev/vulnerability/PYSEC-2022-43146","licence":"CC-BY-4.0","modified":"2024-11-25T22:42:10.994Z"}],"updatedAt":"2026-11-25T22:58:14.289Z","epss":{"score":0.0082,"percentile":0.58407,"date":"2026-12-01T12:00:22.000Z"}}