CVE-2022-31066 Configuration API in EdgeXFoundry exposes message bus credentials to local unauthenticated users
Local unauthenticated users can access message bus credentials in security-enabled mode, allowing data interception or injection.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-31066?
CVE-2022-31066 is a medium-severity vulnerability in edgexfoundry edgex-go, published on 14 Jun 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
EdgeX Foundry is an open source project for building a common open framework for Internet of Things edge computing. Prior to version 2.1.1, the /api/v2/config endpoint exposes message bus credentials to local unauthenticated users. In security-enabled mode, message bus credentials are supposed to be kept in the EdgeX secret store and require authentication to access. This vulnerability bypasses the access controls on message bus credentials when running in security-enabled mode. (No credentials are required when running in security-disabled mode.) As a result, attackers could intercept data or inject fake data into the EdgeX message bus. Users should upgrade to EdgeXFoundry Kamakura release (2.2.0) or to the June 2022 EdgeXFoundry LTS Jakarta release (2.1.1) to receive a patch. More information about which go modules, docker containers, and snaps contain patches is available in the GitHub Security Advisory. There are currently no known workarounds for this issue.
Weakness: CWE-200
Which versions are affected by CVE-2022-31066?
8 open source packages ship an affected version, including github.com/edgexfoundry/app-functions-sdk-go/v2, github.com/edgexfoundry/app-functions-sdk-go and github.com/edgexfoundry/device-sdk-go. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/edgexfoundry/app-functions-sdk-go/v2 Go | All versions | 2.1.1 |
github.com/edgexfoundry/app-functions-sdk-go/v2 Go | All versions | 2.1.1 |
github.com/edgexfoundry/app-functions-sdk-go/v2 Go | All versions | 2.1.1 |
github.com/edgexfoundry/app-functions-sdk-go Go | All versions | None |
github.com/edgexfoundry/device-sdk-go Go | All versions | None |
github.com/edgexfoundry/device-sdk-go/v2 Go | All versions | 2.1.1 |
2 more packages
github.com/edgexfoundry/device-sdk-go/v2 Go | All versions | 2.1.1 |
github.com/edgexfoundry/device-sdk-go/v2 Go | All versions | 2.1.1 |
Products include Edgexfoundry Edgex Foundry.
How do I fix CVE-2022-31066?
Upgrade github.com/edgexfoundry/app-functions-sdk-go/v2 to 2.1.1 or later.
Is CVE-2022-31066 being exploited?
There is no known exploitation of CVE-2022-31066 in the wild and no public exploit code.
Other vulnerabilities in edgexfoundry edgex-go
Sources
Also known as GHSA-g63h-q855-vp3q, GO-2022-0491.