CVE-2022-23549
JSON

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 packageVersionsReported by
discourse discoursefrom 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.0CVE List, NVD
discourse (Bitnami)before 2.8.14Bitnami Vulnerability Database

All scores

GitHub_M5.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasemedium rating

Classification

CWE-20

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

Sources

SourceRecordLicence
CVE ListCVE-2022-23549 changed 2025-03-10CVE Terms of Use
NVDCVE-2022-23549 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DISCOURSE-2022-23549 changed 2026-09-08Apache-2.0