GSD-2020-8163
Vulnerability from gsd - Updated: 2020-05-15 00:00Details
There was a vulnerability in versions of Rails prior to 5.0.1 that would
allow an attacker who controlled the `locals` argument of a `render` call.
Versions Affected: rails < 5.0.1
Not affected: Applications that do not allow users to control the names of locals.
Fixed Versions: 4.2.11.2
Impact
------
In the scenario where an attacker might be able to control the name of a
local passed into `render`, they can acheive remote code execution.
Workarounds
-----------
Until such time as the patch can be applied, application developers should
ensure that all user-provided local names are alphanumeric.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2020-8163",
"description": "The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument of a `render` call to perform a RCE.",
"id": "GSD-2020-8163",
"references": [
"https://www.suse.com/security/cve/CVE-2020-8163.html",
"https://packetstormsecurity.com/files/cve/CVE-2020-8163"
]
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "actionview",
"purl": "pkg:gem/actionview"
}
}
],
"aliases": [
"CVE-2020-8163",
"GHSA-cr3x-7m39-c6jq"
],
"details": "There was a vulnerability in versions of Rails prior to 5.0.1 that would\nallow an attacker who controlled the `locals` argument of a `render` call.\n\nVersions Affected: rails \u003c 5.0.1\nNot affected: Applications that do not allow users to control the names of locals.\nFixed Versions: 4.2.11.2\n\nImpact\n------\n\nIn the scenario where an attacker might be able to control the name of a\nlocal passed into `render`, they can acheive remote code execution.\n\nWorkarounds\n-----------\n\nUntil such time as the patch can be applied, application developers should\nensure that all user-provided local names are alphanumeric.\n",
"id": "GSD-2020-8163",
"modified": "2020-05-15T00:00:00.000Z",
"published": "2020-05-15T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://groups.google.com/forum/#!topic/rubyonrails-security/hWuKcHyoKh0"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 8.8,
"type": "CVSS_V3"
}
],
"summary": "Potential remote code execution of user-provided local names in ActionView"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "support@hackerone.com",
"ID": "CVE-2020-8163",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "https://github.com/rails/rails",
"version": {
"version_data": [
{
"version_value": "Fixed in 4.2.11.2"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument of a `render` call to perform a RCE."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "Code Injection (CWE-94)"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://hackerone.com/reports/304805",
"refsource": "MISC",
"url": "https://hackerone.com/reports/304805"
},
{
"name": "https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0",
"refsource": "MISC",
"url": "https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0"
},
{
"name": "[debian-lts-announce] 20200720 [SECURITY] [DLA 2282-1] rails security update",
"refsource": "MLIST",
"url": "https://lists.debian.org/debian-lts-announce/2020/07/msg00013.html"
},
{
"name": "http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html",
"refsource": "MISC",
"url": "http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2020-8163",
"cvss_v3": 8.8,
"date": "2020-05-15",
"description": "There was a vulnerability in versions of Rails prior to 5.0.1 that would\nallow an attacker who controlled the `locals` argument of a `render` call.\n\nVersions Affected: rails \u003c 5.0.1\nNot affected: Applications that do not allow users to control the names of locals.\nFixed Versions: 4.2.11.2\n\nImpact\n------\n\nIn the scenario where an attacker might be able to control the name of a\nlocal passed into `render`, they can acheive remote code execution.\n\nWorkarounds\n-----------\n\nUntil such time as the patch can be applied, application developers should\nensure that all user-provided local names are alphanumeric.\n",
"framework": "rails",
"gem": "actionview",
"ghsa": "cr3x-7m39-c6jq",
"patched_versions": [
"\u003e= 4.2.11.2"
],
"title": "Potential remote code execution of user-provided local names in ActionView",
"url": "https://groups.google.com/forum/#!topic/rubyonrails-security/hWuKcHyoKh0"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c5.0.1",
"affected_versions": "All versions before 5.0.1",
"cvss_v2": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-937",
"CWE-94"
],
"date": "2020-07-27",
"description": "The is a code injection vulnerability in versions of Rails that wouldallow an attacker who controlled the `locals` argument of a `render` call to perform a RCE.",
"fixed_versions": [
"5.0.1"
],
"identifier": "CVE-2020-8163",
"identifiers": [
"CVE-2020-8163"
],
"not_impacted": "All versions starting from 5.0.1",
"package_slug": "gem/actionview",
"pubdate": "2020-07-02",
"solution": "Upgrade to version 5.0.1 or above.",
"title": "Improper Control of Generation of Code (\u0027Code Injection\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2020-8163",
"https://hackerone.com/reports/304805",
"https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0",
"https://lists.debian.org/debian-lts-announce/2020/07/msg00013.html",
"http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html"
],
"uuid": "e7b1faab-af9c-4887-91b6-f9bce85b8d52"
},
{
"affected_range": "\u003c5.0.1",
"affected_versions": "All versions before 5.0.1",
"cvss_v2": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-937",
"CWE-94"
],
"date": "2020-07-27",
"description": "There is a code injection vulnerability in versions of Rails that would allow an attacker who controlled the `locals` argument of a `render` call to perform a RCE.",
"fixed_versions": [
"5.0.1"
],
"identifier": "CVE-2020-8163",
"identifiers": [
"CVE-2020-8163"
],
"not_impacted": "All versions starting from 5.0.1",
"package_slug": "gem/rails",
"pubdate": "2020-07-02",
"solution": "Upgrade to version 5.0.1 or above.",
"title": "Code Injection",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2020-8163"
],
"uuid": "41364cc8-22f6-4e1a-931b-1886194d132d"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "5.0.1",
"vulnerable": true
}
],
"operator": "OR"
},
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve-assignments@hackerone.com",
"ID": "CVE-2020-8163"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument of a `render` call to perform a RCE."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://hackerone.com/reports/304805",
"refsource": "MISC",
"tags": [
"Permissions Required",
"Third Party Advisory"
],
"url": "https://hackerone.com/reports/304805"
},
{
"name": "https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0",
"refsource": "MISC",
"tags": [
"Mailing List",
"Patch",
"Third Party Advisory"
],
"url": "https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0"
},
{
"name": "[debian-lts-announce] 20200720 [SECURITY] [DLA 2282-1] rails security update",
"refsource": "MLIST",
"tags": [
"Mailing List",
"Third Party Advisory"
],
"url": "https://lists.debian.org/debian-lts-announce/2020/07/msg00013.html"
},
{
"name": "http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html",
"refsource": "MISC",
"tags": [
"Exploit",
"Third Party Advisory",
"VDB Entry"
],
"url": "http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "SINGLE",
"availabilityImpact": "PARTIAL",
"baseScore": 6.5,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
"version": "2.0"
},
"exploitabilityScore": 8.0,
"impactScore": 6.4,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": false
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
},
"lastModifiedDate": "2022-05-24T16:06Z",
"publishedDate": "2020-07-02T19:15Z"
}
}
}
Loading…
Loading…
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.