# CVE-2022-31066: Configuration API in EdgeXFoundry exposes message bus credentials to local unauthenticated users

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.38% (percentile 24, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** GHSA-g63h-q855-vp3q, GO-2022-0491
- **Published:** 2022-06-14T21:55:11.000Z
- **Modified:** 2026-06-17T04:44:43.480Z

## Who should check

- Projects that depend on Go package github.com/edgexfoundry/device-sdk-go/v2 (\< 2.1.1)
- Projects that depend on Go package github.com/edgexfoundry/app-functions-sdk-go/v2 (\< 2.1.1)
- Projects that depend on Go package github.com/edgexfoundry/app-functions-sdk-go
- Projects that depend on Go package github.com/edgexfoundry/device-sdk-go
- Anyone running edgexfoundry edgex-go \< 2.1.1

## 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.

## Affected and fixed versions

- Go `github.com/edgexfoundry/device-sdk-go/v2`: affected \< 2.1.1; fixed 2.1.1 (osv)
- Go `github.com/edgexfoundry/app-functions-sdk-go/v2`: affected \< 2.1.1; fixed 2.1.1 (osv)
- Go `github.com/edgexfoundry/app-functions-sdk-go`: affected see advisory; fixed no fix listed yet (osv)
- Go `github.com/edgexfoundry/device-sdk-go`: affected see advisory; fixed no fix listed yet (osv)
- edgexfoundry edgex-go: \< 2.1.1 (cvelist)

## Mitigation

- Upgrade github.com/edgexfoundry/device-sdk-go/v2 to 2.1.1 or later.
- Upgrade github.com/edgexfoundry/app-functions-sdk-go/v2 to 2.1.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-31066. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-31066.md
Affected: github.com/edgexfoundry/device-sdk-go/v2 < 2.1.1; github.com/edgexfoundry/app-functions-sdk-go/v2 < 2.1.1; github.com/edgexfoundry/app-functions-sdk-go; github.com/edgexfoundry/device-sdk-go
Fixed in: 2.1.1

Steps:
1. Search this machine and project for github.com/edgexfoundry/device-sdk-go/v2 (Go), github.com/edgexfoundry/app-functions-sdk-go/v2 (Go), github.com/edgexfoundry/app-functions-sdk-go (Go), github.com/edgexfoundry/device-sdk-go (Go), edgexfoundry edgex-go: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-31066 being exploited?

There is no confirmed exploitation: CVE-2022-31066 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.38% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-31066?

Medium: CVSS 5.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-31066?

github.com/edgexfoundry/device-sdk-go/v2 \< 2.1.1; github.com/edgexfoundry/app-functions-sdk-go/v2 \< 2.1.1; github.com/edgexfoundry/app-functions-sdk-go; github.com/edgexfoundry/device-sdk-go.

### Is there a fix for CVE-2022-31066?

Yes. Fixed in 2.1.1. Upgrade github.com/edgexfoundry/device-sdk-go/v2 to 2.1.1 or later. Upgrade github.com/edgexfoundry/app-functions-sdk-go/v2 to 2.1.1 or later.

### How do I check if I'm affected by CVE-2022-31066?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/edgexfoundry/edgex-go/security/advisories/GHSA-g63h-q855-vp3q>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-31066>
- patch: <https://github.com/edgexfoundry/device-sdk-go/pull/1161>
- patch: <https://github.com/edgexfoundry/edgex-go/pull/4016>
- other: <https://github.com/edgexfoundry/edgex-go>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-31066>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g63h-q855-vp3q> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-0491> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-31066> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-31066>
