{"id":"CVE-2024-24827","published":"2024-03-15T19:13:43Z","modified":"2025-04-10T20:27:16Z","title":"No rate limits on POST /uploads endpoint in Discourse","vendor":"discourse","product":"discourse","tier":"tail","description":{"text":"Discourse is an open source platform for community discussion. Without a rate limit on the POST /uploads endpoint, it makes it easier for an attacker to carry out a DoS attack on the server since creating an upload can be a resource intensive process. Do note that the impact varies from site to site as various site settings like `max_image_size_kb`, `max_attachment_size_kb` and `max_image_megapixels` will determine the amount of resources used when creating an upload. The issue is patched in the latest stable, beta and tests-passed version of Discourse. Users are advised to upgrade. Users unable to upgrade should reduce `max_image_size_kb`, `max_attachment_size_kb` and `max_image_megapixels` as smaller uploads require less resources to process. Alternatively, `client_max_body_size` can be reduced in Nginx to prevent large uploads from reaching the server.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00882,"percentile":0.56914,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-58vw-246g-fjj4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse/commit/003b80e62f97cd8c0114d6b9d3f93c10443e6fae","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":11.38},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"discourse","versions":["stable <= 3.2.0","beta < 3.3.0.beta1","tests-passed < 3.3.0.beta1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-03-18T14:12:35.581631Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-22191","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-discourse-cve-2023-49099","parents":[{"from":"CVE-2023-49099","to":"CVE-2024-24827","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/controllers/uploads_controller.rb"],"commits":["https://github.com/discourse/discourse/commit/1b288236387fc0a823e4f15f1aea8dde81b49d53","https://github.com/discourse/discourse/commit/003b80e62f97cd8c0114d6b9d3f93c10443e6fae"],"basis":"rarely changed file"}]}]}}