Arbitrary code execution via CLI query eval
Published Dec 12, 2023 · Updated Oct 9, 2024
Code injection in Searchor before 2.4.2 allows attackers to execute arbitrary code by supplying a crafted CLI search query. The search function in src/searchor/main.py embeds the query in a Python expression and passes the resulting string to eval without neutralizing executable syntax. Exploitation requires control of a query passed to the CLI, and execution occurs with the privileges of the process running Searchor.
Summary
What happened
Code injection in Searchor before 2.4.2 allows attackers to execute arbitrary code by supplying a crafted CLI search query. The search function in src/searchor/main.py embeds the query in a Python expression and passes the resulting string to eval without neutralizing executable syntax. Exploitation requires control of a query passed to the CLI, and execution occurs with the privileges of the process running Searchor.
The record
- CVE
- CVE-2023-43364
- Published
- Dec 12, 2023
- Updated
- Oct 9, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-74, CWE-94, T1059.006
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Dec 12, 2023CVE publishedPublication date reported by the CVE source.
- Oct 9, 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.
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
- POC-Searchor-2.4.2proof of concept · unverified
- Searchor-2.4.0-POC-Exploitproof of concept · unverified
- Exploit-for-Searchor-2.4.0-Arbitrary-CMD-Injectionfunctional · 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