Code execution via malformed compiled rule bytecode
Published Aug 28, 2023 · Updated Oct 2, 2024
Heap buffer overflow in yr_execute_code in VirusTotal YARA 4.3.2 allows remote attackers to execute code via crafted compiled rules. When the -C option is used, the interpreter trusts compiled rule bytecode and reads an eight-byte value immediately before a heap allocation. Exploitation requires a user or service to load an attacker-controlled compiled rules file; the public artifact demonstrates a crash, while code execution is asserted by the CVE record.
Summary
What happened
Heap buffer overflow in yr_execute_code in VirusTotal YARA 4.3.2 allows remote attackers to execute code via crafted compiled rules. When the -C option is used, the interpreter trusts compiled rule bytecode and reads an eight-byte value immediately before a heap allocation. Exploitation requires a user or service to load an attacker-controlled compiled rules file; the public artifact demonstrates a crash, while code execution is asserted by the CVE record.
The record
- CVE
- CVE-2023-40857
- Published
- Aug 28, 2023
- Updated
- Oct 2, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-787, T1204.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 28, 2023CVE publishedPublication date reported by the CVE source.
- Oct 2, 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?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
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.
Public exploit references
- HBO_1.yarac compiled-rule proof of conceptproof of concept · demonstrated
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