mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 20:15:40 +00:00
Description: Resolve CVE-2024-46946 by switching out sympify with parse_expr with a very specific allowed set of operations. https://nvd.nist.gov/vuln/detail/cve-2024-46946 Sympify uses eval which makes it vulnerable to code execution. parse_expr is limited to specific expressions. Bandit results  --------- Co-authored-by: aqiu7 <aqiu7@gatech.edu> Co-authored-by: Eugene Yurtsev <eugene@langchain.dev> Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com> |
||
---|---|---|
.. | ||
agents | ||
chat_models | ||
python | ||
rl_chain | ||
__init__.py | ||
conftest.py | ||
fake_llm.py | ||
test_bash.py | ||
test_data_anonymizer.py | ||
test_imports.py | ||
test_llm_bash.py | ||
test_llm_symbolic_math.py | ||
test_logical_fallacy.py | ||
test_mock.py | ||
test_ollama_functions.py | ||
test_pal.py | ||
test_python.py | ||
test_reversible_data_anonymizer.py | ||
test_smartllm.py | ||
test_sql.py | ||
test_text_splitter.py | ||
test_tot.py |