CVE-2022-31022: Missing Role Based Access Control for the REST handlers in bleve/http package
- 1 reference with an unsupported link type was hidden.
Vulnerability summary
CVE-2022-31022 is a medium (CVSS 6.2) vulnerability in blevesearch bleve. EPSS estimates a 0.34% chance of exploitation in the next 30 days, higher than 27.7% of scored vulnerabilities.
Not severe (CVSS 6.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 17Timeline
- 01-06-2022PublishedVulnerability first disclosed.
- 08-05-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · GoEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
0.34%
Chance of exploitation in the next 30 days
Percentile
28%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.34% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-288Authentication Bypass Using an Alternate Path or ChannelThe product requires authentication, but the product has an alternate path or channel that does not require authentication.
- CWE-306Missing Authentication for Critical FunctionalityThe product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
Affected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard21 products
- dgraphAll versions (No fix recorded)
- gitea< 1.23.7-r2
- gitea-compat< 1.23.7-r2
- gitea-fips< 1.23.7-r2
- gitea-fips-compat< 1.23.7-r2
Wolfi4 products
- dgraphAll versions (No fix recorded)
- gitea< 1.23.7-r2
- gitea-compat< 1.23.7-r2
- gitness< 3.0.0-r0
Blevesearch1 product
- bleve≥ 0.1.0, < 2.5.0
Couchbase1 product
- bleve≥ 0.1.0 (No fix recorded)
Debian1 product
- golang-github-blevesearch-bleveAll versions (No fix recorded)
Github.com/blevesearch1 product
- bleve≤ 1.10.14 | All versions (No fix recorded)
Github.com/blevesearch/bleve1 product
- v2< 2.5.0
Ubuntu1 product
- golang-github-blevesearch-bleveAll versions (No fix recorded)
8 vendors · 31 products
References
9 links- github.com/blevesearch/bleve/security/advisories/GHSA-9w9f-6mg8-jp7wX Refsource CONFIRMREPORTAdvisoryWEBThird Party Advisory
- github.com/blevesearch/bleve/commit/1c7509d6a17d36f265c90b4e8f4e3a3182fe79ffX Refsource MISCFIXWEBPatchThird Party Advisory
- github.com/blevesearch/bleve/commit/af9e3111dadfedf9d30f0448506b4a57fecc8550X Refsource MISCFIXWEBPatchThird Party Advisory