Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-21624: nonebot2 is a cross-platform Python asynchronous chatbot framework written in Python

30
Routine
MEDIUM 5.7UPGRADE

CVE-2024-21624 is a medium-severity flaw (CVSS 5.7) affecting nonebot. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

nonebot2 is a cross-platform Python asynchronous chatbot framework written in Python. This security advisory pertains to a potential information leak (e.g., environment variables) in instances where developers utilize `MessageTemplate` and incorporate user-provided data into templates. The identified vulnerability has been remedied in pull request #2509 and will be included in versions released from 2.2.0. Users are strongly advised to upgrade to

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score5.7 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionRequired
EPSS exploit chance0.5% (top 58%)
CISA exploited listNo
WeaknessCWE-200
Published2024-02-09
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: nonebot

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

nonebot nonebot UPGRADE
Affected: >= 2.0.1 and < 2.2.0 · 2.0.0 · 2.0.0 alpha16 · 2.0.0 beta1 · 2.0.0 beta2 · 2.0.0 beta3 · 2.0.0 beta4 · 2.0.0 beta5
Fixed in: 2.2.0
Safe to downgrade to: a release before 2.0.0
1. Check installed version
apt-cache policy nonebot || rpm -q nonebot || nonebot --version
2. UPGRADE to 2.2.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade nonebot
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade nonebot
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 2.0.0 (Debian / Ubuntu)
apt-cache madison nonebot sudo apt install nonebot=<VERSION_BEFORE_2.0.0> sudo apt-mark hold nonebot
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list nonebot sudo dnf downgrade nonebot-<VERSION_BEFORE_2.0.0> sudo dnf versionlock add nonebot
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-21624?

nonebot: upgrade to 2.2.0. Exact commands for each OS are on this page.

Is CVE-2024-21624 being exploited?

CVE-2024-21624 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-21624 affect?

CVE-2024-21624 affects nonebot. Severity is medium (CVSS 5.7). nonebot2 is a cross-platform Python asynchronous chatbot framework written in Python. This security advisory pertains to a potential information leak (e.g., environment variables) in instances where developers utilize `MessageTemplate` and

How urgent is CVE-2024-21624?

Priority 30/100. No elevated risk signals yet.

Software pages

Python vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.