CVE-2026-7381Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow…
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libplack-perl | Fix pending | UBUNTU-CVE-2026-7381 | |
| Ubuntu 26.04 | libplack-perl | Under investigation | UBUNTU-CVE-2026-7381 | |
| Ubuntu 25.10 | libplack-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-7381 | |
| Ubuntu 24.04 | libplack-perl | Under investigation | UBUNTU-CVE-2026-7381 | |
| Ubuntu 22.04 | libplack-perl | Under investigation | UBUNTU-CVE-2026-7381 | |
| Ubuntu 20.04 | libplack-perl | Fix pending | UBUNTU-CVE-2026-7381 | |
| Ubuntu 18.04 | libplack-perl | Fix pending | UBUNTU-CVE-2026-7381 | |
| Ubuntu 16.04 | libplack-perl | Fix pending | UBUNTU-CVE-2026-7381 | |
| Debian 14 | libplack-perl | Fix pending | DEBIAN-CVE-2026-7381 | |
| Debian 13 | libplack-perl | Fix pending | DEBIAN-CVE-2026-7381 | |
| Debian 12 | libplack-perl | Fix pending | DEBIAN-CVE-2026-7381 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- MIYAGAWA Plack::Middleware::XSendfile: affected: up to 1.0053
Solution: Users are encouraged to set the appropriate header directly in their applications, or write their own middleware layer that does not allow configuration to be passed via HTTP request headers.
Workaround: Users can configure the X-Sendfile-Type in the middleware constructor, and the reverse proxy to unset the X-Sendfile-Type header and (on nginx) the X-Accel-Mapping request header.
Vendor advisories:
- https://metacpan.org/release/MIYAGAWA/Plack-1.0053/changes (release-notes)
References
- https://metacpan.org/release/MIYAGAWA/Plack-1.0053/changes
- https://metacpan.org/release/MIYAGAWA/Plack-1.0053/view/lib/Plack/Middleware/XSendfile.pm#DEPRECATION-NOTICE
- https://nvd.nist.gov/vuln/detail/CVE-2025-61780
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.