{"answers":{"affected":"3 open source packages ship an affected version, including sopel-plugins-channelmgnt and sopel-plugins.channelmgnt. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-21431 in the wild and no public exploit code.","fix":"Upgrade sopel-plugins-channelmgnt to 2.0.1 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2021-21431 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2021-21431 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- sopel-plugins-channelmgnt (PyPI): affected all versions; fixed in 2.0.1\n- sopel-plugins-channelmgnt (PyPI): affected all versions; fixed in 2.0.1\n- sopel-plugins.channelmgnt (PyPI): affected all versions; fixed in 2.0.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-21431/ (Markdown: https://insights.sbomify.com/CVE-2021-21431/index.md)","id":"CVE-2021-21431","markdown":"https://insights.sbomify.com/CVE-2021-21431/index.md","name":"CVE-2021-21431","record":{"aliases":["GHSA-23c7-6444-399m","PYSEC-2021-58"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Sopel IRC plugin","requires_auth":"high_privilege","summary":"Attackers can bypass kick/kickban restrictions in the Sopel channel management plugin on certain IRC networks, allowing unauthorized user removal.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"channelmgnt","vendor":"mirahezebots"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"},{"id":"CWE-20","name":"Improper Input Validation"}],"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 \u003e 1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper Input Validation in sopel-plugins.channelmgnt","id":"CVE-2021-21431","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"security_feature_bypass","year":"2021"},"n_packages":3,"n_references":3,"next":{"headline":"Reject unauthorized access with GitHub PATs","id":"CVE-2021-21432"},"packages":[{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"sopel-plugins-channelmgnt","purl":"pkg:pypi/sopel-plugins-channelmgnt","source":"GHSA-23c7-6444-399m"},{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"sopel-plugins-channelmgnt","purl":"pkg:pypi/sopel-plugins-channelmgnt","source":"PYSEC-2021-58"},{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"sopel-plugins.channelmgnt","purl":null,"source":"GHSA-23c7-6444-399m"}],"prev":{"headline":"Creation of Temporary File in Directory with Insecure Permissions in auto-generated Java, Scala code","id":"CVE-2021-21430"},"products":["sopel-channelmgnt"],"published":"2021-04-09","related":[{"cvss_score":7.7,"headline":"Privilege Escalation in Channelmgnt plug-in for Sopel","id":"CVE-2020-15251","kev_date_added":null,"published":"2020-10-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["MirahezeBots"]},"summary":"Attackers can bypass kick/kickban restrictions in the Sopel channel management plugin on certain IRC networks, allowing unauthorized user removal.","url":"https://insights.sbomify.com/CVE-2021-21431/"}