Skip to content

Commit b248010

Browse files
viraptorreedloden
authored andcommitted
Add CVE-2018-18476 for mysql-binuuid-rails (#362)
Add CVE-2018-18476 for mysql-binuuid-rails
1 parent b07c486 commit b248010

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
gem: mysql-binuuid-rails
3+
cve: 2018-18476
4+
url: https://gist.github.com/viraptor/881276ea61e8d56bac6e28454c79f1e6
5+
title: mysql-binuuid-rails allows SQL Injection by removing default string escaping
6+
date: 2018-10-19
7+
8+
description: |
9+
mysql-binuuid-rails 1.1.0 and earlier allows SQL Injection because it removes
10+
default string escaping for affected database columns. ActiveRecord does not
11+
explicitly escape the Binary data type (Type::Binary::Data) for mysql.
12+
mysql-binuuid-rails uses a data type that is derived from the base Binary
13+
type, except, it doesn’t convert the value to hex. Instead, it assumes the
14+
string value provided is a valid hex string and doesn’t do any checks on it.
15+
16+
patched_versions:
17+
- ">= 1.1.1"
18+
19+
related:
20+
url:
21+
- https://github.com/nedap/mysql-binuuid-rails/pull/18

0 commit comments

Comments
 (0)