Five days, five security incidents that broke the internet.
PHP2Shell is broadly exploited, LiteLLM 1.107.0 shipped malware (49,000 downloads), and OpenCode, Railway and eMudhra put keys at risk. What to do now.

TL;DR: OpenCode had API keys extracted from its hosted console, affecting 1.4% of console users. eMudhra created certificates with weak keys and will exit the TLS certificate business. PHP2Shell, a critical remote code execution vulnerability in PHP, is now broadly exploited. A malicious LiteLLM release that steals credentials was downloaded about 49,000 times. And Railway had a breach that may have exposed customers' environment variables, so it paused deployments.
If you write PHP code, use OpenCode or LiteLLM, or even just use X or LinkedIn, you've probably heard about some of the security issues we've been through in the past few days.
The overall damage is still unclear, but a lot of credentials got exposed, and some customers are already paying for it. I predict that in the next couple of weeks, we'll learn more and more about the impact and the root cause of each one.
In this short post, I'm going to explain each one of the issues and what is known as of today, October 22.
OpenCode security breach: exposed console API keys
OpenCode is an open-source AI coding CLI with more than 220,000 GitHub stars, but it also has a hosted console. On October 17, the company announced a breach where API keys for AI providers got extracted from its hosted console customers. The company says 1.4% of console users are affected, and some of them reported charges of up to $1,700.
If you stored AI provider keys in the OpenCode console, replace them and check your provider usage since October 16.
eMudhra CA compromise: weak intermediate certificate keys
On October 20, the Indian identity company eMudhra disclosed an issue in its key generation, which caused the production of weak keys for eight intermediate certificates. The keys were so weak that a researcher calculated the private keys from the public certificates. Diving deep into how certificate authorities (CAs) work is outside the scope of this blog, but access to those keys gives the ability to impersonate websites. For example, users can shop on amazon.com, see the lock in the address bar, and type their credit card into a totally different site.
Two days later, eMudhra announced that it will exit the global SSL/TLS certificate business. The company says that business is only about 1% of its revenue (under $1 million a year), but its shares still fell 40% in the two days after the disclosure.
Up-to-date browsers no longer trust these certificates, but older browsers and apps might. So update your browsers, operating systems, and any app that ships its own list of trusted certificates.
PHP2Shell: critical PHP remote code execution vulnerability
PHP powers WordPress, Drupal, and Laravel, so a large part of the web runs on it. On October 20, the PHP Foundation warned that a security release would fix two critical vulnerabilities the next day.

The PHP Foundation's advance notice on October 20, seen about 7 million times. Original post.
On October 21, PHP2Shell came out: a critical unauthenticated remote code execution vulnerability with two CVEs, plus a video with a leaked proof of concept. It's based on a memory-limit bug that a core PHP developer found back in 2024, which stayed unresolved for years because the fix was complicated. Remote code execution means an attacker can run code on your server and use it to reach more and more systems.
PHP2Shell is now broadly exploited, and attackers didn't wait for the announcement: Cloudflare saw thousands of exploit attempts in the 10 hours before it, and millions within 12 hours after it. Who knows if it's related to the other incidents we saw this week?
If you run PHP, update to 8.5.12, 8.4.27, 8.3.36, or 8.2.35, and run php -v on the server to check your version. If you're on PHP 8.1 or older, ask your vendor for a patch.
LiteLLM 1.107.0: malware in a signed release
If you've ever set up an AI gateway, you might have heard of LiteLLM. It's an open-source package that lets you integrate many AI providers into one place. On October 21, the company announced that version 1.107.0 contained malware. It was live on PyPI for about two hours and was downloaded about 49,000 times.
Attackers stole the GitHub credentials of three LiteLLM developers and used them for a supply chain attack. The official source code on GitHub stayed clean, but they changed the release workflow to build from a lookalike repository, so the packages people downloaded were signed and malicious. The malware was designed to extract cloud credentials, AI provider keys, and passwords. Private enterprise releases were not affected. And it's not the first attack on AI developer tools: in May, the TanStack campaign targeted AI tooling packages on npm and PyPI.
If you installed 1.107.0 from PyPI or Docker, rebuild the machine, rotate every credential it could reach, and pin LiteLLM to 1.106.2. Run pip show litellm to check your version. The Docker tags latest, main-latest, and main-stable also served the malicious version on October 21, from 11:46 to 14:20 UTC.
Railway security breach: exposed environment variables
Last but not least, on the same day, October 21, Railway, a platform that developers use to deploy applications (like Vercel), announced a breach. An attacker may have accessed the encrypted environment variables that customers store on Railway and decrypted some of them, and those can include API keys, database credentials, and private registry credentials. Railway paused all deployments while it investigated, so customers couldn't release updates. As of October 22, builds are back for Enterprise and Pro workspaces, but still paused for Hobby, Free, and Trial plans.

The top of Railway's October 21 announcement, cropped from the original notice.
If you use Railway, rotate every environment variable and registry credential you store there, and check your service logs. Railway also revoked all its API tokens, so you'll need to create new ones.
Summary: what to do now
These incidents might be related or might be independent. The question is, what is the impact? It's not clear yet, and we're still in the early days. But I believe we'll see more of these soon: capable models are getting more and more accessible, and almost everyone can just run security research and attacks.
For now, what to do depends on the incident: rotate potentially exposed credentials, install the PHP fixes, rebuild compromised LiteLLM environments, and update affected browsers and trust stores.
The basics stay the same. We still need credential hygiene, we still need incident response processes, and we still need the ability to detect and prevent those issues. But since zero-days and novel vulnerabilities are getting more and more common, we need the capability to detect and remediate at machine speed.
Sources
- OpenCode: The Hacker News, BleepingComputer
- eMudhra: eMudhra, Google, Business Standard
- PHP2Shell (CVE-2026-109618 and CVE-2026-109619): PHP Foundation, Wiz, AWS, Cloudflare's CEO
- LiteLLM: LiteLLM, Wiz
- Railway: Railway, Railway status page