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.)
[
{
"id": "CVE-2021-40524-178db787",
"digest": {
"line_hashes": [
"143088216645301880473965997968294163065",
"268607288337989793077162423436249802443",
"280366719401112403696117270706084821257",
"25497428101258363206954973861780601325",
"122625483517188019176324232254541051564"
],
"threshold": 0.9
},
"deprecated": false,
"target": {
"file": "src/ftpd.c"
},
"source": "https://github.com/jedisct1/pure-ftpd/commit/37ad222868e52271905b94afea4fc780d83294b4",
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-40524-1865d9b9",
"digest": {
"length": 5664.0,
"function_hash": "310052781692296683813829170466513134176"
},
"deprecated": false,
"target": {
"file": "src/ftpd.c",
"function": "dostor"
},
"source": "https://github.com/jedisct1/pure-ftpd/commit/37ad222868e52271905b94afea4fc780d83294b4",
"signature_type": "Function",
"signature_version": "v1"
}
]