Skip to main content

Plack::Middleware::XSendfile CVE-2026-7381

CRITICAL
Information Exposure (CWE-200)
2026-04-29 CPANSec
9.1
CVSS 3.1
Share

CVSS VectorNVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

4
Analysis Generated
Apr 30, 2026 - 14:22 vuln.today
CVSS changed
Apr 30, 2026 - 14:22 NVD
9.1 (CRITICAL)
Analysis Generated
Apr 29, 2026 - 23:00 vuln.today
CVE Published
Apr 29, 2026 - 22:13 nvd
CRITICAL 9.1

DescriptionNVD

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.

AnalysisAI

Plack::Middleware::XSendfile through version 1.0053 allows remote unauthenticated attackers to read arbitrary files from nginx-proxied servers by injecting malicious X-Sendfile-Type and X-Accel-Mapping headers. When the middleware's sendfile type is not explicitly configured, clients can force nginx's X-Accel-Redirect mode and manipulate path mappings to access sensitive files outside intended directories. …

Sign in for full analysis, threat intelligence, and remediation guidance.

RemediationAI

Within 24 hours: Inventory all Plack applications and identify those using Plack::Middleware::XSendfile (check Gemfile, Gemfile.lock, or package manifests for versions ≤1.0053). Within 7 days: Remove or disable Plack::Middleware::XSendfile from all applications; migrate to native nginx sendfile functionality or alternative file serving mechanisms without this middleware. …

Sign in for detailed remediation steps.

Share

CVE-2026-7381 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy