edgartools is vulnerable to Code Injection
81
CVE Score
High
Code Injection
The query() method on Attachments builds a filter expression from the caller's query string and passes it to eval() with Python builtins reachable. Because the evaluation namespace is not sandboxed, a query string that reaches this method can execute arbitrary Python code, such as importing modules, running operating system commands, or reading files. Applications that pass untrusted input into the attachment query are exposed to arbitrary code execution. The fix parses the query into a restricted AST that only allows field access, comparisons, whitelisted string methods, and re matching, raising ValueError on anything else.
Upgrade the edgartools library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application passes untrusted input into the attachment query.
2.23.0 - 5.40.1
Fixed in 5.41.0edgartools is vulnerable to Code Injection in versions 2.23.0 - 5.40.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.