---
id: "CVE-2026-115825"
kind: "vulnerability"
aliases: ["CVE-2026-115825"]
title: "HTTP::Server::PSGI: one oversized Content-Length request crashes the Perl server"
severity: "high"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["http-server-psgi", "package", "perl", "psgi"]
not_affected_if: ["not-using-http-server-psgi"]
published_at: "2026-10-25T17:17:01+00:00"
first_seen_at: "2026-10-25T17:42:01+00:00"
updated_at: "2026-10-25T17:43:49+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-115825", "first_seen_at": "2026-10-25T17:42:01+00:00"}]
---

# HTTP::Server::PSGI: one oversized Content-Length request crashes the Perl server

HTTP::Server::PSGI reads request bodies with buffers sized by the declared Content-Length before any data arrives. A single request declaring a large length makes Perl run out of memory and exit, taking the server down until restarted.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `cpanm --info HTTP::Server::PSGI` or `perl -MHTTP::Server::PSGI -e 'print $HTTP::Server::PSGI::VERSION'` to read the installed version
- Check the lockfile or cpanfile for the pinned `HTTP::Server::PSGI` version

## Fix

- Upgrade HTTP::Server::PSGI to `1.0056` or later
- Until upgraded, put a reverse proxy in front that caps request body size

## Timeline

- 2026-10-25T17:42:01+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-115825

## From the sources

HTTP::Server::PSGI versions before 1.0056 for Perl allow a single request to crash the server by declaring a large Content-Length.

The request body is read with sysread() calls sized by the remaining Content-Length. Perl grows the read buffer to the requested length before any data arrives, so the server tries to allocate as much memory as the client declares.

A remote attacker can send one request with a large Content-Length and a few body bytes, and perl exits with an out-of-memory error before the application is called. HTTP::Server::PSGI runs as a single process, so the server stays down until restarted.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
