GSD-2018-18476
Vulnerability from gsd - Updated: 2018-10-19 00:00Details
mysql-binuuid-rails 1.1.0 and earlier allows SQL Injection because it removes
default string escaping for affected database columns. ActiveRecord does not
explicitly escape the Binary data type (Type::Binary::Data) for mysql.
mysql-binuuid-rails uses a data type that is derived from the base Binary
type, except, it doesn’t convert the value to hex. Instead, it assumes the
string value provided is a valid hex string and doesn’t do any checks on it.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2018-18476",
"description": "mysql-binuuid-rails 1.1.0 and earlier allows SQL Injection because it removes default string escaping for affected database columns.",
"id": "GSD-2018-18476"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "mysql-binuuid-rails",
"purl": "pkg:gem/mysql-binuuid-rails"
}
}
],
"aliases": [
"CVE-2018-18476",
"GHSA-6j63-35hj-vmcg"
],
"details": "mysql-binuuid-rails 1.1.0 and earlier allows SQL Injection because it removes\ndefault string escaping for affected database columns. ActiveRecord does not\nexplicitly escape the Binary data type (Type::Binary::Data) for mysql.\nmysql-binuuid-rails uses a data type that is derived from the base Binary\ntype, except, it doesn\u2019t convert the value to hex. Instead, it assumes the\nstring value provided is a valid hex string and doesn\u2019t do any checks on it.\n",
"id": "GSD-2018-18476",
"modified": "2018-10-19T00:00:00.000Z",
"published": "2018-10-19T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://gist.github.com/viraptor/881276ea61e8d56bac6e28454c79f1e6"
},
{
"type": "WEB",
"url": "https://github.com/nedap/mysql-binuuid-rails/pull/18"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 9.8,
"type": "CVSS_V3"
}
],
"summary": "mysql-binuuid-rails allows SQL Injection by removing default string escaping"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2018-18476",
"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": "mysql-binuuid-rails 1.1.0 and earlier allows SQL Injection because it removes default string escaping for affected database columns."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://gist.github.com/viraptor/881276ea61e8d56bac6e28454c79f1e6",
"refsource": "MISC",
"url": "https://gist.github.com/viraptor/881276ea61e8d56bac6e28454c79f1e6"
},
{
"name": "https://github.com/nedap/mysql-binuuid-rails/pull/18",
"refsource": "CONFIRM",
"url": "https://github.com/nedap/mysql-binuuid-rails/pull/18"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2018-18476",
"cvss_v3": 9.8,
"date": "2018-10-19",
"description": "mysql-binuuid-rails 1.1.0 and earlier allows SQL Injection because it removes\ndefault string escaping for affected database columns. ActiveRecord does not\nexplicitly escape the Binary data type (Type::Binary::Data) for mysql.\nmysql-binuuid-rails uses a data type that is derived from the base Binary\ntype, except, it doesn\u2019t convert the value to hex. Instead, it assumes the\nstring value provided is a valid hex string and doesn\u2019t do any checks on it.\n",
"gem": "mysql-binuuid-rails",
"ghsa": "6j63-35hj-vmcg",
"patched_versions": [
"\u003e= 1.1.1"
],
"related": {
"url": [
"https://github.com/nedap/mysql-binuuid-rails/pull/18"
]
},
"title": "mysql-binuuid-rails allows SQL Injection by removing default string escaping",
"url": "https://gist.github.com/viraptor/881276ea61e8d56bac6e28454c79f1e6"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c=1.1.0",
"affected_versions": "All versions up to 1.1.0",
"cvss_v2": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-89",
"CWE-937"
],
"date": "2018-12-13",
"description": "The package mysql-binuuid-rails allows SQL Injection because it removes default string escaping for affected database columns.",
"fixed_versions": [
"1.1.1"
],
"identifier": "CVE-2018-18476",
"identifiers": [
"CVE-2018-18476"
],
"not_impacted": "All versions after 1.1.0",
"package_slug": "gem/mysql-binuuid-rails",
"pubdate": "2018-10-24",
"solution": "Upgrade to version 1.1.1 or above.",
"title": "SQL Injection",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2018-18476"
],
"uuid": "0b382da1-b636-4bca-ac5b-00a217afe30a"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:nedap:mysql-binuuid-rails:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndIncluding": "1.1.0",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2018-18476"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "mysql-binuuid-rails 1.1.0 and earlier allows SQL Injection because it removes default string escaping for affected database columns."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-89"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/nedap/mysql-binuuid-rails/pull/18",
"refsource": "CONFIRM",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/nedap/mysql-binuuid-rails/pull/18"
},
{
"name": "https://gist.github.com/viraptor/881276ea61e8d56bac6e28454c79f1e6",
"refsource": "MISC",
"tags": [
"Exploit",
"Third Party Advisory"
],
"url": "https://gist.github.com/viraptor/881276ea61e8d56bac6e28454c79f1e6"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "PARTIAL",
"baseScore": 7.5,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"version": "2.0"
},
"exploitabilityScore": 10.0,
"impactScore": 6.4,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "HIGH",
"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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.0"
},
"exploitabilityScore": 3.9,
"impactScore": 5.9
}
},
"lastModifiedDate": "2018-12-13T21:20Z",
"publishedDate": "2018-10-24T21:29Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
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.
Loading…
Loading…