5.7medium
Discourse vulnerable to bypass of post max_length using HTML comments
- Severity
- 5.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.72% (higher than 50% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-DISCOURSE-2022-23549GHSA-p47g-v5wr-p4xp
Description
Discourse is an option source discussion platform. Prior to version 2.8.14 on the `stable` branch and version 2.9.0.beta16 on the `beta` and `tests-passed` branches, users can create posts with raw body longer than the `max_length` site setting by including html comments that are not counted toward the character limit. This issue is patched in versions 2.8.14 and 2.9.0.beta16. There are no known workarounds.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| discourse discourse | from 2.8.14 before 2.8.14, from 2.9.0.beta0 up to 2.9.0.beta0, from 2.9.0.beta16 before 2.9.0.beta16, before 2.8.14, 2.9.0, 3.0.0 | CVE List, NVD |
| discourse (Bitnami) | before 2.8.14 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Discourse is an option source discussion platform. Prior to version 2.8.14 on the `stable` branch and version 2.9.0.beta16 on the `beta` and `tests-passed` branches, users can create posts with raw body longer than the `max_length` site setting by including html comments that are not counted toward the character limit. This issue is patched in versions 2.8.14 and 2.9.0.beta16. There are no known workarounds.
NVD (es)
Discourse es una plataforma de discusión de fuentes de opciones. Antes de la versión 2.8.14 en la rama `stable` y la versión 2.9.0.beta16 en las ramas `beta` y `tests-passed`, los usuarios podían crear publicaciones con un cuerpo sin formato más largo que la configuración del sitio `max_length` al incluir html comentarios que no cuentan para el límite de caracteres. Este problema se solucionó en las versiones 2.8.14 y 2.9.0.beta16. No se conocen workarounds.
References
| https://github.com/discourse/discourse/commit/bf6b08670a927cc80bb090b7a2e710b4b554e6a8 | advisory, patch, third-party-advisory | |
| https://github.com/discourse/discourse/security/advisories/GHSA-p47g-v5wr-p4xp | advisory, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-23549 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-23549 changed 2025-03-10 | CVE Terms of Use |
| NVD | CVE-2022-23549 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DISCOURSE-2022-23549 changed 2026-09-08 | Apache-2.0 |