Out-of-bounds Read Affecting commonmarker package, versions <0.23.7


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.09% (41st 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-RUBY-COMMONMARKER-3318398
  • published 24 Jan 2023
  • disclosed 24 Jan 2023
  • credit Kevin Backhouse

How to fix?

Upgrade commonmarker to version 0.23.7 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the validate_protocol() function in extensions/autolink.c, which exposes malloc metadata.

NOTE: The maintainers believe this is harmless.

PoC

echo "to:person@example.com" | ./src/cmark-gfm -e autolink

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
3.3 low
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

5.3 medium