Skip to main content

Trail of Bits helped harden LiteLLM, and fixes are on the way

We're thrilled to share that LiteLLM was selected for Patch the Planet, the open-source security hardening program run by Trail of Bits in partnership with OpenAI. The engagement has now concluded, and over the next three to four weeks we will be shipping a series of security fixes and publishing the corresponding security advisories.

Trail of Bits worked within our codebase, identifying and triaging vulnerabilities, and proposing remediation patches. Their work covers a combination of issues they discovered as well as reports from independent security researchers.

Fixes will begin shipping in the coming days. Most will ship in public releases accompanied by a security advisory. The most severe vulnerabilities will go to our private registry first, under embargo.

What's happening​

Over the course of this year, we have significantly increased our investment in LiteLLM's security posture. We established dedicated security leadership, and are continuing to build out our security team. We have put a lot of focus on areas surrounding the codebase: the release pipeline, identity and access, internal policies and procedures, and monitoring and detection. We've partnered with HackerOne for a managed vulnerability disclosure program. We built out a private registry to enable embargoed releases for high-risk vulnerabilities. We now have LTS releases of LiteLLM to decouple resolving vulnerabilities from pulling in new features.

Our increased security investment also extends to the codebase itself, which is where Patch the Planet comes in.

Trail of Bits is one of the most highly respected security research firms today. In conjunction with OpenAI, they run an initiative called Patch the Planet, which combines frontier-model AI-driven vulnerability discovery with experienced security researchers who reproduce, validate, prioritize, and propose fixes for the findings. LiteLLM had the privilege of being selected for this initiative, joining prominent open-source projects like SQLite, Python, Go, WordPress, curl, rsync, and others. Our experience working with Trail of Bits was immensely positive, and I would strongly encourage maintainers of open source projects to apply.

Contextualizing advisory counts​

Over the coming weeks and as a result of this work, we will be publishing more advisories than in any comparable period.

Advisory volume reflects how closely software is examined and how openly its maintainers report what they find. Some of the most hardened software in the world publishes constantly: the Linux kernel issues thousands of CVEs a year, and Google Chrome hundreds. Trail of Bits examined LiteLLM very closely, and we are publishing an advisory for every fix that warrants one.

Each advisory published represents a weakness removed from the product. This high volume of upcoming advisories leaves us in a significantly better place.

How the fixes will ship​

Most fixes will ship in regular public releases and patches. When a fix is released, we will publish a GitHub Security Advisory on our advisory feed and request a CVE. The first of these should land in the coming days.

Fixes for the most severe vulnerabilities will be published first to the LiteLLM Private Registry under embargo, with public releases and advisories following two weeks later.

What you should do​

If you are pulling from our public registries, please ensure you are on a supported release. Fixes will ship to our supported release lines. For the least friction, we recommend the LTS release, which is the v1.108.x line.

If you receive embargoed fixes through our private registry, please run the LTS line or the latest stable release. Given the size and breadth of these fixes, embargoed builds will only be available on those two lines; the rest of the supported versions will receive each fix at its public release. Disclosure notices will include the patched version(s). We will also make the patches themselves available upon request.

We also recommend that you subscribe to the Security Announcements mailing list, though please note that this list is reserved for urgent or critical matters only, and does not replace our advisory feed. Emails from this list come from security@berri.ai, so please allowlist that address in your spam filters.

If you have questions about this work or any advisory that comes out of it, please reach out to security@berri.ai.