{"answers":{"affected":"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.","exploited":"There is no known exploitation of CVE-2022-31066 in the wild and no public exploit code.","fix":"Upgrade github.com/edgexfoundry/app-functions-sdk-go/v2 to 2.1.1 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-31066 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2022-31066 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/edgexfoundry/app-functions-sdk-go/v2 (Go): affected all versions; fixed in 2.1.1\n- github.com/edgexfoundry/app-functions-sdk-go/v2 (Go): affected all versions; fixed in 2.1.1\n- github.com/edgexfoundry/app-functions-sdk-go/v2 (Go): affected all versions; fixed in 2.1.1\n- github.com/edgexfoundry/app-functions-sdk-go (Go): affected all versions; no fix listed\n- github.com/edgexfoundry/device-sdk-go (Go): affected all versions; no fix listed\n- github.com/edgexfoundry/device-sdk-go/v2 (Go): affected all versions; fixed in 2.1.1\n- github.com/edgexfoundry/device-sdk-go/v2 (Go): affected all versions; fixed in 2.1.1\n- github.com/edgexfoundry/device-sdk-go/v2 (Go): affected all versions; fixed in 2.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-31066/ (Markdown: https://insights.sbomify.com/CVE-2022-31066/index.md)","id":"CVE-2022-31066","markdown":"https://insights.sbomify.com/CVE-2022-31066/index.md","name":"CVE-2022-31066","record":{"aliases":["GHSA-g63h-q855-vp3q","GO-2022-0491"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"EdgeX Foundry IoT framework","requires_auth":"none","summary":"Local unauthenticated users can access message bus credentials in security-enabled mode, allowing data interception or injection.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"edgex_foundry","vendor":"edgexfoundry"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Configuration API in EdgeXFoundry exposes message bus credentials to local unauthenticated users","id":"CVE-2022-31066","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":8,"n_references":3,"next":{"headline":"Sensitive Data Exposure on Refused Inventory Files in GLPI","id":"CVE-2022-31068"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/app-functions-sdk-go","purl":"pkg:golang/github.com/edgexfoundry/app-functions-sdk-go","source":"GO-2022-0491"},{"ecosystem":"Go","fixed":["2.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/app-functions-sdk-go/v2","purl":null,"source":"GHSA-g63h-q855-vp3q"},{"ecosystem":"Go","fixed":["2.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/app-functions-sdk-go/v2","purl":"pkg:golang/github.com/edgexfoundry/app-functions-sdk-go/v2","source":"GHSA-g63h-q855-vp3q"},{"ecosystem":"Go","fixed":["2.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/app-functions-sdk-go/v2","purl":"pkg:golang/github.com/edgexfoundry/app-functions-sdk-go/v2","source":"GO-2022-0491"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/device-sdk-go","purl":"pkg:golang/github.com/edgexfoundry/device-sdk-go","source":"GO-2022-0491"},{"ecosystem":"Go","fixed":["2.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/device-sdk-go/v2","purl":null,"source":"GHSA-g63h-q855-vp3q"},{"ecosystem":"Go","fixed":["2.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/device-sdk-go/v2","purl":"pkg:golang/github.com/edgexfoundry/device-sdk-go/v2","source":"GHSA-g63h-q855-vp3q"},{"ecosystem":"Go","fixed":["2.1.1"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/device-sdk-go/v2","purl":"pkg:golang/github.com/edgexfoundry/device-sdk-go/v2","source":"GO-2022-0491"}],"prev":{"headline":"Cross site scripting vulnerability for private chat in bigbluebutton","id":"CVE-2022-31065"},"products":["edgex-go"],"published":"2022-06-14","related":[{"cvss_score":8.3,"headline":"Hardcoded credentials in edgex-go","id":"CVE-2021-32753","kev_date_added":null,"published":"2021-07-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["edgexfoundry"]},"summary":"Local unauthenticated users can access message bus credentials in security-enabled mode, allowing data interception or injection.","url":"https://insights.sbomify.com/CVE-2022-31066/"}