Infinite loop Affecting github.com/gomarkdown/markdown/parser package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMGOMARKDOWNMARKDOWNPARSER-8220052
  • published 16 Oct 2024
  • disclosed 15 Oct 2024
  • credit Brinmon

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

github.com/gomarkdown/markdown/parser is a library for parsing Markdown text and rendering as HTML.

Affected versions of this package are vulnerable to Infinite loop via the paragraph function in the parser/block.go file. An attacker can cause the application to hang and consume resources indefinitely by providing tailor-made input that triggers an infinite loop.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None