CVEfocus › CVE database › CVE-2026-7381

CVE-2026-7381Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow…

CVSS 9.1 CriticalEPSS 0.5% (higher than 38% of CVEs)Published 2026-04-29Updated 2026-04-30Assigner: CPANSec

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.

CWE-200CWE-441CWE-913

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

7Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libplack-perlFix pendingUBUNTU-CVE-2026-7381
Ubuntu 26.04libplack-perlUnder investigationUBUNTU-CVE-2026-7381
Ubuntu 25.10libplack-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-7381
Ubuntu 24.04libplack-perlUnder investigationUBUNTU-CVE-2026-7381
Ubuntu 22.04libplack-perlUnder investigationUBUNTU-CVE-2026-7381
Ubuntu 20.04libplack-perlFix pendingUBUNTU-CVE-2026-7381
Ubuntu 18.04libplack-perlFix pendingUBUNTU-CVE-2026-7381
Ubuntu 16.04libplack-perlFix pendingUBUNTU-CVE-2026-7381
Debian 14libplack-perlFix pendingDEBIAN-CVE-2026-7381
Debian 13libplack-perlFix pendingDEBIAN-CVE-2026-7381
Debian 12libplack-perlFix pendingDEBIAN-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.

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:

References

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.