CVE-2026-7381
published critical CVSS 3.1 · 9.1Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MIYAGAWA | — | PlackPlack::Middleware::XSendfile · 0 through 1.0053 · Other versions: unaffected | Affected | Not stated | CPANSec |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MIYAGAWA | Plack::Middleware::XSendfile | 0 through 1.0053 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
3- CWE-200 CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- CWE-441 CWE-441 Unintended Proxy or Intermediary
- CWE-913 CWE-913 Improper Control of Dynamically-Managed Code Resources
References
3Provider assertions
2CPANSec · cna
Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dc75c150fcc53f618a3496093dc3fce41da0b537f7f81063ed2f787d63a7cb50
- Ingested
- 23 Sep 2026, 09:33:51 UTC
- Source record
- Official CVE record