Skip to content

CVE-2024-21513 langchain-experimental vulnerable to Arbitrary Code Execution

HighCVSS 8.5 EPSS 1.9%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

Versions of the package langchain-experimental from 0.0.15 and before 0.0.21 are vulnerable to Arbitrary Code Execution when retrieving values from the database, the code will attempt to call 'eval' on all values. An attacker can exploit this vulnerability and execute arbitrary python code if they can control the input prompt and the server is configured with VectorSQLDatabaseChain.

Notes:

Impact on the Confidentiality, Integrity and Availability of the vulnerable component:

Confidentiality: Code execution happens within the impacted component, in this case langchain-experimental, so all resources are necessarily accessible.

Integrity: There is nothing protected by the impacted component inherently. Although anything returned from the component counts as 'information' for which the trustworthiness can be compromised.

Availability: The loss of availability isn't caused by the attack itself, but it happens as a result during the attacker's post-exploitation steps.

Impact on the Confidentiality, Integrity and Availability of the subsequent system:

As a legitimate low-privileged user of the package (PR:L) the attacker does not have more access to data owned by the package as a result of this vulnerability than they did with normal usage (e.g. can query the DB). The unintended action that one can perform by breaking out of the app environment and exfiltrating files, making remote connections etc. happens during the post exploitation phase in the subsequent system - in this case, the OS.

AT:P: An attacker needs to be able to influence the input prompt, whilst the server is configured with the VectorSQLDatabaseChain plugin.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
@langchain langchain experimental >= 0.0.15, < 0.0.21 0.0.21 Fixed
@langchain langchain-experimental >= 0.0.15, < 0.0.21 0.0.21 Fixed
pypi langchain-experimental(PyPI) < 0.0.21; = 0.0.1; = 0.0.1rc1; = 0.0.1rc2 +263 more 0.0.21 Fixed

Affected products

ProductAffected versionsFixed in
pypi langchain-experimental(PyPI) < 0.0.21 0.0.21
pypi langchain-experimental(PyPI) = 0.0.1 No fix listed
pypi langchain-experimental(PyPI) = 0.0.10 No fix listed
pypi langchain-experimental(PyPI) = 0.0.11 No fix listed
pypi langchain-experimental(PyPI) = 0.0.12 No fix listed
pypi langchain-experimental(PyPI) = 0.0.13 No fix listed
pypi langchain-experimental(PyPI) = 0.0.14 No fix listed
pypi langchain-experimental(PyPI) = 0.0.15 No fix listed
pypi langchain-experimental(PyPI) = 0.0.16 No fix listed
pypi langchain-experimental(PyPI) = 0.0.17 No fix listed
pypi langchain-experimental(PyPI) = 0.0.18 No fix listed
pypi langchain-experimental(PyPI) = 0.0.19 No fix listed
pypi langchain-experimental(PyPI) = 0.0.1rc1 No fix listed
pypi langchain-experimental(PyPI) = 0.0.1rc2 No fix listed
pypi langchain-experimental(PyPI) = 0.0.1rc3 No fix listed
pypi langchain-experimental(PyPI) = 0.0.1rc4 No fix listed
pypi langchain-experimental(PyPI) = 0.0.2 No fix listed
pypi langchain-experimental(PyPI) = 0.0.20 No fix listed
pypi langchain-experimental(PyPI) = 0.0.3 No fix listed
pypi langchain-experimental(PyPI) = 0.0.4 No fix listed
pypi langchain-experimental(PyPI) = 0.0.5 No fix listed
pypi langchain-experimental(PyPI) = 0.0.6 No fix listed
pypi langchain-experimental(PyPI) = 0.0.7 No fix listed
pypi langchain-experimental(PyPI) = 0.0.8 No fix listed
pypi langchain-experimental(PyPI) = 0.0.9 No fix listed
Show 175 more
ProductAffected versionsFixed in
pypi langchain-experimental(PyPI) = v0.0.298 No fix listed
pypi langchain-experimental(PyPI) = v0.0.300 No fix listed
pypi langchain-experimental(PyPI) = v0.0.299 No fix listed
pypi langchain-experimental(PyPI) = v0.0.297 No fix listed
pypi langchain-experimental(PyPI) = v0.0.296 No fix listed
pypi langchain-experimental(PyPI) = v0.0.295 No fix listed
pypi langchain-experimental(PyPI) = v0.0.294 No fix listed
pypi langchain-experimental(PyPI) = v0.0.293 No fix listed
pypi langchain-experimental(PyPI) = v0.0.292 No fix listed
pypi langchain-experimental(PyPI) = v0.0.291 No fix listed
pypi langchain-experimental(PyPI) = v0.0.290 No fix listed
pypi langchain-experimental(PyPI) = v0.0.289 No fix listed
pypi langchain-experimental(PyPI) = v0.0.288 No fix listed
pypi langchain-experimental(PyPI) = v0.0.287 No fix listed
pypi langchain-experimental(PyPI) = v0.0.286 No fix listed
pypi langchain-experimental(PyPI) = v0.0.285 No fix listed
pypi langchain-experimental(PyPI) = v0.0.284 No fix listed
pypi langchain-experimental(PyPI) = v0.0.283 No fix listed
pypi langchain-experimental(PyPI) = v0.0.281 No fix listed
pypi langchain-experimental(PyPI) = v0.0.279 No fix listed
pypi langchain-experimental(PyPI) = v0.0.278 No fix listed
pypi langchain-experimental(PyPI) = v0.0.277 No fix listed
pypi langchain-experimental(PyPI) = v0.0.276 No fix listed
pypi langchain-experimental(PyPI) = v0.0.275 No fix listed
pypi langchain-experimental(PyPI) = v0.0.274 No fix listed
pypi langchain-experimental(PyPI) = v0.0.273 No fix listed
pypi langchain-experimental(PyPI) = v0.0.272 No fix listed
pypi langchain-experimental(PyPI) = v0.0.271 No fix listed
pypi langchain-experimental(PyPI) = v0.0.270 No fix listed
pypi langchain-experimental(PyPI) = v0.0.269 No fix listed
pypi langchain-experimental(PyPI) = v0.0.268 No fix listed
pypi langchain-experimental(PyPI) = v0.0.267 No fix listed
pypi langchain-experimental(PyPI) = v0.0.266 No fix listed
pypi langchain-experimental(PyPI) = v0.0.265 No fix listed
pypi langchain-experimental(PyPI) = v0.0.264 No fix listed
pypi langchain-experimental(PyPI) = v0.0.263 No fix listed
pypi langchain-experimental(PyPI) = v0.0.262 No fix listed
pypi langchain-experimental(PyPI) = v0.0.261 No fix listed
pypi langchain-experimental(PyPI) = v0.0.260 No fix listed
pypi langchain-experimental(PyPI) = v0.0.259 No fix listed
pypi langchain-experimental(PyPI) = v0.0.258 No fix listed
pypi langchain-experimental(PyPI) = v0.0.257 No fix listed
pypi langchain-experimental(PyPI) = v0.0.256 No fix listed
pypi langchain-experimental(PyPI) = v0.0.255 No fix listed
pypi langchain-experimental(PyPI) = v0.0.254 No fix listed
pypi langchain-experimental(PyPI) = v0.0.253 No fix listed
pypi langchain-experimental(PyPI) = v0.0.252 No fix listed
pypi langchain-experimental(PyPI) = v0.0.251 No fix listed
pypi langchain-experimental(PyPI) = v0.0.250 No fix listed
pypi langchain-experimental(PyPI) = v0.0.249 No fix listed
pypi langchain-experimental(PyPI) = v0.0.248 No fix listed
pypi langchain-experimental(PyPI) = v0.0.247 No fix listed
pypi langchain-experimental(PyPI) = v0.0.245 No fix listed
pypi langchain-experimental(PyPI) = v0.0.5 No fix listed
pypi langchain-experimental(PyPI) = v0.0.244 No fix listed
pypi langchain-experimental(PyPI) = v0.0.4 No fix listed
pypi langchain-experimental(PyPI) = v0.0.243 No fix listed
pypi langchain-experimental(PyPI) = v0.0.242 No fix listed
pypi langchain-experimental(PyPI) = v0.0.2 No fix listed
pypi langchain-experimental(PyPI) = v0.0.240 No fix listed
pypi langchain-experimental(PyPI) = v0.0.1 No fix listed
pypi langchain-experimental(PyPI) = v0.0.240rc4 No fix listed
pypi langchain-experimental(PyPI) = v0.0.1rc4 No fix listed
pypi langchain-experimental(PyPI) = v0.0.240rc1 No fix listed
pypi langchain-experimental(PyPI) = v0.0.240rc0 No fix listed
pypi langchain-experimental(PyPI) = v0.0.1rc3 No fix listed
pypi langchain-experimental(PyPI) = v0.0.1rc2 No fix listed
pypi langchain-experimental(PyPI) = v0.0.1rc1 No fix listed
pypi langchain-experimental(PyPI) = v0.0.1rc0 No fix listed
pypi langchain-experimental(PyPI) = v0.0.239 No fix listed
pypi langchain-experimental(PyPI) = v0.0.238 No fix listed
pypi langchain-experimental(PyPI) = v0.0.237 No fix listed
pypi langchain-experimental(PyPI) = v0.0.236 No fix listed
pypi langchain-experimental(PyPI) = v0.0.235 No fix listed
pypi langchain-experimental(PyPI) = v0.0.234 No fix listed
pypi langchain-experimental(PyPI) = v0.0.233 No fix listed
pypi langchain-experimental(PyPI) = v0.0.232 No fix listed
pypi langchain-experimental(PyPI) = v0.0.231 No fix listed
pypi langchain-experimental(PyPI) = v0.0.230 No fix listed
pypi langchain-experimental(PyPI) = v0.0.229 No fix listed
pypi langchain-experimental(PyPI) = v0.0.228 No fix listed
pypi langchain-experimental(PyPI) = v0.0.227 No fix listed
pypi langchain-experimental(PyPI) = v0.0.226 No fix listed
pypi langchain-experimental(PyPI) = v0.0.225 No fix listed
pypi langchain-experimental(PyPI) = v0.0.224 No fix listed
pypi langchain-experimental(PyPI) = v0.0.223 No fix listed
pypi langchain-experimental(PyPI) = v0.0.222 No fix listed
pypi langchain-experimental(PyPI) = v0.0.221 No fix listed
pypi langchain-experimental(PyPI) = v0.0.220 No fix listed
pypi langchain-experimental(PyPI) = v0.0.219 No fix listed
pypi langchain-experimental(PyPI) = v0.0.218 No fix listed
pypi langchain-experimental(PyPI) = v0.0.217 No fix listed
pypi langchain-experimental(PyPI) = v0.0.216 No fix listed
pypi langchain-experimental(PyPI) = v0.0.215 No fix listed
pypi langchain-experimental(PyPI) = v0.0.214 No fix listed
pypi langchain-experimental(PyPI) = v0.0.213 No fix listed
pypi langchain-experimental(PyPI) = v0.0.212 No fix listed
pypi langchain-experimental(PyPI) = v0.0.211 No fix listed
pypi langchain-experimental(PyPI) = v0.0.210 No fix listed
pypi langchain-experimental(PyPI) = v0.0.209 No fix listed
pypi langchain-experimental(PyPI) = v0.0.208 No fix listed
pypi langchain-experimental(PyPI) = v0.0.207 No fix listed
pypi langchain-experimental(PyPI) = v0.0.206 No fix listed
pypi langchain-experimental(PyPI) = v0.0.205 No fix listed
pypi langchain-experimental(PyPI) = v0.0.204 No fix listed
pypi langchain-experimental(PyPI) = v0.0.202 No fix listed
pypi langchain-experimental(PyPI) = v0.0.201 No fix listed
pypi langchain-experimental(PyPI) = v0.0.200 No fix listed
pypi langchain-experimental(PyPI) = v0.0.199 No fix listed
pypi langchain-experimental(PyPI) = v0.0.198 No fix listed
pypi langchain-experimental(PyPI) = v0.0.197 No fix listed
pypi langchain-experimental(PyPI) = v0.0.196 No fix listed
pypi langchain-experimental(PyPI) = v0.0.195 No fix listed
pypi langchain-experimental(PyPI) = v0.0.194 No fix listed
pypi langchain-experimental(PyPI) = v0.0.193 No fix listed
pypi langchain-experimental(PyPI) = v0.0.192 No fix listed
pypi langchain-experimental(PyPI) = v0.0.191 No fix listed
pypi langchain-experimental(PyPI) = v0.0.190 No fix listed
pypi langchain-experimental(PyPI) = v0.0.189 No fix listed
pypi langchain-experimental(PyPI) = v0.0.188 No fix listed
pypi langchain-experimental(PyPI) = v0.0.187 No fix listed
pypi langchain-experimental(PyPI) = v0.0.186 No fix listed
pypi langchain-experimental(PyPI) = v0.0.185 No fix listed
pypi langchain-experimental(PyPI) = v0.0.184 No fix listed
pypi langchain-experimental(PyPI) = v0.0.183 No fix listed
pypi langchain-experimental(PyPI) = v0.0.182 No fix listed
pypi langchain-experimental(PyPI) = v0.0.181 No fix listed
pypi langchain-experimental(PyPI) = v0.0.180 No fix listed
pypi langchain-experimental(PyPI) = v0.0.179 No fix listed
pypi langchain-experimental(PyPI) = v0.0.178 No fix listed
pypi langchain-experimental(PyPI) = v0.0.177 No fix listed
pypi langchain-experimental(PyPI) = v0.0.175 No fix listed
pypi langchain-experimental(PyPI) = v0.0.174 No fix listed
pypi langchain-experimental(PyPI) = v0.0.173 No fix listed
pypi langchain-experimental(PyPI) = v0.0.172 No fix listed
pypi langchain-experimental(PyPI) = v0.0.171 No fix listed
pypi langchain-experimental(PyPI) = v0.0.170 No fix listed
pypi langchain-experimental(PyPI) = v0.0.169 No fix listed
pypi langchain-experimental(PyPI) = v0.0.168 No fix listed
pypi langchain-experimental(PyPI) = v0.0.167 No fix listed
pypi langchain-experimental(PyPI) = v0.0.166 No fix listed
pypi langchain-experimental(PyPI) = v0.0.165 No fix listed
pypi langchain-experimental(PyPI) = v0.0.164 No fix listed
pypi langchain-experimental(PyPI) = v0.0.163 No fix listed
pypi langchain-experimental(PyPI) = v0.0.161 No fix listed
pypi langchain-experimental(PyPI) = v0.0.162 No fix listed
pypi langchain-experimental(PyPI) = v0.0.160 No fix listed
pypi langchain-experimental(PyPI) = v0.0.159 No fix listed
pypi langchain-experimental(PyPI) = v0.0.158 No fix listed
pypi langchain-experimental(PyPI) = v0.0.157 No fix listed
pypi langchain-experimental(PyPI) = v0.0.156 No fix listed
pypi langchain-experimental(PyPI) = v0.0.155 No fix listed
pypi langchain-experimental(PyPI) = v0.0.154 No fix listed
pypi langchain-experimental(PyPI) = v0.0.153 No fix listed
pypi langchain-experimental(PyPI) = v0.0.152 No fix listed
pypi langchain-experimental(PyPI) = v0.0.151 No fix listed
pypi langchain-experimental(PyPI) = v0.0.150 No fix listed
pypi langchain-experimental(PyPI) = v0.0.149 No fix listed
pypi langchain-experimental(PyPI) = v0.0.147 No fix listed
pypi langchain-experimental(PyPI) = v0.0.146 No fix listed
pypi langchain-experimental(PyPI) = v0.0.145 No fix listed
pypi langchain-experimental(PyPI) = v0.0.144 No fix listed
pypi langchain-experimental(PyPI) = v0.0.143 No fix listed
pypi langchain-experimental(PyPI) = v0.0.142 No fix listed
pypi langchain-experimental(PyPI) = v0.0.141 No fix listed
pypi langchain-experimental(PyPI) = v0.0.140 No fix listed
pypi langchain-experimental(PyPI) = v0.0.139 No fix listed
pypi langchain-experimental(PyPI) = v0.0.138 No fix listed
pypi langchain-experimental(PyPI) = v0.0.137 No fix listed
pypi langchain-experimental(PyPI) = v0.0.136 No fix listed
pypi langchain-experimental(PyPI) = v0.0.135 No fix listed
pypi langchain-experimental(PyPI) = v0.0.134 No fix listed
pypi langchain-experimental(PyPI) = v0.0.133 No fix listed
pypi langchain-experimental(PyPI) = v0.0.132 No fix listed
pypi langchain-experimental(PyPI) = v0.0.131 No fix listed

References