{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-24827",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-01-31T16:28:17.945Z",
        "datePublished": "2024-03-15T19:13:43.221Z",
        "dateUpdated": "2024-08-01T23:28:12.832Z"
    },
    "containers": {
        "cna": {
            "title": "No rate limits on POST /uploads endpoint in Discourse",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-400",
                            "lang": "en",
                            "description": "CWE-400: Uncontrolled Resource Consumption",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 5.3,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/discourse/discourse/security/advisories/GHSA-58vw-246g-fjj4",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/discourse/discourse/security/advisories/GHSA-58vw-246g-fjj4"
                },
                {
                    "name": "https://github.com/discourse/discourse/commit/003b80e62f97cd8c0114d6b9d3f93c10443e6fae",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/discourse/discourse/commit/003b80e62f97cd8c0114d6b9d3f93c10443e6fae"
                }
            ],
            "affected": [
                {
                    "vendor": "discourse",
                    "product": "discourse",
                    "versions": [
                        {
                            "version": "stable <= 3.2.0",
                            "status": "affected"
                        },
                        {
                            "version": "beta < 3.3.0.beta1",
                            "status": "affected"
                        },
                        {
                            "version": "tests-passed < 3.3.0.beta1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-03-15T19:13:43.221Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-58vw-246g-fjj4",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "discourse",
                        "product": "discourse",
                        "cpes": [
                            "cpe:2.3:a:discourse:discourse:-:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "stable",
                                "status": "affected",
                                "lessThan": "3.2.0",
                                "versionType": "custom"
                            },
                            {
                                "version": "beta",
                                "status": "affected",
                                "lessThan": "3.3.0beta1",
                                "versionType": "custom"
                            },
                            {
                                "version": "tests_passed",
                                "status": "affected",
                                "lessThan": "3.3.0beta1",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-03-18T14:12:35.581631Z",
                                "id": "CVE-2024-24827",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-07-19T17:13:32.779Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-01T23:28:12.832Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/discourse/discourse/security/advisories/GHSA-58vw-246g-fjj4",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/discourse/discourse/security/advisories/GHSA-58vw-246g-fjj4"
                    },
                    {
                        "name": "https://github.com/discourse/discourse/commit/003b80e62f97cd8c0114d6b9d3f93c10443e6fae",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/discourse/discourse/commit/003b80e62f97cd8c0114d6b9d3f93c10443e6fae"
                    }
                ]
            }
        ]
    }
}