php-league-flysystem — security advisory
Flysystem is an open source file storage library for PHP. The whitespace normalisation using in 1.x and 2.x removes any unicode whitespace. Under certain specific conditions this could potentially allow a malicious user to execute code remotely. The conditions are: A user is allowed to supply the path or filename of an uploaded file, the supplied path or filename is not checked against unicode chars, the supplied pathname checked against an extension deny-list, not an allow-list, the supplied path or filename contains a unicode whitespace char in the extension, the uploaded file is stored in a directory that allows PHP code to be executed. Given these conditions are met a user can upload and execute arbitrary code on the system under attack. The unicode whitespace removal has been replaced with a rejection (exception). For 1.x users, upgrade to 1.1.4. For 2.x users, upgrade to 2.1.1.
- Products
- php-league-flysystem
- Affected versions
- 1.0.15-1, 1.0.16-1, 1.0.16-1build1, 1.1.10-1, 1.1.3-4, 3.29.1-2
- Fixed versions
- Not specified
- CVEs
- CVE-2021-32708
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:34 UTC · Revision 1
Source evidence
Flysystem is an open source file storage library for PHP. The whitespace normalisation using in 1.x and 2.x removes any unicode whitespace. Under certain specific conditions this could potentially allow a malicious user to execute code remotely. The conditions are: A user is allowed to supply the path or filename of an uploaded file, the supplied path or filename is not checked against unicode chars, the supplied pathname checked against an extension deny-list, not an allow-list, the supplied path or filename contains a unicode whitespace char in the extension, the uploaded file is stored in a directory that allows PHP code to be executed. Given these conditions are met a user can upload and execute arbitrary code on the system under attack. The unicode whitespace removal has been replaced with a rejection (exception). For 1.x users, upgrade to 1.1.4. For 2.x users, upgrade to 2.1.1.
osv:UBUNTU-CVE-2021-32708
php-league-flysystem
Fixed versions: Not specified
php-league-flysystem
Fixed versions: Not specified
php-league-flysystem
Fixed versions: Not specified
php-league-flysystem
Fixed versions: Not specified
php-league-flysystem
Fixed versions: Not specified
php-league-flysystem
Fixed versions: Not specified
Complete source record
{
"id": "e7b8adebd0c62fbfe98a2107c33a0bf5c0fb0d0bf7ddeb9fa5e9d03211cccdaf",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-32708",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-32708",
"summary": "Flysystem is an open source file storage library for PHP. The whitespace normalisation using in 1.x and 2.x removes any unicode whitespace. Under certain specific conditions this could potentially allow a malicious user to execute code remotely. The conditions are: A user is allowed to supply the path or filename of an uploaded file, the supplied path or filename is not checked against unicode chars, the supplied pathname checked against an extension deny-list, not an allow-list, the supplied path or filename contains a unicode whitespace char in the extension, the uploaded file is stored in a directory that allows PHP code to be executed. Given these conditions are met a user can upload and execute arbitrary code on the system under attack. The unicode whitespace removal has been replaced with a rejection (exception). For 1.x users, upgrade to 1.1.4. For 2.x users, upgrade to 2.1.1.",
"evidence": "osv:UBUNTU-CVE-2021-32708",
"products": [
{
"name": {
"value": "php-league-flysystem",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.15-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.16-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.16-1build1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "php-league-flysystem",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.3-4",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "php-league-flysystem",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.10-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "php-league-flysystem",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.29.1-2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "php-league-flysystem",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.29.1-2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "php-league-flysystem",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.29.1-2",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2021-32708",
"aliases": [
"UBUNTU-CVE-2021-32708"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-league-flysystem",
"purl": "pkg:deb/ubuntu/php-league-flysystem?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.0.15-1",
"1.0.16-1",
"1.0.16-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32708.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-league-flysystem",
"binary_version": "1.0.16-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-league-flysystem",
"purl": "pkg:deb/ubuntu/php-league-flysystem?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.1.3-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32708.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-league-flysystem",
"binary_version": "1.1.3-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-league-flysystem",
"purl": "pkg:deb/ubuntu/php-league-flysystem?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.1.10-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32708.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-league-flysystem",
"binary_version": "1.1.10-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-league-flysystem",
"purl": "pkg:deb/ubuntu/php-league-flysystem?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.29.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32708.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-league-flysystem",
"binary_version": "3.29.1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-league-flysystem",
"purl": "pkg:deb/ubuntu/php-league-flysystem?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.29.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32708.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-league-flysystem",
"binary_version": "3.29.1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-league-flysystem",
"purl": "pkg:deb/ubuntu/php-league-flysystem?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3.29.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32708.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-league-flysystem",
"binary_version": "3.29.1-2"
}
]
}
}
],
"modified": "2026-10-17T12:55:46.585733004Z",
"provider": "osv",
"upstream": [
"CVE-2021-32708"
],
"references": [
"https://ubuntu.com/security/CVE-2021-32708",
"https://github.com/thephpleague/flysystem/commit/f3ad69181b8afed2c9edf7be5a2918144ff4ea32",
"https://github.com/thephpleague/flysystem/commit/a3c694de9f7e844b76f9d1b61296ebf6e8d89d74",
"https://github.com/thephpleague/flysystem/security/advisories/GHSA-9f46-5r25-5wfm",
"https://packagist.org/packages/league/flysystem",
"https://www.cve.org/CVERecord?id=CVE-2021-32708"
]
},
"related_cves": [
{
"value": "CVE-2021-32708",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354049,
"published_at": "2021-06-24T17:15:00+00:00"
}