Vulnerabilities in pkg:pypi/red-discordbot

PACKAGE
Advisory Summary

GHSA-q886-75m2-vff8 is a HIGH (CVSS 7.7) unauthorized privilege escalation vulnerability (CWE-863: Incorrect Authorization) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves unauthorized privilege escalation in mod module. Remediation is available by upgrading affected packages to version 3.4.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/red-discordbot

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/red-discordbot. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q886-75m2-vff8 - HIGH Duplicate Advisory: Unauthorized privilege escalation in Mod module

GHSA-q886-75m2-vff8 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-q886-75m2-vff8
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-863: Incorrect Authorization
Affected Product Duplicate Advisory
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-q886-75m2-vff8

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

red-discordbot fixed: 3.4.1
pip install red-discordbot>=3.4.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show red-discordbot

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-q886-75m2-vff8, inspect your installed packages using pip:

pip show red-discordbot

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.1), your application is affected.

Note: The pip show red-discordbot command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-mp9m-g7qj-6vqr. This link is maintained to preserve external references. # Original Description Red Discord Bot before version 3.4.1 has an unauthorized privilege escalation exploit in the Mod module. This exploit allows Discord users with a high privilege level within the guild to bypass hierarchy checks when the application is in a specific condition that is beyond that user's control. By abusing this exploit, it is possible to perform destructive actions within the guild the user has high privileges in. This exploit has been fixed in version 3.4.1. As a workaround, unloading the Mod module with unload mod or, disabling the massban command with command disable global massban can render this exploit not accessible. We still highly recommend updating to 3.4.1 to completely patch this issue.

GHSA-q886-75m2-vff8 Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
3.4.1
Product / Package Ecosystem Affected Versions Fixed Version
red-discordbot
PyPI
< 3.4.1
3.4.1

References

Frequently Asked Questions

What is GHSA-q886-75m2-vff8?
GHSA-q886-75m2-vff8 is a security vulnerability in Duplicate Advisory involving Unauthorized privilege escalation in Mod module under CWE-863: Incorrect Authorization.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 3.4.1 across affected packages: red-discordbot.
What version fixes GHSA-q886-75m2-vff8?
Upgrading to 3.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is red-discordbot affected?
Yes, red-discordbot is affected in releases prior to 3.4.1. Upgrade your dependency to 3.4.1 or later.
What is the CVSS score of GHSA-q886-75m2-vff8?
GHSA-q886-75m2-vff8 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with GHSA-q886-75m2-vff8?
GHSA-q886-75m2-vff8 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check PyPI dependencies for GHSA-q886-75m2-vff8?
Run the dependency tree command: 'pip show red-discordbot'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q886-75m2-vff8",
  "modified" : "2024-04-29T09:49:55Z",
  "published" : "2022-05-24T17:32:30Z",
  "withdrawn" : "2024-04-29T09:49:55Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Unauthorized privilege escalation in Mod module",
  "details" : "# Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-mp9m-g7qj-6vqr. This link is maintained to preserve external references.\n\n# Original Description\n\nRed Discord Bot before version 3.4.1 has an unauthorized privilege escalation exploit in the Mod module. This exploit allows Discord users with a high privilege level within the guild to bypass hierarchy checks when the application is in a specific condition that is beyond that user's control. By abusing this exploit, it is possible to perform destructive actions within the guild the user has high privileges in. This exploit has been fixed in version 3.4.1. As a workaround, unloading the Mod module with unload mod or, disabling the massban command with command disable global massban can render this exploit not accessible. We still highly recommend updating to 3.4.1 to completely patch this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "red-discordbot"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-mp9m-g7qj-6vqr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15278"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Cog-Creators/Red-DiscordBot/commit/726bfd38adfdfaef760412a68e01447b470f438b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Cog-Creators/Red-DiscordBot/releases/tag/3.4.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T09:49:55Z",
    "nvd_published_at" : "2020-10-28T17:15:00Z"
  }
}