GHSA-52p9-v744-mwjj

Suggest an improvement
Source
https://github.com/advisories/GHSA-52p9-v744-mwjj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-52p9-v744-mwjj/GHSA-52p9-v744-mwjj.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-52p9-v744-mwjj
Aliases
Published
2021-03-29T16:30:34Z
Modified
2024-02-17T05:32:11.194150Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Remote code execution in Kramdown
Details

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

Database specific
{
    "nvd_published_at": "2021-03-19T07:15:00Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-22T20:16:56Z"
}
References

Affected packages

RubyGems / kramdown

Package

Name
kramdown
Purl
pkg:gem/kramdown

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.16.0
Fixed
2.3.1

Affected versions

1.*

1.16.0
1.16.1
1.16.2
1.17.0

2.*

2.0.0.beta1
2.0.0.beta2
2.0.0
2.1.0
2.2.0
2.2.1
2.3.0