libplack-perl — security advisory
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.
- Products
- libplack-perl
- Affected versions
- 1.0037-1, 1.0038-1, 1.0039-1, 1.0042-1, 1.0044-1, 1.0045-1, 1.0047-1, 1.0047-2, 1.0048-1, 1.0050-1, 1.0051-1, 1.0054-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-7381
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:16 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-7381
libplack-perl
Fixed versions: Not specified
libplack-perl
Fixed versions: Not specified
libplack-perl
Fixed versions: Not specified
libplack-perl
Fixed versions: Not specified
libplack-perl
Fixed versions: Not specified
libplack-perl
Fixed versions: Not specified
libplack-perl
Fixed versions: Not specified
libplack-perl
Fixed versions: Not specified
Complete source record
{
"id": "2b0870f396e73594f1c8d3520e3a39001a2300dbb02acf7a90879463b1eee8aa",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-7381",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-7381",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-7381",
"products": [
{
"name": {
"value": "libplack-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0037-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0038-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0039-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libplack-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0042-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.0044-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.0045-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.0047-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libplack-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0047-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.0047-2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libplack-perl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0048-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libplack-perl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0050-1",
"evidence": "/affected/4/versions"
},
{
"value": "1.0051-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libplack-perl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0051-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libplack-perl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0051-1",
"evidence": "/affected/6/versions"
},
{
"value": "1.0054-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libplack-perl",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0051-1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2026-7381",
"aliases": [
"UBUNTU-CVE-2026-7381"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libplack-perl",
"purl": "pkg:deb/ubuntu/libplack-perl?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.0037-1",
"1.0038-1",
"1.0039-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-7381.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libplack-perl",
"binary_version": "1.0039-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libplack-perl",
"purl": "pkg:deb/ubuntu/libplack-perl?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.0042-1",
"1.0044-1",
"1.0045-1",
"1.0047-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-7381.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libplack-perl",
"binary_version": "1.0047-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libplack-perl",
"purl": "pkg:deb/ubuntu/libplack-perl?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.0047-1",
"1.0047-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-7381.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libplack-perl",
"binary_version": "1.0047-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libplack-perl",
"purl": "pkg:deb/ubuntu/libplack-perl?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.0048-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-7381.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libplack-perl",
"binary_version": "1.0048-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libplack-perl",
"purl": "pkg:deb/ubuntu/libplack-perl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.0050-1",
"1.0051-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-7381.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libplack-perl",
"binary_version": "1.0051-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libplack-perl",
"purl": "pkg:deb/ubuntu/libplack-perl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.0051-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-7381.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libplack-perl",
"binary_version": "1.0051-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libplack-perl",
"purl": "pkg:deb/ubuntu/libplack-perl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.0051-1",
"1.0054-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-7381.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libplack-perl",
"binary_version": "1.0054-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libplack-perl",
"purl": "pkg:deb/ubuntu/libplack-perl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.0051-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-7381.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libplack-perl",
"binary_version": "1.0051-1"
}
]
}
}
],
"modified": "2026-10-17T13:01:04.007817513Z",
"provider": "osv",
"upstream": [
"CVE-2026-7381"
],
"references": [
"https://ubuntu.com/security/CVE-2026-7381",
"https://www.cve.org/CVERecord?id=CVE-2026-7381",
"https://lists.security.metacpan.org/cve-announce/msg/39467666/"
]
},
"related_cves": [
{
"value": "CVE-2026-7381",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360924,
"published_at": "2026-04-29T23:16:00+00:00"
}