CVE-2024-21624Medium· 5.7▾ SunlitNoneBot Potential Information Leak in User-Constructed Message Templates
▾ Sunlit zone — Low / medium · no exploitation signal
impact 31.4 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Sep 12.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.5%
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 fix #2509 and will be included in versions released after 2.1.3. 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.
nonebot2 >= 2.0.0a16, < 2.2.0Upgrade to a patched release:
nonebot2 2.2.0