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.)
[
{
"events": [
{
"introduced": "1.0.23"
},
{
"fixed": "1.0.50"
}
]
},
{
"events": [
{
"introduced": "1.0.23"
},
{
"last_affected": "1.0.49"
}
]
}
]
[
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2021-40524-00e4d04c",
"target": {
"file": "src/simpleconf_ftpd.h"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"62861421324718626283205813091113225033",
"276556215880805753523756337752274567287",
"139825961526930270406704652117385392827"
]
},
"signature_version": "v1",
"source": "https://github.com/jedisct1/pure-ftpd/commit/868f0e2277e3f5890ca08c84d41de8065a7d8bc3"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2021-40524-178db787",
"target": {
"file": "src/ftpd.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"143088216645301880473965997968294163065",
"268607288337989793077162423436249802443",
"280366719401112403696117270706084821257",
"25497428101258363206954973861780601325",
"122625483517188019176324232254541051564"
]
},
"signature_version": "v1",
"source": "https://github.com/jedisct1/pure-ftpd/commit/37ad222868e52271905b94afea4fc780d83294b4"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2021-40524-1865d9b9",
"target": {
"file": "src/ftpd.c",
"function": "dostor"
},
"digest": {
"length": 5664.0,
"function_hash": "310052781692296683813829170466513134176"
},
"signature_version": "v1",
"source": "https://github.com/jedisct1/pure-ftpd/commit/37ad222868e52271905b94afea4fc780d83294b4"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2021-40524-4d96a6cc",
"target": {
"file": "src/ftpd.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"327613222484680267523609399946935356801",
"64578520351811071438175404995853636934",
"334874348702182263595910484650313300601",
"55911490789187075424799755591925651998",
"70197884628312536342180718915065003616",
"5617403673146396898843751981405312363",
"242650641383625547911307232728864617038",
"77025422434488939853243591243294715107",
"58890166137011872160805173120156300682",
"96871755512210542170053570303506689476",
"274654776397210090945500021649092363083",
"69649565509962129596219163301725269085"
]
},
"signature_version": "v1",
"source": "https://github.com/jedisct1/pure-ftpd/commit/868f0e2277e3f5890ca08c84d41de8065a7d8bc3"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2021-40524-bdd51916",
"target": {
"file": "src/ftpd.c",
"function": "pureftpd_start"
},
"digest": {
"length": 14818.0,
"function_hash": "37089621735897002683250435944003137392"
},
"signature_version": "v1",
"source": "https://github.com/jedisct1/pure-ftpd/commit/868f0e2277e3f5890ca08c84d41de8065a7d8bc3"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40524.json"