CVE-2021-40524
published 2021-09-05CVE-2021-40524: In Pure-FTPd before 1.0.50, an incorrect max_filesize quota mechanism in the server allows attackers to upload files of unbounded size, which may lead to…
PriorityP351high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EXPLOIT
EPSS
4.29%
89.9th percentile
In Pure-FTPd before 1.0.50, an incorrect max_filesize quota mechanism in the server allows attackers to upload files of unbounded size, which may lead to denial of service or a server hang. This occurs because a certain greater-than-zero test does not anticipate an initial -1 value. (Versions 1.0.23 through 1.0.49 are affected.)
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | pure-ftpd | < pure-ftpd 1.0.50-1 (bookworm) | pure-ftpd 1.0.50-1 (bookworm) |
| pureftpd | pure-ftpd | >= 0 < 1.0.49-4.1+deb11u1 | 1.0.49-4.1+deb11u1 |
| pureftpd | pure-ftpd | >= 0 < 1.0.50-1 | 1.0.50-1 |
| pureftpd | pure-ftpd | >= 0 < 1.0.50-1 | 1.0.50-1 |
| pureftpd | pure-ftpd | >= 1.0.23 < 1.0.50 | 1.0.50 |
Detection & IOCsextracted from sources · hover to see the quote
sigma
regex: Pure-FTPd ([0-9.]+)
- →Detect vulnerable Pure-FTPd versions by extracting the version string from banner/response and flagging versions 1.0.23 through 1.0.49 inclusive.
- →A nuclei-style version extractor template targets Pure-FTPd version strings via regex match on the server banner to identify affected versions.
- ·The vulnerability only affects Pure-FTPd versions 1.0.23 through 1.0.49; version 1.0.50 and later are not affected. ↗
- ·The flaw is in the max_filesize quota enforcement logic (a greater-than-zero check that does not handle an initial -1 value), meaning exploitation requires the ability to upload files — scope is local/authenticated. ↗
- ·Debian fixed this in specific package versions per release: bookworm/sid/trixie fixed in 1.0.50-1; bullseye fixed in 1.0.49-4.1+deb11u1. ↗
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-p53v-96v3-p5jg: In Pure-FTPd 1
ghsa_unreviewed·2022-05-24
CVE-2021-40524 [HIGH] CWE-434 GHSA-p53v-96v3-p5jg: In Pure-FTPd 1
In Pure-FTPd 1.0.49, an incorrect max_filesize quota mechanism in the server allows attackers to upload files of unbounded size, which may lead to denial of service or a server hang. This occurs because a certain greater-than-zero test does not anticipate an initial -1 value.
OSV
CVE-2021-40524: In Pure-FTPd before 1
osv·2021-09-05·CVSS 7.5
CVE-2021-40524 [HIGH] CVE-2021-40524: In Pure-FTPd before 1
In Pure-FTPd before 1.0.50, an incorrect max_filesize quota mechanism in the server allows attackers to upload files of unbounded size, which may lead to denial of service or a server hang. This occurs because a certain greater-than-zero test does not anticipate an initial -1 value. (Versions 1.0.23 through 1.0.49 are affected.)
Debian
CVE-2021-40524: pure-ftpd - In Pure-FTPd before 1.0.50, an incorrect max_filesize quota mechanism in the ser...
vendor_debian·2021·CVSS 7.5
CVE-2021-40524 [HIGH] CVE-2021-40524: pure-ftpd - In Pure-FTPd before 1.0.50, an incorrect max_filesize quota mechanism in the ser...
In Pure-FTPd before 1.0.50, an incorrect max_filesize quota mechanism in the server allows attackers to upload files of unbounded size, which may lead to denial of service or a server hang. This occurs because a certain greater-than-zero test does not anticipate an initial -1 value. (Versions 1.0.23 through 1.0.49 are affected.)
Scope: local
bookworm: resolved (fixed in 1.0.50-1)
bullseye: resolved (fixed in 1.0.49-4.1+deb11u1)
sid: resolved (fixed in 1.0.50-1)
trixie: resolved (fixed in 1.0.50-1)
No detection rules found.
Nuclei
Pure-FTPd 1.0.23 < 1.0.50 - Arbitrary File Upload
nuclei·CVSS 7.5
CVE-2021-40524 [HIGH] Pure-FTPd 1.0.23 < 1.0.50 - Arbitrary File Upload
Pure-FTPd 1.0.23 1.0.23 ', '<= 1.0.50')"
condition: and
extractors:
- type: regex
group: 1
name: version
regex:
- "Pure-FTPd ([0-9.]+)"
# digest: 4a0a00473045022062e045d8de520f322dd9157c823656dc8a796f26c0fcc0b05fdf2eb2c6907c6f0221008d2a7d058eda4a23c31bfede87eac087ba81a10dab0cfb93ab1140a2e6416726:922c64590222798bb761d5b6d8e72950
No writeups or analysis indexed.
https://github.com/jedisct1/pure-ftpd/commit/37ad222868e52271905b94afea4fc780d83294b4https://github.com/jedisct1/pure-ftpd/compare/1.0.49...1.0.50https://github.com/jedisct1/pure-ftpd/pull/158https://github.com/jedisct1/pure-ftpd/commit/37ad222868e52271905b94afea4fc780d83294b4https://github.com/jedisct1/pure-ftpd/compare/1.0.49...1.0.50https://github.com/jedisct1/pure-ftpd/pull/158https://lists.debian.org/debian-lts-announce/2025/11/msg00003.html
2021-09-05
Published