Skip to main content
← All vulnerabilities
CVE-2024-21624PYSEC-2024-37GHSA-59J8-776V-XXXG

Potential Information Leak in User-Constructed Message Templates in nonebot2

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • nonebot nonebot2

    From 2.0.0a16 · fixed in 2.2.0

  • nonebot2PyPI

    From 2.0.1 · fixed in 2.2.0

  • nonebot2PyPI

    From 2.0.0a16 · fixed in 2.2.0

References 2

GitHub · nonebot/nonebot2