{"id":"CVE-2021-41278","published":"2021-11-18T23:50:11Z","modified":"2024-08-04T03:08:31Z","title":"Broken encryption in app-functions-sdk “AES” transform in EdgeX Foundry releases prior to Jakarta allows attackers to…","vendor":"edgexfoundry","product":"app-functions-sdk-go","tier":"tail","description":{"text":"Functions SDK for EdgeX is meant to provide all the plumbing necessary for developers to get started in processing/transforming/exporting data out of the EdgeX IoT platform. In affected versions broken encryption in app-functions-sdk “AES” transform in EdgeX Foundry releases prior to Jakarta allows attackers to decrypt messages via unspecified vectors. The 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. Version 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. As 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00362,"percentile":0.30825,"provenance":"source"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"references":[{"url":"https://github.com/edgexfoundry/app-functions-sdk-go/security/advisories/GHSA-6c7m-qwxj-mvhp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/edgexfoundry/app-functions-sdk-go/commit/8fa13c6388ce76a6b878b54490eac61aa7d81165","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":6.17},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.78}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2021-11-22","earliestUrl":"https://github.com/FDlucifer/CVE-2021-41278","repos":[{"name":"FDlucifer/CVE-2021-41278","url":"https://github.com/FDlucifer/CVE-2021-41278","stars":1,"created":"2021-11-22"}]},"first":{"date":"2021-11-22","source":"PoC-in-GitHub","url":"https://github.com/FDlucifer/CVE-2021-41278"},"provenance":"source"},"vendorSlug":"edgexfoundry","affectedVersions":[{"vendor":"edgexfoundry","product":"app-functions-sdk-go","versions":["< 2.1.0"]}],"affected":[{"ecosystem":"Go","package":"github.com/edgexfoundry/app-functions-sdk-go/v2","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-6c7m-qwxj-mvhp"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/edgexfoundry/app-functions-sdk-go","vulnerableRanges":["<2.1.0"],"patched":[],"from":["GHSA-6c7m-qwxj-mvhp"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/edgexfoundry/app-service-configurable","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-6c7m-qwxj-mvhp"],"provenance":"source"}],"summary":{"text":"The app-functions-sdk-go component of EdgeX Foundry, prior to the Jakarta release, contains a broken implementation of its \"aes\" transform, which is a cryptographic algorithm weakness. An attacker with network access and low privileges, where a user must take an action and the SDK's AES transform is in use in a processing pipeline, could decrypt messages through unspecified vectors, exposing confidential data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:42Z"},"euvd":{"id":"EUVD-2021-2305","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41278","published":"2021-11-18","fixed":"2.1.0","kev":false},{"cve":"CVE-2022-31066","published":"2022-06-14","fixed":"2.1.1","kev":false,"link":{"from":"CVE-2021-41278","to":"CVE-2022-31066","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/edgexfoundry/app-functions-sdk-go/v2","fromFixed":"2.1.0","toFixed":"2.1.1","daysApart":208}]}}],"package":"Go:github.com/edgexfoundry/app-functions-sdk-go/v2"}}