Arbitrary Code Execution Affecting redcarpet package, versions < 3.3.2, >= 3.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.86% (83rd 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-REDCARPET-20231
  • published 21 Jun 2015
  • disclosed 21 Jun 2015
  • credit Giancarlo Canales Barreto

Overview

redcarpet is a fast, safe and extensible Markdown to (X)HTML parser.

Vulnerable versions of redcarpet Ruby contain a flaw that allows Arbitrary code execution via stack overflow.

Details

This flaw exists because the header_anchor() function in html.c uses variable length arrays (VLA) without any range checking. This may allow a remote attacker to execute arbitrary code.

CVSS Scores

version 3.1
Expand this section

Snyk

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

NVD

7.3 high