{"id":"CVE-2024-21624","published":"2024-02-09T22:16:49Z","modified":"2024-08-01T22:27:35Z","title":"Potential Information Leak in User-Constructed Message Templates in nonebot2","vendor":"nonebot","product":"nonebot2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00699,"percentile":0.48623,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nonebot/nonebot2/pull/2509","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":9.72},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"nonebot","affectedVersions":[{"vendor":"nonebot","product":"nonebot2","versions":[">= 2.0.0a16, < 2.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-11T17:00:54.232350Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nonebot2","vulnerableRanges":[">=2.0.0a16, <2.2.0",">=2.0.1, <2.2.0"],"patched":["2.2.0"],"from":["GHSA-59j8-776v-xxxg","PYSEC-2024-37"],"provenance":"source"}],"summary":{"text":"The flaw is an information exposure issue in nonebot2, a Python asynchronous chatbot framework, affecting applications that use MessageTemplate and insert user-provided data into message templates. An attacker with network access and low-privilege authentication, whose crafted input gets incorporated into a template, and with a user interacting with the affected flow, can leak sensitive information such as environment variables.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:14Z"},"euvd":{"id":"EUVD-2024-0119","exploited":false,"provenance":"source"}}