Bug 2463971 (CVE-2026-7381) - CVE-2026-7381 Plack::Middleware::XSendfile: Plack: perl: Plack::Middleware::XSendfile: Information disclosure via client-controlled path rewriting
Summary: CVE-2026-7381 Plack::Middleware::XSendfile: Plack: perl: Plack::Middleware::X...
Keywords:
Status: NEW
Alias: CVE-2026-7381
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2464097 2464098
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-29 23:01 UTC by OSIDB Bzimport
Modified: 2026-04-30 12:05 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-04-29 23:01:20 UTC
Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting.

Plack::Middleware::XSendfile allows the variation setting (sendfile type) to be set by the client via the X-Sendfile-Type header, if it is not considered in the middleware constructor or the Plack environment.

A malicious client can set the X-Sendfile-Type header to "X-Accel-Redirect" to services running behind nginx reverse proxies, and then set the X-Accel-Mapping to map the path to an arbitrary file on the server.

Since 1.0053, Plack::Middleware::XSendfile is deprecated and will be removed from future releases of Plack.

This is similar to CVE-2025-61780 for Rack::Sendfile, although Plack::Middleware::XSendfile has some mitigations that disallow regular expressions to be used in the mapping, and only apply the mapping for the "X-Accel-Redirect" type.


Note You need to log in before you can comment on or make changes to this bug.