CVE-2021-21431 Improper Input Validation in sopel-plugins.channelmgnt

High 7.6 Published Updated

Attackers can bypass kick/kickban restrictions in the Sopel channel management plugin on certain IRC networks, allowing unauthorized user removal.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-21431?

CVE-2021-21431 is a high-severity vulnerability in MirahezeBots sopel-channelmgnt, published on 9 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

sopel-channelmgnt is a channelmgnt plugin for sopel. In versions prior to 2.0.1, on some IRC servers, restrictions around the removal of the bot using the kick/kickban command could be bypassed when kicking multiple users at once. We 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. Freenode is not affected. This is fixed in version 2.0.1. As a workaround, do not use this plugin on networks where TARGMAX > 1.

Weakness: CWE-284, CWE-20

Which versions are affected by CVE-2021-21431?

3 open source packages ship an affected version, including sopel-plugins-channelmgnt and sopel-plugins.channelmgnt. It affects 1 product.

PackageAffectedFixed in
sopel-plugins-channelmgnt PyPIAll versions2.0.1
sopel-plugins-channelmgnt PyPIAll versions2.0.1
sopel-plugins.channelmgnt PyPIAll versions2.0.1

Products include Mirahezebots Channelmgnt.

How do I fix CVE-2021-21431?

Upgrade sopel-plugins-channelmgnt to 2.0.1 or later.

Is CVE-2021-21431 being exploited?

There is no known exploitation of CVE-2021-21431 in the wild and no public exploit code.

Sources

Also known as GHSA-23c7-6444-399m, PYSEC-2021-58.

Is CVE-2021-21431 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free