Vulnerability · Published Apr 29, 2026 · Assigned by CPANSec

CVE-2026-7381Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting

Critical 9.1

In plain English

A critical-severity information exposure in Plack::Middleware::XSendfile from MIYAGAWA. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities).

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.4%top 61.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libplack-perlno fix listedDEBIAN-CVE-2026-7381
Debian:13libplack-perlno fix listedDEBIAN-CVE-2026-7381
Debian:14libplack-perlno fix listedDEBIAN-CVE-2026-7381
Ubuntu:22.04:LTSlibplack-perlno fix listedUBUNTU-CVE-2026-7381
Ubuntu:24.04:LTSlibplack-perlno fix listedUBUNTU-CVE-2026-7381
Ubuntu:25.10libplack-perlno fix listedUBUNTU-CVE-2026-7381
Ubuntu:26.04:LTSlibplack-perlno fix listedUBUNTU-CVE-2026-7381
Ubuntu:26.10libplack-perlno fix listedUBUNTU-CVE-2026-7381

Affected products (as reported)

VendorProductVersions
MIYAGAWA Plack::Middleware::XSendfile 0 – through 1.0053

Weakness: CWE-200, CWE-441, CWE-913 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References