CVE-2024-21624
NoneBot Potential Information Leak in User-Constructed Message Templates
描述
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.
如何修補 CVE-2024-21624
要修補 CVE-2024-21624,請將受影響套件升級到下列已修補版本。
- —升級至 2.2.0 或更新版本
- —升級至 2.2.0 或更新版本
CVE-2024-21624 正在被利用嗎?
低 — EPSS 為 0.2%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- >= 2.0.0a16, < 2.2.0
- >= 2.0.1, < 2.2.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |