6.2

CVE-2022-31022: Missing Role Based Access Control for the REST handlers in bleve/http package

Analyzed
AliasesUBUNTU-CVE-2022-31022DEBIAN-CVE-2022-31022CGA-3p37-63rr-659r
Published 01-06-2022Last modified 08-05-2025
Some data may be incomplete
  • 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.

Priority
Routine

Not severe (CVSS 6.2, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.2/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.34%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 17

Timeline

  1. 01-06-2022
    PublishedVulnerability first disclosed.
  2. 08-05-2025
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
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