CVE-2022-31022 in Couchbase Bleve
Bleve is a text indexing library for go. Bleve includes HTTP utilities under bleve/http package, that are used by its sample application. These HTTP methods pave way for exploitation of a node’s filesystem where the bleve index resides, if the user has used bleve’s own HTTP (bleve/http) handlers for exposing the acc...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Couchbase | Bleve | ≥ 0.1.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Bleve is a text indexing library for go. Bleve includes HTTP utilities under bleve/http package, that are used by its sample application. These HTTP methods pave way for exploitation of a node’s filesystem where the bleve index resides, if the user has used bleve’s own HTTP (bleve/http) handlers for exposing the access to the indexes. For instance, the CreateIndexHandler (`http/index_create.go`) and DeleteIndexHandler (`http/index_delete.go`) enable an attacker to create a bleve index (directory structure) anywhere where the user running the server has the write permissions and to delete recursively any directory owned by the same user account. Users who have used the bleve/http package for exposing access to bleve index without the explicit handling for the Role Based Access Controls(RBAC) of the index assets would be impacted by this issue. Version 2.5.0 relocated the `http/` dir used _only_ by bleve-explorer to `blevesearch/bleve-explorer`, thereby addressing the issue. However, the http package is purely intended to be used for demonstration purposes. Bleve was never designed handle the RBACs, nor it was ever advertised to be used in that way. The collaborators of this project have decided to stay away from adding any authentication or authorization to bleve project at the moment. The bleve/http package is mainly for demonstration purposes and it lacks exhaustive validation of the user inputs as well as any authentication and authorization measures. It is recommended to not use bleve/http in production use cases.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-31022 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-068300-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Published | 2022-06-01 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-288: CWE-288
CWE-306: Missing Authentication for Critical Function
Software does not perform any authentication for functionality that requires a verified identity.
Related attack patterns (CAPEC)
CAPEC-127 Directory Indexing via CWE-288
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-288
CAPEC-12 Choosing Message Identifier via CWE-306
CAPEC-36 Using Unpublished Interfaces or Functionality via CWE-306
CAPEC-62 Cross Site Request Forgery via CWE-306
Show all 7
CAPEC-166 Force the System to Reset Values via CWE-306
CAPEC-216 Communication Channel Manipulation via CWE-306
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2022-31022 affects the Bleve text indexing library for Go, specifically its HTTP utilities under the bleve/http package. This vulnerability allows for filesystem exploitation on a node where the Bleve index resides if the user has exposed the index access via Bleve's HTTP handlers.
The vulnerability is exploited through HTTP methods provided by Bleve's HTTP utilities, particularly the CreateIndexHandler. An attacker can potentially manipulate these handlers to access or modify the filesystem where the Bleve index is stored.
Questions
What is CVE-2022-31022?
CVE-2022-31022 affects the Bleve text indexing library for Go, specifically its HTTP utilities under the bleve/http package. This vulnerability allows for filesystem exploitation on a node where the Bleve index resides if the user has exposed the index access via Bleve's HTTP handlers.
What is the CVSS score for CVE-2022-31022?
CVE-2022-31022 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.4%.
Is CVE-2022-31022 actively exploited?
No confirmed active exploitation of CVE-2022-31022 as of 2026-09-25.
How do I remediate CVE-2022-31022?
Priority: MEDIUM.
What systems are affected by CVE-2022-31022?
CVE-2022-31022 affects Couchbase Bleve.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Couchbase","product":"Bleve","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.