(CVE-2026-41873) Apache Pony Mail CRLF Injection and SSRF Leading to Full Account Takeover
A CRLF injection in Apache Pony Mail's email.lua lets an unauthenticated attacker smuggle arbitrary HTTP requests to Elasticsearch. This enables full account takeover, including administrator accounts.
starlabs.sg
Published on starlabs.sg
A blind Server-Side Request Forgery vulnerability in Apache Pony Mail Foal allows an attacker to send limited crafted requests to the server, potentially resulting in unauthorized access to internal resources.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the email.lua component passes user-controlled input into an outbound HTTP request to Elasticsearch without stripping carriage-return and line-feed characters, allowing request smuggling.
Impact
An unauthenticated remote attacker could take over any account, including administrator accounts; the product is retired with no fix planned.
What the attacker needed
No authentication needed; network access to the Pony Mail instance
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
CRLF injection means an attacker can insert special line-break characters into a value the server uses to build a request, so the server sends extra hidden requests. Here that lets someone who is not logged in make the mail server talk to its search database (Elasticsearch) in ways it should not, and from there take over any account.
What is Smuggling / CRLF?
A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.