{"id":"CVE-2021-41278","aliases":["GHSA-6c7m-qwxj-mvhp"],"title":"Broken encryption in EdgeX Foundry","summary":"Broken encryption in EdgeX Foundry","severity":"medium","cvss":5.4,"cvssVector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N","vendor":"edgexfoundry","product":"github.com/edgexfoundry/app-functions-sdk-go/v2","ecosystem":"go","affected":["github.com/edgexfoundry/app-functions-sdk-go/v2 < 2.1.0","github.com/edgexfoundry/app-functions-sdk-go","github.com/edgexfoundry/app-service-configurable < 2.1.0"],"patched":["github.com/edgexfoundry/app-functions-sdk-go/v2 2.1.0","github.com/edgexfoundry/app-service-configurable 2.1.0"],"published":"2021-11-19","updated":"2026-07-08","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-6c7m-qwxj-mvhp","references":[{"url":"https://github.com/edgexfoundry/app-functions-sdk-go/security/advisories/GHSA-6c7m-qwxj-mvhp"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41278"},{"url":"https://github.com/edgexfoundry/app-functions-sdk-go/commit/8fa13c6388ce76a6b878b54490eac61aa7d81165"},{"url":"https://github.com/edgexfoundry/app-functions-sdk-go"}],"tags":["osv","go","exploit-available"],"epss":0.00323,"epssPercentile":0.25577,"ingestedAt":"2026-07-09T18:56:35.984Z","exploits":{"github":1,"githubRepos":["https://github.com/FDlucifer/CVE-2021-41278"],"checkedAt":"2026-09-23T07:13:20.736Z"},"exploitAvailable":true,"slug":"CVE-2021-41278","body":"## Overview\n\n### Summary\nBroken encryption in app-functions-sdk “AES” transform in EdgeX Foundry releases prior to Jakarta allows attackers to decrypt messages via unspecified vectors.\n\n### Detailed Description\nThe app-functions-sdk exports an “aes” transform that user scripts can optionally call to encrypt data in the processing pipeline.  No decrypt function is provided.  Encryption is not enabled by default, but if used, the level of protection may be less than the user may expects due to a broken implementation in https://github.com/edgexfoundry/app-functions-sdk-go/blob/v1.0.0/pkg/transforms/encryption.go \n\nVersion v2.1.0 (EdgeX Foundry Jakarta release and later) of app-functions-sdk-go/v2 deprecates the “aes” transform and provides an improved “aes256” transform in its place.  The broken implementation will remain in a deprecated state until it is removed in the next EdgeX major release to avoid breakage of existing software that depends on the broken implementation.\n\n### Impact\nAs the broken transform is a library function that is not invoked by default, users who do not use the AES transform in their processing pipelines are unaffected.  Those that are affected are urged to upgrade to the Jakarta EdgeX release and modify processing pipelines to use the new \"aes256\" transform.\n\n#### Vulnerable go modules\n- github.com/edgexfoundry/app-functions-sdk-go  < v2.1.0\n- github.com/edgexfoundry/app-functions-sdk-go/v2  < v2.1.0\n- github.com/edgexfoundry/app-service-configurable < v2.1.0\n\n#### Vulnerable containers\n- https://hub.docker.com/r/edgexfoundry/app-service-configurable >= 2.0.0 < v2.1.0\n- https://hub.docker.com/r/edgexfoundry/app-service-configurable-arm64  >= 2.0.0 < 2.1.0\n- https://hub.docker.com/r/edgexfoundry/docker-app-service-configurable  < 2.0.0\n- https://hub.docker.com/r/edgexfoundry/docker-app-service-configurable-arm64 < 2.0.0 \n\n#### Vulnerable Snaps\n- https://snapcraft.io/edgex-app-service-configurable >= 2.0.0 < 2.1.0\n\n### Patches\nUpgrade to 2.1.0 version of app-functions-sdk-go/v2, app-service-configurable, and related docker containers shown below and modify user scripts to use the new \"aes256\" transform in place of the existing \"aes\" transform.\n\n#### Patched go modules\n- github.com/edgexfoundry/app-functions-sdk-go/v2 v2.1.0\n- github.com/edgexfoundry/app-service-configurable v2.1.0\n\nModification of user scripts is necessary for full remediation.\n\n#### Patched containers\n- https://hub.docker.com/r/edgexfoundry/app-service-configurable:>=2.1.0\n- https://hub.docker.com/r/edgexfoundry/app-service-configurable-arm64:>=2.1.0\n\nModification of user scripts is necessary for full remediation.\n\n#### Patched Snaps\n- https://snapcraft.io/edgex-app-service-configurable >= 2.1.0\n\nModification of user scripts is necessary for full remediation.\n\n### Workarounds\nIf unable to upgrade, change the processing pipeline to use an HTTPS (TLS 1.3) endpoint to export and skip encryption.\n\n### References\n* [2.0 documentation](https://docs.edgexfoundry.org/2.0/microservices/application/BuiltIn/#aes)\n* [2.1 documentation](https://docs.edgexfoundry.org/2.1/microservices/application/BuiltIn/#encryption-deprecated)\n* [GitHub issue](https://github.com/edgexfoundry/app-functions-sdk-go/issues/968)\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)\n\n## Affected packages\n\n- `github.com/edgexfoundry/app-functions-sdk-go/v2 < 2.1.0`\n- `github.com/edgexfoundry/app-functions-sdk-go`\n- `github.com/edgexfoundry/app-service-configurable < 2.1.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/edgexfoundry/app-functions-sdk-go/v2 2.1.0`\n- `github.com/edgexfoundry/app-service-configurable 2.1.0`","depth":"twilight","depthScore":42,"depthScoreParts":{"impact":29.7,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[{"seq":4543,"id":"CVE-2021-41278","ts":1788887189617,"field":"exploit_available","old":"false","new":"true"},{"seq":3426,"id":"CVE-2021-41278","ts":1788886306880,"field":"exploit_available","old":"true","new":"false"},{"seq":2281,"id":"CVE-2021-41278","ts":1788882976600,"field":"exploit_available","old":"false","new":"true"},{"seq":1310,"id":"CVE-2021-41278","ts":1788882388556,"field":"exploit_available","old":"true","new":"false"},{"seq":424,"id":"CVE-2021-41278","ts":1788881823881,"field":"exploit_available","old":"false","new":"true"}]}