{"id":"CVE-2021-31158","aliases":["EUVD-2021-18072","GHSA-j8hg-ph7r-fwmj"],"status":"published","title":"In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression...","description":"In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression queries were not correctly checking the user's permissions, allowing read-access to resources beyond what those users were explicitly allowed to access.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.00704,"percentile":0.53812,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-863"],"published":"2021-05-19T18:37:15Z","modified":"2026-06-17T03:51:21Z","products":[{"vendor":"couchbase","product":"couchbase_server"}],"references":[{"url":"https://www.couchbase.com/resources/security#SecurityAlerts","tags":["x_refsource_MISC","x_transferred","Vendor Advisory"]},{"url":"https://docs.couchbase.com/server/current/release-notes/relnotes.html","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31158"},{"url":"https://github.com/advisories/GHSA-j8hg-ph7r-fwmj"}],"sources":{"cve":[{"id":"CVE-2021-31158","description":"In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression queries were not correctly checking the user's permissions, allowing read-access to resources beyond what those users were explicitly allowed to access.","status":"published","published":"2021-05-19T18:37:15Z","modified":"2024-08-03T22:48:14.44Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2021-18072","description":"In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression queries were not correctly checking the user's permissions, allowing read-access to resources beyond what those users were explicitly allowed to access.","status":"published","published":"2021-05-19T18:37:15Z","modified":"2024-08-03T22:48:14Z","updated_at":"2026-11-03T03:24:40.11662Z"}],"ghsa":[{"id":"GHSA-j8hg-ph7r-fwmj","title":"In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression...","description":"In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression queries were not correctly checking the user's permissions, allowing read-access to resources beyond what those users were explicitly allowed to access.","status":"published","published":"2022-05-24T19:02:47Z","modified":"2023-01-29T05:06:45Z","cwes":["CWE-863"],"updated_at":"2026-11-02T14:46:05.419939Z"}],"nvd":[{"id":"CVE-2021-31158","description":"In the Query Engine in Couchbase Server 6.5.x and 6.6.x through 6.6.1, Common Table Expression queries were not correctly checking the user's permissions, allowing read-access to resources beyond what those users were explicitly allowed to access.","status":"published","published":"2021-05-19T19:15:08.42Z","modified":"2026-06-17T03:51:21.197Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-863"],"updated_at":"2026-11-02T14:06:53.343329Z"}]}}
