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


0.0
low

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.08% (34th percentile)
Expand this section
NVD
5.3 medium

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