Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/blevesearch/bleve
  4. ›
  5. CVE-2022-31022

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

June 3, 2022 (updated May 8, 2025)

What kind of vulnerability is it? Who is impacted?

Bleve includes HTTP utilities under bleve/http package, that are used by its sample application. (https://github.com/blevesearch/bleve-explorer) These HTTP methods paves 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.

References

  • github.com/advisories/GHSA-9w9f-6mg8-jp7w
  • github.com/blevesearch/bleve/commit/1c7509d6a17d36f265c90b4e8f4e3a3182fe79ff
  • github.com/blevesearch/bleve/commit/af9e3111dadfedf9d30f0448506b4a57fecc8550
  • github.com/blevesearch/bleve/security/advisories/GHSA-9w9f-6mg8-jp7w
  • nvd.nist.gov/vuln/detail/CVE-2022-31022
  • pkg.go.dev/vuln/GO-2022-0470

Code Behaviors & Features

Detect and mitigate CVE-2022-31022 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.10.14

Solution

Unfortunately, there is no solution available yet.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-306: Missing Authentication for Critical Function

Source file

go/github.com/blevesearch/bleve/CVE-2022-31022.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:28 +0000.