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
EPSS: 0.005 (39.5th percentile) — read the EPSS interpretation.
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.
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
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC, 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.