CVE-2022-31022: Missing Role Based Access Control for the REST handlers in bleve/http package
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.39496%
CWE
Published
6/3/2022
Updated
2/14/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/blevesearch/bleve | go | <= 1.10.14 | |
| github.com/blevesearch/bleve/v2 | go | <= 2.3.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability documentation explicitly identifies CreateIndexHandler and DeleteIndexHandler as problematic endpoints that lack RBAC and validation. These handlers are specifically called out in CVE-2022-31022, GHSA advisory, and Go vulnerability report GO-2022-0470. The functions directly manipulate filesystem paths based on user input without authentication/authorization checks. While other HTTP handlers in the package may also lack security controls, these two are explicitly demonstrated as dangerous in the vulnerability reports with concrete attack scenarios.