CVE-2015-7876 SQL injection in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary SQL commands via improper escaping in the Drupal SQL Server driver, potentially compromising database integrity.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2015-7876?

CVE-2015-7876 is a high-severity SQL injection vulnerability in n/a, published on 21 Oct 2015. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2015-7876?

It affects 1 product.

Products include Drupal 7 Driver for Sql Server and Sql Azure Project Drupal 7 Driver for Sql Server and Sql Azure.

How do I fix CVE-2015-7876?

No fix has been published for CVE-2015-7876 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2015-7876 being exploited?

There is no known exploitation of CVE-2015-7876 in the wild and no public exploit code.

Sources

Also known as GHSA-2hpq-qm2v-gxhw.

Is CVE-2015-7876 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free