Description
The escapeLike function in sqlsrv/database.inc in the Drupal 7 driver for SQL Server and SQL Azure 7.x-1.x before 7.x-1.4 does not properly escape certain characters, which allows remote attackers to execute arbitrary SQL commands via vectors involving a module using the db_like function.
Metrics
CVSS 2.0 7.5/10
AV:N/AC:L/Au:N/C:P/I:P/A:PWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- http://cgit.drupalcode.org/sqlsrv/commit/?id=2ea0da8
- https://www.drupal.org/node/2569003Patch
- https://www.drupal.org/node/2569005Patch
- https://www.drupal.org/node/2569577Patch
- http://cgit.drupalcode.org/sqlsrv/commit/?id=2ea0da8
- https://www.drupal.org/node/2569003Patch
- https://www.drupal.org/node/2569005Patch
- https://www.drupal.org/node/2569577Patch
Timeline
- Published
- Oct 21, 2015
- Last modified
- Jun 17, 2026
- NVD status
- Modified