Information disclosure in Nonebot
CVE-2024-21624
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 these patched versions to safeguard against the vulnerability. A temporary workaround involves filtering underscores before incorporating user input into the message template.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.7 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.005 (40.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 40th percentile — 40.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Nonebot — versions 2.0.0
- Nonebot Nonebot2 — versions >= 2.0.0a16, < 2.2.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg (Vendor Advisory)
- github.com/nonebot/nonebot2/pull/2509 (Patch, Issue Tracking)
Frequently asked questions
- What is CVE-2024-21624?
- CVE-2024-21624 is a medium-severity vulnerability in Nonebot, classified under Information Disclosure. CVSS score: 5.7/10. Published 2024-02-09.
- How severe is CVE-2024-21624?
- Medium severity. CVSS v3 base score is 5.7 out of 10.
- Is CVE-2024-21624 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.