Missing Role Based Access Control for the REST handlers in bleve/http package
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| blevesearch | bleve | 0.1.0 to before 2.5.0 | 2.5.0 | Patch available | CNA |
| — | github.com/blevesearch/bleve (Go) | up to 1.10.14 | — | No fix listed | GHSA-9w9f-6mg8-jp7w |
| — | github.com/blevesearch/bleve/v2 (Go) | before 2.5.0 | 2.5.0 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2022-31022
- 2026-10-03 Alias added: GHSA-9w9f-6mg8-jp7w
References
Patch 2
Advisory 2
Sources
- CVE-2022-31022 · CVE Program
- CVE-2022-31022 · NVD
- FIRST EPSS
- GHSA-9w9f-6mg8-jp7w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences