CWE
400
EPSS
0.043%
Advisory Published
Updated

CVE-2024-24827: No rate limits on POST /uploads endpoint in Discourse

First published: Fri Mar 15 2024(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Discourse

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-24827?

    CVE-2024-24827 is considered a medium severity vulnerability due to the potential for DoS attacks from unrestricted uploads.

  • How do I fix CVE-2024-24827?

    To fix CVE-2024-24827, implement rate limiting on the POST /uploads endpoint in your Discourse application.

  • What impact does CVE-2024-24827 have on my Discourse server?

    The impact of CVE-2024-24827 includes increased risk of DoS attacks, which can lead to server unavailability.

  • Which versions of Discourse are affected by CVE-2024-24827?

    CVE-2024-24827 affects all versions of Discourse that do not have rate limiting on the POST /uploads endpoint.

  • Is CVE-2024-24827 an exploit for Discourse?

    CVE-2024-24827 is a vulnerability that can be exploited to launch DoS attacks, affecting the availability of the Discourse application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203