gsd-2021-28834
Vulnerability from gsd
Modified
2021-03-29 00:00
Details
Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters
namespace, and thus arbitrary classes can be instantiated.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2021-28834",
"description": "Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated.",
"id": "GSD-2021-28834",
"references": [
"https://www.suse.com/security/cve/CVE-2021-28834.html",
"https://www.debian.org/security/2021/dsa-4890",
"https://security.archlinux.org/CVE-2021-28834"
]
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "kramdown",
"purl": "pkg:gem/kramdown"
}
}
],
"aliases": [
"CVE-2021-28834",
"GHSA-52p9-v744-mwjj"
],
"details": "Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters\nnamespace, and thus arbitrary classes can be instantiated.\n",
"id": "GSD-2021-28834",
"modified": "2021-03-29T00:00:00.000Z",
"published": "2021-03-29T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/advisories/GHSA-52p9-v744-mwjj"
},
{
"type": "WEB",
"url": "https://github.com/gettalong/kramdown/pull/708"
},
{
"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"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 9.8,
"type": "CVSS_V3"
}
],
"summary": "Remote code execution in Kramdown"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2021-28834",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "n/a",
"version": {
"version_data": [
{
"version_value": "n/a"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/gettalong/kramdown/pull/708",
"refsource": "MISC",
"url": "https://github.com/gettalong/kramdown/pull/708"
},
{
"name": "https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66",
"refsource": "MISC",
"url": "https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66"
},
{
"name": "https://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1",
"refsource": "MISC",
"url": "https://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1"
},
{
"name": "FEDORA-2021-139a6a2f9d",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S3BBLUIDCUUR3NEE4NJLOCCAV3ALQ3O6/"
},
{
"name": "FEDORA-2021-4c57a892d1",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYOLQKFL6IJCQLBXV34Z4TI4O54GESPR/"
},
{
"name": "FEDORA-2021-edc673e864",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NJCJVYHPY6LNUFM6LYZIAUIYOMVT5QGV/"
},
{
"name": "DSA-4890",
"refsource": "DEBIAN",
"url": "https://www.debian.org/security/2021/dsa-4890"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2021-28834",
"cvss_v3": 9.8,
"date": "2021-03-29",
"description": "Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters\nnamespace, and thus arbitrary classes can be instantiated.\n",
"gem": "kramdown",
"ghsa": "52p9-v744-mwjj",
"patched_versions": [
"\u003e= 2.3.1"
],
"related": {
"url": [
"https://github.com/gettalong/kramdown/pull/708",
"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"
]
},
"title": "Remote code execution in Kramdown",
"unaffected_versions": [
"\u003c 1.16.0"
],
"url": "https://github.com/advisories/GHSA-52p9-v744-mwjj"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c2.3.1",
"affected_versions": "All versions before 2.3.1",
"cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-937"
],
"date": "2021-04-19",
"description": "Kramdown does not restrict Rouge formatters to the `Rouge::Formatters` namespace, and thus arbitrary classes can be instantiated.",
"fixed_versions": [
"2.3.1"
],
"identifier": "CVE-2021-28834",
"identifiers": [
"CVE-2021-28834"
],
"not_impacted": "All versions starting from 2.3.1",
"package_slug": "gem/kramdown",
"pubdate": "2021-03-19",
"solution": "Upgrade to version 2.3.1 or above.",
"title": "Code Injection",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-28834"
],
"uuid": "2ffcaeb9-2d87-49b9-879d-edc000ac0988"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:kramdown_project:kramdown:*:*:*:*:*:ruby:*:*",
"cpe_name": [],
"versionEndExcluding": "2.3.1",
"vulnerable": true
}
],
"operator": "OR"
},
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
}
],
"operator": "OR"
},
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2021-28834"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "NVD-CWE-noinfo"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/gettalong/kramdown/pull/708",
"refsource": "MISC",
"tags": [
"Exploit",
"Third Party Advisory"
],
"url": "https://github.com/gettalong/kramdown/pull/708"
},
{
"name": "https://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1"
},
{
"name": "https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66"
},
{
"name": "FEDORA-2021-139a6a2f9d",
"refsource": "FEDORA",
"tags": [
"Third Party Advisory"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S3BBLUIDCUUR3NEE4NJLOCCAV3ALQ3O6/"
},
{
"name": "FEDORA-2021-4c57a892d1",
"refsource": "FEDORA",
"tags": [
"Third Party Advisory"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYOLQKFL6IJCQLBXV34Z4TI4O54GESPR/"
},
{
"name": "FEDORA-2021-edc673e864",
"refsource": "FEDORA",
"tags": [
"Third Party Advisory"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NJCJVYHPY6LNUFM6LYZIAUIYOMVT5QGV/"
},
{
"name": "DSA-4890",
"refsource": "DEBIAN",
"tags": [
"Third Party Advisory"
],
"url": "https://www.debian.org/security/2021/dsa-4890"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "MEDIUM",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "PARTIAL",
"baseScore": 6.8,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
"version": "2.0"
},
"exploitabilityScore": 8.6,
"impactScore": 6.4,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": false
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 5.9
}
},
"lastModifiedDate": "2021-04-19T20:39Z",
"publishedDate": "2021-03-19T07:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…