UBUNTU-CVE-2022-31022

Source
https://ubuntu.com/security/CVE-2022-31022
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31022.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2022-31022
Related
Published
2022-06-01T20:15:00Z
Modified
2025-01-13T10:23:29Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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. There is no patch for this issue because 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.

References

Affected packages

Ubuntu:Pro:18.04:LTS / golang-github-blevesearch-bleve

Package

Name
golang-github-blevesearch-bleve
Purl
pkg:deb/ubuntu/golang-github-blevesearch-bleve@0.5.0+git20170912.278.6eea5b78-3?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.5.0+git20170628.269.174f8ed4-2
0.5.0+git20170912.278.6eea5b78-2
0.5.0+git20170912.278.6eea5b78-3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / golang-github-blevesearch-bleve

Package

Name
golang-github-blevesearch-bleve
Purl
pkg:deb/ubuntu/golang-github-blevesearch-bleve@0.5.0+git20170912.278.6eea5b78-4?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.5.0+git20170912.278.6eea5b78-4

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / golang-github-blevesearch-bleve

Package

Name
golang-github-blevesearch-bleve
Purl
pkg:deb/ubuntu/golang-github-blevesearch-bleve@0.5.0+git20170912.278.6eea5b78-5?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.5.0+git20170912.278.6eea5b78-5

Ecosystem specific

{
    "ubuntu_priority": "medium"
}