{"id":13480,"date":"2026-06-09T10:03:41","date_gmt":"2026-06-09T10:03:41","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2026\/06\/09\/hackers-exploiting-litellm-rce-vulnerability-in-the-wild-to-run-arbitrary-commands\/"},"modified":"2026-06-09T10:03:41","modified_gmt":"2026-06-09T10:03:41","slug":"hackers-exploiting-litellm-rce-vulnerability-in-the-wild-to-run-arbitrary-commands","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2026\/06\/09\/hackers-exploiting-litellm-rce-vulnerability-in-the-wild-to-run-arbitrary-commands\/","title":{"rendered":"Hackers Exploiting LiteLLM RCE Vulnerability in the Wild to Run Arbitrary Commands"},"content":{"rendered":"<p>    Hackers Exploiting LiteLLM RCE Vulnerability in the Wild to Run Arbitrary Commands<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p class=\"wp-block-paragraph\">Threat actors are actively exploiting a critical chained <a href=\"https:\/\/cybersecuritynews.com\/litellm-sql-injection-vulnerability-exploited\/\" target=\"_blank\" rel=\"noreferrer noopener\">vulnerability in LiteLLM<\/a>, a popular open-source AI gateway proxy, allowing unauthenticated remote code execution (RCE) on vulnerable deployments. Researchers at Horizon3.ai confirmed that combining two CVEs creates a CVSS 10.0 Critical attack path requiring zero credentials.<\/p>\n<p class=\"wp-block-paragraph\">At the core of this threat is <a href=\"https:\/\/github.com\/advisories\/GHSA-v4p8-mg3p-g94g\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">CVE-2026-42271<\/a>, a command injection flaw in LiteLLM\u2019s Model Context Protocol (MCP) server test endpoints. Specifically, the following endpoints accept full server configurations including commands, arguments, and environment variables \u2014 and spawn the supplied input as a subprocess on the host:<\/p>\n<ul class=\"wp-block-list\">\n<li><code>POST \/mcp-rest\/test\/connection<\/code><\/li>\n<li><code>POST \/mcp-rest\/test\/tools\/list<\/code><\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">When initially disclosed on April 20, 2026, the flaw was considered limited in impact because access required a valid proxy API key. That assumption was dismantled when <a href=\"https:\/\/horizon3.ai\/attack-research\/vulnerabilities\/cve-2026-42271-chained-with-cve-2026-48710\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Horizon3.ai researchers chained<\/a> it with CVE-2026-48710, a Starlette \u201cBadHost\u201d Host Header validation bypass affecting Starlette versions 1.0.0 and earlier.<\/p>\n<p class=\"wp-block-paragraph\">By manipulating the HTTP Host header to exploit the Starlette authentication bypass, attackers can sidestep LiteLLM\u2019s API key requirement entirely. The result is that unauthenticated remote code execution commands execute with the same privileges as the LiteLLM proxy process, with no login or API key required.<\/p>\n<p class=\"wp-block-paragraph\">Affected versions span LiteLLM 1.74.2 through 1.83.6 on deployments whose dependency tree includes Starlette \u2264 1.0.0.<\/p>\n<h2 id=\"h-litellm-rce-vulnerability-exploited\" class=\"wp-block-heading\"><strong>LiteLLM RCE Vulnerability Exploited<\/strong><\/h2>\n<p class=\"wp-block-paragraph\">Successful exploitation of this chained vulnerability gives attackers significant reach into AI infrastructure. Once code execution is achieved, threat actors can:<\/p>\n<ul class=\"wp-block-list\">\n<li>Execute arbitrary OS commands on the LiteLLM host<\/li>\n<li>Steal API keys and model provider credentials stored by the proxy<\/li>\n<li>Access secrets and environment variables in the proxy process<\/li>\n<li>Move laterally into connected AI infrastructure and downstream systems<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">Given that LiteLLM is widely used to route and manage API calls to large language models (LLMs) from providers like OpenAI, Anthropic, and Azure, a compromise of the gateway layer can cascade into broader AI supply chain exposure.<\/p>\n<h2 id=\"h-indicators-of-compromise\" class=\"wp-block-heading\"><strong>Indicators of Compromise<\/strong><\/h2>\n<p class=\"wp-block-paragraph\">Security teams should monitor for the following signs of exploitation activity:<\/p>\n<ul class=\"wp-block-list\">\n<li>Unexpected subprocess execution originating from the LiteLLM process<\/li>\n<li>HTTP requests targeting <code>\/mcp-rest\/test\/connection<\/code> or <code>\/mcp-rest\/test\/tools\/list<\/code>\n<\/li>\n<li>Unusual or malformed <code>Host<\/code> header values in proxy logs<\/li>\n<li>Unauthorized command execution events on the host system<\/li>\n<li>\n<\/ul>\n<p class=\"wp-block-paragraph\">Organizations should immediately upgrade LiteLLM to version 1.83.7 or later and ensure Starlette is updated to version 1.0.1 or later. If patching cannot be applied immediately, defenders should:<\/p>\n<ul class=\"wp-block-list\">\n<li>Block external access to the MCP test endpoints<\/li>\n<li>Restrict proxy network access to trusted segments only<\/li>\n<li>Rotate all credentials and API keys stored by the proxy<\/li>\n<li>Review logs for anomalous Host header values and subprocess events<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">Given active in-the-wild exploitation, patching should be treated as an emergency priority for any organization running a self-hosted LiteLLM deployment.<\/p>\n<p class=\"has-text-align-center has-background wp-block-paragraph\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\"><strong>Follow us on\u00a0<a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener\">Google News<\/a>,\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener\">LinkedIn<\/a>,\u00a0and\u00a0<a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>\u00a0to Get More Instant Updates.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/litellm-rce-vulnerability-exploited\/\">Hackers Exploiting LiteLLM RCE Vulnerability in the Wild to Run Arbitrary Commands<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Guru Baran<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/litellm-rce-vulnerability-exploited\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackers Exploiting LiteLLM RCE Vulnerability in the Wild to Run Arbitrary Commands Threat actors are actively exploiting a critical chained vulnerability in LiteLLM, a popular open-source AI gateway proxy, allowing unauthenticated remote code execution (RCE) on vulnerable deployments. Researchers at Horizon3.ai confirmed that combining two CVEs creates a CVSS 10.0 Critical attack path requiring zero [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,131,648],"tags":[130],"class_list":["post-13480","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-vulnerability","category-vulnerability-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13480"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=13480"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13480\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=13480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=13480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=13480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}