CVE-2024-21624 Potential Information Leak in User-Constructed Message Templates in nonebot2
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nonebot | = 2.0.0; = 2.0.0-alpha16; = 2.0.0-beta1; = 2.0.0-beta2 +8 more | 2.2.0 | Fixed |
| pypi nonebot2(PyPI) | = 2.0.0; = 2.0.0a16; = 2.0.0b1; = 2.0.0b2 +15 more | 2.2.0 | Fixed |
| nonebot2 | = >= 2.0.0a16, < 2.2.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi nonebot2(PyPI) | >= 2.0.0a16, < 2.2.0 | 2.2.0 |
| pypi nonebot2(PyPI) | = 2.0.0 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0a16 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0b1 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0b2 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0b3 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0b4 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0b5 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0rc1 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0rc2 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0rc3 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.0rc4 | No fix listed |
| pypi nonebot2(PyPI) | = 2.0.1 | No fix listed |
| pypi nonebot2(PyPI) | = 2.1.0 | No fix listed |
| pypi nonebot2(PyPI) | = 2.1.1 | No fix listed |
| pypi nonebot2(PyPI) | = 2.1.2 | No fix listed |
| pypi nonebot2(PyPI) | = 2.1.3 | No fix listed |
| pypi nonebot2(PyPI) | >= 2.0.1, < 2.2.0 | 2.2.0 |
| pypi nonebot2(PyPI) | >= 2.0.0a16, <= 2.1.3 | No fix listed |
| nonebot2 | = >= 2.0.0a16, < 2.2.0 | No fix listed |
| nonebot | >= 2.0.1, < 2.2.0 | 2.2.0 |
| nonebot | = 2.0.0 | No fix listed |
| nonebot | = 2.0.0-alpha16 | No fix listed |
| nonebot | = 2.0.0-beta1 | No fix listed |
| nonebot | = 2.0.0-beta2 | No fix listed |
Show 7 more
| Product | Affected versions | Fixed in |
|---|---|---|
| nonebot | = 2.0.0-beta3 | No fix listed |
| nonebot | = 2.0.0-beta4 | No fix listed |
| nonebot | = 2.0.0-beta5 | No fix listed |
| nonebot | = 2.0.0-rc1 | No fix listed |
| nonebot | = 2.0.0-rc2 | No fix listed |
| nonebot | = 2.0.0-rc3 | No fix listed |
| nonebot | = 2.0.0-rc4 | No fix listed |
References
- https://github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/nonebot/nonebot2/pull/2509 issue-tracking patch
- github.com patch
- github.com product
- github.com
- github.com