CVE-2023-28631

Summary

CVECVE-2023-28631
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-03-28 21:15:00 UTC
Updated2023-04-29 07:15:00 UTC
Descriptioncomrak 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`.

Risk And Classification

Problem Types: CWE-755

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Comrak Project Comrak All All All All

References

ReferenceSourceLinkTags
[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

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)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report