Loading...
Skip to main content

CVE-2021-28834 — Remote code execution in kramdown — CVE Details

HIGH

Remote code execution in Kramdown

Published March 29, 2021Updated February 17, 2024Source: osv

Summary

Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated.

Advisory Timeline

  • First published March 29, 2021 (2023 days ago).
  • Last revised February 17, 2024 — 1055 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update kramdown to 2.3.1 or later
gem install kramdown -v 2.3.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
kramdown
rubygems
1.16.0, 1.16.1, 1.16.2, 1.17.0 (+7 more)2.3.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2021-28834?
Remote code execution in Kramdown This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2021-28834?
CVE-2021-28834 affects kramdown. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-28834 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-52p9-v744-mwjj

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies