CVE-2026-7381

CRITICAL CVSS 3.1: 9.1 EPSS 0.44%
Updated Oct 26, 2026
Miyagawa
Parameter Value
CVSS 9.1 (CRITICAL)
Affected Versions before 1.0053
Type CWE-913, CWE-441, CWE-200 (Information Exposure)
Vendor Miyagawa
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Miyagawa Plack\
cpe:2.3:a:miyagawa:plack\:\:middleware\:\:xsendfile:*:*:*:*:*:perl:*:*
— <= 1.0053

Related Vulnerabilities