{"id":"GHSA-52p9-v744-mwjj","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.","aliases":["CVE-2021-28834"],"modified":"2024-02-17T05:32:11.194150Z","published":"2021-03-29T16:30:34Z","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":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28834"},{"type":"WEB","url":"https://github.com/gettalong/kramdown/pull/708"},{"type":"WEB","url":"https://github.com/stanhu/kramdown/commit/d6a1cbcb2caa2f8a70927f176070d126b2422760"},{"type":"WEB","url":"https://github.com/stanhu/kramdown/commit/ff0218aefcf00cd5a389e17e075d36cd46d011e2"},{"type":"WEB","url":"https://about.gitlab.com/releases/2021/03/17/security-release-gitlab-13-9-4-released/#remote-code-execution-via-unsafe-user-controlled-markdown-rendering-options"},{"type":"WEB","url":"https://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1"},{"type":"WEB","url":"https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NJCJVYHPY6LNUFM6LYZIAUIYOMVT5QGV"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S3BBLUIDCUUR3NEE4NJLOCCAV3ALQ3O6"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYOLQKFL6IJCQLBXV34Z4TI4O54GESPR"},{"type":"WEB","url":"https://www.debian.org/security/2021/dsa-4890"}],"affected":[{"package":{"name":"kramdown","ecosystem":"RubyGems","purl":"pkg:gem/kramdown"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.16.0"},{"fixed":"2.3.1"}]}],"versions":["1.16.0","1.16.1","1.16.2","1.17.0","2.0.0","2.0.0.beta1","2.0.0.beta2","2.1.0","2.2.0","2.2.1","2.3.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-52p9-v744-mwjj/GHSA-52p9-v744-mwjj.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}