Read the docs
TI-2022-13067 Aliases CVE-2022-31022GHSA-9w9f-6mg8-jp7w

Missing Role Based Access Control for the REST handlers in bleve/http package

Priority LOW 28CWE-288Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-288.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00342 27th percentileScored 2026-11-07
Fix Fixed bleve (blevesearch): 2.5.0github.com/blevesearch/bleve/v2 (Go): 2.5.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
blevesearchbleve0.1.0 to before 2.5.02.5.0Patch availableCNA
—github.com/blevesearch/bleve (Go)up to 1.10.14—No fix listedGHSA-9w9f-6mg8-jp7w
—github.com/blevesearch/bleve/v2 (Go)before 2.5.02.5.0Patch availableGHSA-9w9f-6mg8-jp7w
  • bleve Vendorblevesearch Affected 0.1.0 to before 2.5.0 Fixed in 2.5.0 Patch available CNA
  • github.com/blevesearch/bleve (Go) Vendor— Affected up to 1.10.14 Fixed in — No fix listed GHSA-9w9f-6mg8-jp7w
  • github.com/blevesearch/bleve/v2 (Go) Vendor— Affected before 2.5.0 Fixed in 2.5.0 Patch available GHSA-9w9f-6mg8-jp7w

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:couchbase:bleve:*:*:*:*:*:*:*:*0.1.0VulnerableCouchbase
  • cpe:2.3:a:couchbase:bleve:*:*:*:*:*:*:*:* Versions 0.1.0 Vulnerable ·Couchbase

Remediation

  • Fix · CNA bleve (blevesearch) Fixed in 2.5.0
  • Fix · GHSA-9w9f-6mg8-jp7w github.com/blevesearch/bleve/v2 (Go) Fixed in 2.5.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-31022
  2. 2026-10-03 Alias added: GHSA-9w9f-6mg8-jp7w

References

Sources