{"id":"CVE-2024-21624","state":"PUBLISHED","title":"Potential Information Leak in User-Constructed Message Templates in nonebot2","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.","publishedAt":"2024-02-09T22:16:49.974Z","updatedAt":"2024-08-01T22:27:35.692Z","severity":{"score":5.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["nonebot nonebot2"],"affected":[{"vendor":"nonebot","product":"nonebot2","versions":[{"version":">= 2.0.0a16, < 2.2.0","status":"affected"}]}],"references":["https://github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg","https://github.com/nonebot/nonebot2/pull/2509"],"weaknesses":["CWE-200"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/21xxx/CVE-2024-21624.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-21624","state":"PUBLISHED","datePublished":"2024-02-09T22:16:49.974Z","dateUpdated":"2024-08-01T22:27:35.692Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-12-29T03:00:44.953Z"},"containers":{"cna":{"title":"Potential Information Leak in User-Constructed Message Templates in nonebot2","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"nonebot","product":"nonebot2","versions":[{"version":">= 2.0.0a16, < 2.2.0","status":"affected"}]}],"references":[{"url":"https://github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg","name":"https://github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nonebot/nonebot2/pull/2509","name":"https://github.com/nonebot/nonebot2/pull/2509","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.7,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","lang":"en","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-02-09T22:16:49.974Z"},"source":{"advisory":"GHSA-59j8-776v-xxxg","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-21624","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-02-11T17:00:54.232350Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-05T17:20:49.630Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg","name":"https://github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/nonebot/nonebot2/pull/2509","name":"https://github.com/nonebot/nonebot2/pull/2509","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T22:27:35.692Z"}}]}}}