Information disclosure via private attribute traversal
Published Feb 9, 2024 · Updated Aug 1, 2024
Format-string injection in NoneBot2 2.0.0a16 through 2.1.3 allows remote authenticated users to disclose sensitive process data. MessageTemplate passes attacker-controlled replacement fields to Python Formatter attribute traversal without blocking private names, allowing chains such as init to reach protected object state. Exploitation requires an application developer to incorporate user-provided data into a message template and user interaction in the affected bot workflow; exposed data can include environment variables.
Summary
What happened
Format-string injection in NoneBot2 2.0.0a16 through 2.1.3 allows remote authenticated users to disclose sensitive process data. MessageTemplate passes attacker-controlled replacement fields to Python Formatter attribute traversal without blocking private names, allowing chains such as init to reach protected object state. Exploitation requires an application developer to incorporate user-provided data into a message template and user interaction in the affected bot workflow; exposed data can include environment variables.
The record
- CVE
- CVE-2024-21624
- Published
- Feb 9, 2024
- Updated
- Aug 1, 2024
- Vendor
- NoneBot
- Product
- NoneBot2
- Classifications
- CWE-1336, CWE-200
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 9, 2024CVE publishedPublication date reported by the CVE source.
- Aug 1, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 2.0.0a16, < 2.2.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo