CVE-2022-36024: Bots using py-cord as Discord API wrapper are vulnerable to shutdowns through remote code execution
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.24258%
CWE
Published
8/18/2022
Updated
11/26/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
py-cord | pip | = 2.0.0 | 2.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how interaction data was processed in applications without the 'bot' scope. The pull request #1568 shows critical changes to the Interaction._from_data method, specifically adding fallbacks for missing guild data and using Object() when guild information isn't properly scoped. This matches the CWE-284 (Improper Access Control) description, as the original implementation failed to properly validate/handle interaction context from unauthorized scopes, enabling remote shutdowns via malformed interactions.