N1QL injection Affecting github.com/couchbase/sync_gateway/db package, versions <2.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.5% (78th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about N1QL injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCOUCHBASESYNCGATEWAYDB-451074
  • published27 Jun 2019
  • disclosed26 Jun 2019
  • creditUnknown

Introduced: 26 Jun 2019

CVE-2019-9039  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/couchbase/sync_gateway/db to version 2.5 or higher.

Overview

github.com/couchbase/sync_gateway/db is a horizontally scalable web server that securely manages the access control and synchronization of data between Couchbase Lite and Couchbase Server.

Affected versions of this package are vulnerable to N1QL injection. An attacker with access to the public REST API can insert additional N1QL statements through the parameters startkey and endkey of the _all_docs endpoint.

CVSS Scores

version 3.1