{"id":"CVE-2022-31066","aliases":["CVE-2022-31066","GHSA-g63h-q855-vp3q","GO-2022-0491"],"related":[],"kind":"vulnerability","state":"published","title":"Configuration API in EdgeXFoundry exposes message bus credentials to local unauthenticated users","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe /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.\n\n### Patches\nUsers should upgrade to EdgeXFoundry Kamakura release (2.2.0) or to the June 2022 EdgeXFoundry LTS Jakarta release (2.1.1).\n\nThe issue has been patched in the following docker containers and snaps:\n\n#### Patched go modules\ngithub.com/edgexfoundry/device-sdk-go/v2 >= v2.1.1\ngithub.com/edgexfoundry/app-functions-sdk-go/v2 >= v2.1.1\n\n#### Patched docker containers\nURL: https://hub.docker.com/r/edgexfoundry\n- docker.io/edgexfoundry/core-metadata:>=2.1.1\n- docker.io/edgexfoundry/core-metadata-arm64:>=2.1.1\n- docker.io/edgexfoundry/core-data:>=2.1.1\n- docker.io/edgexfoundry/core-data-arm64:>=2.1.1\n- docker.io/edgexfoundry/core-command:>=2.1.1\n- docker.io/edgexfoundry/core-command-arm64:>=2.1.1\n- docker.io/edgexfoundry/support-notifications:>=2.1.1\n- docker.io/edgexfoundry/support-notifications-arm64:>=2.1.1\n- docker.io/edgexfoundry/support-scheduler:>=2.1.1\n- docker.io/edgexfoundry/support-scheduler-arm64:>=2.1.1\n- docker.io/edgexfoundry/sys-mgmt-agent:>=2.1.1\n- docker.io/edgexfoundry/sys-mgmt-agent-arm64:>=2.1.1\n- docker.io/edgexfoundry/security-proxy-setup:>=2.1.1\n- docker.io/edgexfoundry/security-proxy-setup-arm64:>=2.1.1\n- docker.io/edgexfoundry/security-secretstore-setup:>=2.1.1\n- docker.io/edgexfoundry/security-secretstore-setup-arm64:>=2.1.1\n- docker.io/edgexfoundry/security-bootstrapper:>=2.1.1\n- docker.io/edgexfoundry/security-bootstrapper-arm64:>=2.1.1\n- docker.io/edgexfoundry/app-rfid-llrp-inventory:>=2.1.1\n- docker.io/edgexfoundry/app-rfid-llrp-inventory-arm64:>=2.1.1\n- docker.io/edgexfoundry/app-service-configurable:>=2.1.1\n- docker.io/edgexfoundry/app-service-configurable-arm64:>=2.1.1\n- docker.io/edgexfoundry/device-camera:>=2.2.0\n- docker.io/edgexfoundry/device-camera-arm64:>=2.2.0\n- docker.io/edgexfoundry/device-gpio:>=2.1.1\n- docker.io/edgexfoundry/device-gpio-arm64:>=2.1.1\n- docker.io/edgexfoundry/device-modbus:>=2.1.1\n- docker.io/edgexfoundry/device-modbus-arm64:>=2.1.1\n- docker.io/edgexfoundry/device-mqtt:>=2.1.1\n- docker.io/edgexfoundry/device-mqtt-arm64:>=2.1.1\n- docker.io/edgexfoundry/device-rest:>=2.1.1\n- docker.io/edgexfoundry/device-rest-arm64:>=2.1.1\n- docker.io/edgexfoundry/device-rfid-llrp:>=2.1.1\n- docker.io/edgexfoundry/device-rfid-llrp-arm64:>=2.1.1\n- docker.io/edgexfoundry/device-snmp:>=2.1.1\n- docker.io/edgexfoundry/device-snmp-arm64:>=2.1.1\n- docker.io/edgexfoundry/device-virtual:>=2.1.1\n- docker.io/edgexfoundry/device-virtual-arm64:>=2.1.1\n\n#### Patched snaps\nURL: https://snapcraft.io/edgexfoundry\nedgexfoundry  2.1/stable  (will be automatically upgraded to 2.1.1)\n\n### Workarounds\nNo workaround available.\n\n### References\n* https://github.com/edgexfoundry/edgex-go/security/advisories/GHSA-g63h-q855-vp3q\n* https://github.com/edgexfoundry/device-sdk-go/pull/1161 (patch against Kamakura)\n* https://github.com/edgexfoundry/edgex-go/pull/4016 (patch against Kamakura)\n* https://github.com/edgexfoundry/edgex-go/pull/4039 (cherry-pick patch against Jakarta)\n* https://github.com/edgexfoundry/device-sdk-go/pull/1167 (differs from patch on main: don't copy PW in vs delete it after)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Contact us in the [Slack #security channel](https://slack.edgexfoundry.org/)\n* Open an issue in [edgex-go](https://github.com/edgexfoundry/edgex-go)\n* Email us at [EdgeX-TSC-Security@lists.edgexfoundry.org](mailto:EdgeX-TSC-Security@lists.edgexfoundry.org)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Configuration API in EdgeXFoundry 2.1.0 and earlier exposes message bus credentials to local unauthenticated users in github.com/edgexfoundry/app-functions-sdk-go","format":"markdown","source":"go"},{"lang":"es","text":"EdgeX Foundry es un proyecto de código abierto para construir un marco común abierto para la computación de borde de la Internet de las Cosas. En versiones anteriores a 2.1.1, el endpoint /api/v2/config expone las credenciales del bus de mensajes a usuarios locales no autenticados. En el modo de seguridad habilitado, las credenciales del bus de mensajes se supone que son mantenidas en el almacén secreto de EdgeX y requieren autenticación para acceder. Esta vulnerabilidad omite los controles de acceso a las credenciales del bus de mensajes cuando es ejecutada en modo de seguridad habilitado. (No son requaridas credenciales cuando es ejecutado en modo de seguridad deshabilitada.) Como resultado, los atacantes podrían interceptar datos o inyectar datos falsos en el bus de mensajes de EdgeX. Los usuarios deben actualizar a EdgeXFoundry Kamakura versión (2.2.0) o a EdgeXFoundry LTS Jakarta versión de junio de 2022 (2.1.1) para recibir el parche. Más información sobre qué módulos go, contenedores docker y snaps contienen parches está disponible en el aviso de seguridad de GitHub. Actualmente no se presentan mitigaciones conocidas para este problema","source":"nvd"}],"published":"2022-06-14T21:55:11.000Z","modified":"2026-06-17T04:44:43.480Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:N","score":3.6,"rating":"LOW"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"< 2.1.1","status":"affected"}],"vendor":"edgexfoundry","product":"edgex-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.1"}],"ecosystem":"Go","package":"github.com/edgexfoundry/device-sdk-go/v2","purl":"pkg:golang/github.com/edgexfoundry/device-sdk-go/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.1"}],"ecosystem":"Go","package":"github.com/edgexfoundry/app-functions-sdk-go/v2","purl":"pkg:golang/github.com/edgexfoundry/app-functions-sdk-go/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/edgexfoundry/app-functions-sdk-go","purl":"pkg:golang/github.com/edgexfoundry/app-functions-sdk-go","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.1"}],"ecosystem":"Go","package":"github.com/edgexfoundry/app-functions-sdk-go/v2","purl":"pkg:golang/github.com/edgexfoundry/app-functions-sdk-go/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/edgexfoundry/device-sdk-go","purl":"pkg:golang/github.com/edgexfoundry/device-sdk-go","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.1"}],"ecosystem":"Go","package":"github.com/edgexfoundry/device-sdk-go/v2","purl":"pkg:golang/github.com/edgexfoundry/device-sdk-go/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.1.1"}],"vendor":"edgexfoundry","product":"edgex_foundry","cpe":"cpe:2.3:a:edgexfoundry:edgex_foundry:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/edgexfoundry/edgex-go/security/advisories/GHSA-g63h-q855-vp3q","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/edgexfoundry/device-sdk-go/pull/1161","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/edgexfoundry/edgex-go/pull/4016","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31066","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/edgexfoundry/edgex-go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:05:10.821Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31066","url":"https://www.cve.org/CVERecord?id=CVE-2022-31066","licence":"CVE Terms of Use","modified":"2025-04-23T18:15:12.447Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g63h-q855-vp3q","url":"https://github.com/advisories/GHSA-g63h-q855-vp3q","licence":"CC-BY-4.0","modified":"2024-08-21T15:41:53.625Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0491","url":"https://pkg.go.dev/vuln/GO-2022-0491","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:26.464Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31066","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31066","licence":"Public domain","modified":"2026-06-17T04:44:43.480Z"}],"updatedAt":"2026-11-25T22:58:12.326Z","epss":{"score":0.0032,"percentile":0.26999,"date":"2026-12-01T12:00:22.000Z"}}