{"id":"CVE-2026-7381","aliases":["CVE-2026-7381"],"related":[],"kind":"vulnerability","state":"published","title":"Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting","summary":"Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting.\n\nPlack::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.\n\nA 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.\n\nSince 1.0053, Plack::Middleware::XSendfile is deprecated and will be removed from future releases of Plack.\n\nThis 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Plack::Middleware::XSendfile versions through 1.0053 for Perl can allow client-controlled path rewriting.\n\nPlack::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.\n\nA 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.\n\nSince 1.0053, Plack::Middleware::XSendfile is deprecated and will be removed from future releases of Plack.\n\nThis 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.","source":"cvelist"},{"lang":"es","text":"Las versiones de Plack::Middleware::XSendfile hasta la 1.0053 para Perl pueden permitir la reescritura de rutas controlada por el cliente.\n\nPlack::Middleware::XSendfile permite que la configuración de variación (tipo de sendfile) sea establecida por el cliente a través del encabezado X-Sendfile-Type, si no se considera en el constructor del middleware o en el entorno de Plack.\n\nUn cliente malicioso puede establecer el encabezado X-Sendfile-Type en ’X-Accel-Redirect’ para servicios que se ejecutan detrás de proxies inversos de nginx, y luego establecer el X-Accel-Mapping para mapear la ruta a un archivo arbitrario en el servidor.\n\nDesde la 1.0053, Plack::Middleware::XSendfile está obsoleto y será eliminado de futuras versiones de Plack.\n\nEsto es similar a CVE-2025-61780 para Rack::Sendfile, aunque Plack::Middleware::XSendfile tiene algunas mitigaciones que no permiten que se utilicen expresiones regulares en el mapeo, y solo aplican el mapeo para el tipo ’X-Accel-Redirect’.","source":"nvd"}],"published":"2026-04-29T22:13:35.351Z","modified":"2026-10-26T20:10:00.160Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-200","CWE-441","CWE-913"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"1.0053","status":"affected"}],"vendor":"MIYAGAWA","product":"Plack::Middleware::XSendfile","package":"Plack","repo":"https://github.com/plack/Plack","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"1.0053"}],"vendor":"miyagawa","product":"plack::middleware::xsendfile","cpe":"cpe:2.3:a:miyagawa:plack\\:\\:middleware\\:\\:xsendfile:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://metacpan.org/release/MIYAGAWA/Plack-1.0053/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/MIYAGAWA/Plack-1.0053/view/lib/Plack/Middleware/XSendfile.pm#DEPRECATION-NOTICE","tags":["product","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61780","tags":["related","us-government-resource"],"sources":["cvelist","nvd"]}],"credits":["CPANSec"],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-04-30T13:18:16.234Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-7381","url":"https://www.cve.org/CVERecord?id=CVE-2026-7381","licence":"CVE Terms of Use","modified":"2026-04-30T13:18:45.937Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-7381","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7381","licence":"Public domain","modified":"2026-10-26T20:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:20.256Z","epss":{"score":0.0045,"percentile":0.40852,"date":"2026-12-02T12:00:21.000Z"}}