CVE-2023-28631
Summary
| CVE | CVE-2023-28631 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-03-28 21:15:00 UTC |
| Updated | 2023-04-29 07:15:00 UTC |
| Description | comrak is a CommonMark + GFM compatible Markdown parser and renderer written in rust. A Comrak AST can be constructed manually by a program instead of parsing a Markdown document with `parse_document`. This AST can then be converted to HTML via `html::format_document_with_plugins`. However, the HTML formatting code assumes that the AST is well-formed. For example, many AST notes contain `[u8]` fields which the formatting code assumes is valid UTF-8 data. Several bugs can be triggered if this is not the case. Version 0.17.0 contains adjustments to the AST, storing strings instead of unvalidated byte arrays. Users are advised to upgrade. Users unable to upgrade may manually validate UTF-8 correctness of all data when assigning to `&[u8]` and `Vec<u8>` fields in the AST. This issue is also tracked as `GHSL-2023-049`. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| [SECURITY] Fedora 37 Update: rust-comrak-0.18.0-1.fc37 - package-announce - Fedora Mailing-Lists |
MISC |
lists.fedoraproject.org |
|
| [SECURITY] Fedora 36 Update: rust-askama_shared-0.12.2-4.fc36 - package-announce - Fedora Mailing-Lists |
MISC |
lists.fedoraproject.org |
|
| Attacker controlled data in AST nodes is not validated (GHSL-2023-049) · Advisory · kivikakk/comrak · GitHub |
MISC |
github.com |
|
| Merge pull request from GHSA-5r3x-p7xx-x6q5 · kivikakk/comrak@9ff5f8d · GitHub |
MISC |
github.com |
|
| [SECURITY] Fedora 38 Update: rust-comrak-0.18.0-1.fc38 - package-announce - Fedora Mailing-Lists |
MISC |
lists.fedoraproject.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 283948 Fedora Security Update for rust (FEDORA-2023-b37722768e)
- 283949 Fedora Security Update for rust (FEDORA-2023-e9243281cb)
- 284162 Fedora Security Update for rust (FEDORA-2023-035d5910b9)
- 285319 Fedora Security Update for rust (FEDORA-2023-aa46db07fd)