A vulnerability classified as critical has been found in chatchat-space Langchain-Chatchat up to 0.3.1. This affects the function upload_temp_docs of the file /knowledge_base/upload_temp_docs of the component Backend. The manipulation of the argument flag leads to path traversal. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://vuldb.com/?id.314325 | vdb entry technical description |
https://vuldb.com/?ctiid.314325 | signature permissions required |
https://vuldb.com/?submit.601155 | third party advisory |
https://github.com/chatchat-space/Langchain-Chatchat/issues/5352 | exploit issue tracking |