{"id":"CVE-2024-37157","summary":"Discourse vulnerable to Server-Side Request Forgery via FastImage","details":"Discourse is an open-source discussion platform. Prior to version 3.2.3 on the `stable` branch and version 3.3.0.beta4 on the `beta` and `tests-passed` branches, a malicious actor could get the FastImage library to redirect requests to an internal Discourse IP. This issue is patched in version 3.2.3 on the `stable` branch and version 3.3.0.beta4 on the `beta` and `tests-passed` branches. No known workarounds are available.","aliases":["BIT-discourse-2024-37157","GHSA-46pq-7958-fc68"],"modified":"2026-10-28T02:31:12.870158911Z","published":"2024-07-03T19:13:42.868Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-918"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37157.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37157.json"},{"type":"ADVISORY","url":"https://github.com/discourse/discourse/security/advisories/GHSA-46pq-7958-fc68"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37157"},{"type":"FIX","url":"https://github.com/discourse/discourse/commit/5b8cf11b69e05d5c058c1148ec69ec309491fa6e"},{"type":"FIX","url":"https://github.com/discourse/discourse/commit/67e78086035cec494b15ce79342a0cb9052c2d95"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/discourse/discourse","events":[{"introduced":"473248381137bb8b46ab1cd1b5858024a4acf0d0"},{"fixed":"5b8cf11b69e05d5c058c1148ec69ec309491fa6e"},{"fixed":"67e78086035cec494b15ce79342a0cb9052c2d95"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"stable \u003c 3.2.3"},{"last_affected":"stable \u003c 3.2.3"}]},{"range":[{"introduced":"beta \u003c 3.3.0.beta4"},{"last_affected":"beta \u003c 3.3.0.beta4"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"tests-passed \u003c 3.3.0.beta4"},{"last_affected":"tests-passed \u003c 3.3.0.beta4"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"5b8cf11b69e05d5c058c1148ec69ec309491fa6e"}]},{"range":[{"fixed":"67e78086035cec494b15ce79342a0cb9052c2d95"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["3.3.0-beta1","3.3.0-beta2","3.3.0-beta3","beta \u003c 3.3.0.beta4","stable \u003c 3.2.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-37157.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:L"}]}