Vulnerabilities in pkg:pypi/sopel-plugins.channelmgnt
PACKAGECVE-2021-21431 is a HIGH (CVSS 7.6) improper input validation vulnerability (CWE-284: Improper Access Control) affecting Sopel plugins.channelmgnt libraries in the PyPI ecosystem. The issue involves improper input validation in sopel-plugins.channelmgnt. Remediation is available by upgrading affected packages to version 2.0.1.
pkg:pypi/sopel-plugins.channelmgnt
Vulnerability advisories affecting package pkg:pypi/sopel-plugins.channelmgnt. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-23c7-6444-399m | CVE-2021-21431 | HIGH | Improper Input Validation in sopel-plugins.channelmgnt |
CVE-2021-21431 at a Glance
Security Impact
CVSS: 7.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:N/I:H/A:H).
How to Fix CVE-2021-21431
To remediate this vulnerability, upgrade all affected Sopel plugins.channelmgnt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install sopel-plugins.channelmgnt>=2.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show sopel-plugins.channelmgnt
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-21431, inspect your installed packages using pip:
pip show sopel-plugins.channelmgnt
Analyze the terminal output to locate any version of Sopel plugins.channelmgnt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.1), your application is affected.
Note: The pip show sopel-plugins.channelmgnt command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Sopel plugins.channelmgnt, 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
CVE-2021-21431 Affected Sopel plugins.channelmgnt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sopel-plugins.channelmgnt
|
PyPI |
< 2.0.1
|
2.0.1
|
References
Frequently Asked Questions
What is CVE-2021-21431?
Which Sopel plugins.channelmgnt versions are affected?
What version fixes CVE-2021-21431?
Is sopel-plugins.channelmgnt affected?
What is the CVSS score of CVE-2021-21431?
What CWE is associated with CVE-2021-21431?
How can I check PyPI dependencies for CVE-2021-21431?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-23c7-6444-399m",
"modified" : "2024-10-25T21:10:48Z",
"published" : "2021-04-09T15:42:40Z",
"aliases" : [ "CVE-2021-21431" ],
"summary" : "Improper Input Validation in sopel-plugins.channelmgnt",
"details" : "### Impact\nOn some IRC servers, restrictions around the removal of the bot using the kick/kickban command could be bypassed when kicking multiple users at once.\nWe also believe it may have been possible to remove users from other channels but due to the wonder that is IRC and following RfCs, We have no POC for that.\n\nFreenode is not affected.\n\n### Patches\nUpgrade to 2.0.1 or higher\n\n### Workarounds\nDo not use this plugin on networks where TARGMAX > 1.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue on [phab](https://phab.mirahezebots.org/maniphest/task/edit/form/1/).\n* Email us at [staff(at)mirahezebots(dot)org](mailto:staff@mirahezebots.org)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "sopel-plugins.channelmgnt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/MirahezeBots/sopel-channelmgnt/security/advisories/GHSA-23c7-6444-399m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-21431"
}, {
"type" : "WEB",
"url" : "https://github.com/MirahezeBots/sopel-channelmgnt/commit/643388365f28c5cc682254ab913c401f0e53260a"
}, {
"type" : "WEB",
"url" : "https://github.com/MirahezeBots/sopel-channelmgnt/commit/7c96d400358221e59135f0a0be0744f3fad73856"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/MirahezeBots/sopel-channelmgnt"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/sopel-plugins-channelmgnt/PYSEC-2021-58.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/sopel-plugins.channelmgnt"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-284" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-09T15:42:18Z",
"nvd_published_at" : "2021-04-09T16:15:00Z"
}
}