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. Learn more

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 IDSNYK-RUBY-COMMONMARKER-3318398
  • published24 Jan 2023
  • disclosed24 Jan 2023
  • creditKevin Backhouse

Introduced: 24 Jan 2023

CVE-2023-22485  (opens in a new tab)
CWE-125  (opens in a new tab)

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