CVE-2022-31022
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/blevesearch/bleveGo | <= 1.10.14 | — |
github.com/blevesearch/bleve/v2Go | < 2.5.0 | 2.5.0 |
Affected products
93- osv-coords91 versionspkg:apk/chainguard/dgraphpkg:apk/chainguard/giteapkg:apk/chainguard/gitea-compatpkg:apk/chainguard/gitea-fipspkg:apk/chainguard/gitea-fips-compatpkg:apk/chainguard/gitnesspkg:apk/chainguard/grafana-11.3pkg:apk/chainguard/grafana-11.3-oci-compatpkg:apk/chainguard/grafana-11.4pkg:apk/chainguard/grafana-11.4-oci-compatpkg:apk/chainguard/grafana-11.5pkg:apk/chainguard/grafana-11.5-oci-compatpkg:apk/chainguard/grafana-11.6pkg:apk/chainguard/grafana-11.6-oci-compatpkg:apk/chainguard/grafana-fips-11.3pkg:apk/chainguard/grafana-fips-11.3-oci-compatpkg:apk/chainguard/grafana-fips-11.4pkg:apk/chainguard/grafana-fips-11.4-oci-compatpkg:apk/chainguard/grafana-fips-11.5pkg:apk/chainguard/grafana-fips-11.5-oci-compatpkg:apk/chainguard/grafana-fips-11.6pkg:apk/chainguard/grafana-fips-11.6-oci-compatpkg:apk/chainguard/mattermost-10.0pkg:apk/chainguard/mattermost-10.0-compatpkg:apk/chainguard/mattermost-10.1pkg:apk/chainguard/mattermost-10.1-compatpkg:apk/chainguard/mattermost-10.2pkg:apk/chainguard/mattermost-10.2-compatpkg:apk/chainguard/mattermost-10.3pkg:apk/chainguard/mattermost-10.3-compatpkg:apk/chainguard/mattermost-10.4pkg:apk/chainguard/mattermost-10.4-compatpkg:apk/chainguard/mattermost-10.5pkg:apk/chainguard/mattermost-10.5-compatpkg:apk/chainguard/mattermost-10.6pkg:apk/chainguard/mattermost-10.6-compatpkg:apk/chainguard/mattermost-10.7pkg:apk/chainguard/mattermost-10.7-compatpkg:apk/chainguard/mattermost-10.8pkg:apk/chainguard/mattermost-10.8-compatpkg:apk/chainguard/mattermost-10.9pkg:apk/chainguard/mattermost-10.9-compatpkg:apk/chainguard/mattermost-9.11pkg:apk/chainguard/mattermost-9.11-compatpkg:apk/chainguard/mattermost-fips-10.5pkg:apk/chainguard/mattermost-fips-10.5-compatpkg:apk/chainguard/mattermost-fips-10.6pkg:apk/chainguard/mattermost-fips-10.6-compatpkg:apk/chainguard/mattermost-fips-10.7pkg:apk/chainguard/mattermost-fips-10.7-compatpkg:apk/chainguard/mattermost-fips-10.8pkg:apk/chainguard/mattermost-fips-10.8-compatpkg:apk/chainguard/mattermost-fips-10.9pkg:apk/chainguard/mattermost-fips-10.9-compatpkg:apk/chainguard/mattermost-fips-9.11pkg:apk/chainguard/mattermost-fips-9.11-compatpkg:apk/wolfi/dgraphpkg:apk/wolfi/giteapkg:apk/wolfi/gitea-compatpkg:apk/wolfi/gitnesspkg:apk/wolfi/grafana-11.3pkg:apk/wolfi/grafana-11.3-oci-compatpkg:apk/wolfi/grafana-11.4pkg:apk/wolfi/grafana-11.4-oci-compatpkg:apk/wolfi/grafana-11.5pkg:apk/wolfi/grafana-11.5-oci-compatpkg:apk/wolfi/grafana-11.6pkg:apk/wolfi/grafana-11.6-oci-compatpkg:apk/wolfi/mattermost-10.0pkg:apk/wolfi/mattermost-10.0-compatpkg:apk/wolfi/mattermost-10.1pkg:apk/wolfi/mattermost-10.1-compatpkg:apk/wolfi/mattermost-10.2pkg:apk/wolfi/mattermost-10.2-compatpkg:apk/wolfi/mattermost-10.3pkg:apk/wolfi/mattermost-10.3-compatpkg:apk/wolfi/mattermost-10.4pkg:apk/wolfi/mattermost-10.4-compatpkg:apk/wolfi/mattermost-10.5pkg:apk/wolfi/mattermost-10.5-compatpkg:apk/wolfi/mattermost-10.6pkg:apk/wolfi/mattermost-10.6-compatpkg:apk/wolfi/mattermost-10.7pkg:apk/wolfi/mattermost-10.7-compatpkg:apk/wolfi/mattermost-10.8pkg:apk/wolfi/mattermost-10.8-compatpkg:apk/wolfi/mattermost-10.9pkg:apk/wolfi/mattermost-10.9-compatpkg:golang/github.com/blevesearch/blevepkg:golang/github.com/blevesearch/bleve/v2pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweed
< 0+ 90 more
- (no CPE)range: < 0
- (no CPE)range: < 1.23.7-r2
- (no CPE)range: < 1.23.7-r2
- (no CPE)range: < 1.23.7-r2
- (no CPE)range: < 1.23.7-r2
- (no CPE)range: < 3.0.0-r0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 11.6.1-r2
- (no CPE)range: < 11.6.1-r2
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 10.0.4-r11
- (no CPE)range: < 10.0.4-r11
- (no CPE)range: < 10.1.7-r8
- (no CPE)range: < 10.1.7-r8
- (no CPE)range: < 10.2.3-r6
- (no CPE)range: < 10.2.3-r6
- (no CPE)range: < 10.3.4-r8
- (no CPE)range: < 10.3.4-r8
- (no CPE)range: < 10.4.5-r2
- (no CPE)range: < 10.4.5-r2
- (no CPE)range: < 10.5.5-r1
- (no CPE)range: < 10.5.5-r1
- (no CPE)range: < 10.6.3-r2
- (no CPE)range: < 10.6.3-r2
- (no CPE)range: < 10.7.1-r2
- (no CPE)range: < 10.7.1-r2
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 9.11.15-r1
- (no CPE)range: < 9.11.15-r1
- (no CPE)range: < 10.5.5-r1
- (no CPE)range: < 10.5.5-r1
- (no CPE)range: < 10.6.3-r2
- (no CPE)range: < 10.6.3-r2
- (no CPE)range: < 10.7.1-r2
- (no CPE)range: < 10.7.1-r2
- (no CPE)range: < 10.8.1-r2
- (no CPE)range: < 10.8.1-r2
- (no CPE)range: < 10.9.2-r1
- (no CPE)range: < 10.9.2-r1
- (no CPE)range: < 9.11.14-r1
- (no CPE)range: < 9.11.14-r1
- (no CPE)range: < 0
- (no CPE)range: < 1.23.7-r2
- (no CPE)range: < 1.23.7-r2
- (no CPE)range: < 3.0.0-r0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 11.6.7-r0
- (no CPE)range: < 11.6.7-r0
- (no CPE)range: < 10.0.4-r11
- (no CPE)range: < 10.0.4-r11
- (no CPE)range: < 10.1.7-r8
- (no CPE)range: < 10.1.7-r8
- (no CPE)range: < 10.2.3-r6
- (no CPE)range: < 10.2.3-r6
- (no CPE)range: < 10.3.4-r8
- (no CPE)range: < 10.3.4-r8
- (no CPE)range: < 10.4.5-r2
- (no CPE)range: < 10.4.5-r2
- (no CPE)range: < 10.5.5-r1
- (no CPE)range: < 10.5.5-r1
- (no CPE)range: < 10.6.3-r2
- (no CPE)range: < 10.6.3-r2
- (no CPE)range: < 10.7.1-r2
- (no CPE)range: < 10.7.1-r2
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: <= 1.10.14
- (no CPE)range: < 2.5.0
- (no CPE)range: < 0.0.20250612T141001-1.1
- Range: >= 0.1.0, < 2.5.0
Patches
Vulnerability mechanics
References
7- github.com/blevesearch/bleve/commit/1c7509d6a17d36f265c90b4e8f4e3a3182fe79ffnvdPatchThird Party AdvisoryWEB
- github.com/blevesearch/bleve/commit/af9e3111dadfedf9d30f0448506b4a57fecc8550nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-9w9f-6mg8-jp7wghsaADVISORY
- github.com/blevesearch/bleve/security/advisories/GHSA-9w9f-6mg8-jp7wnvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-31022ghsaADVISORY
- github.com/blevesearch/bleveghsaPACKAGE
- pkg.go.dev/vuln/GO-2022-0470ghsaWEB
News mentions
0No linked articles in our index yet.