{"answers":{"affected":"6 open source packages ship an affected version, including github.com/edgexfoundry/app-functions-sdk-go, github.com/edgexfoundry/app-functions-sdk-go/v2 and github.com/edgexfoundry/app-service-configurable. It affects 3 products.","exploited":"There is no known exploitation of CVE-2021-41278 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-41278 is a medium-severity vulnerability in edgexfoundry app-functions-sdk-go, published on 18 Nov 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-41278 and fix it if it is affected.\n\nWhat it is: CVE-2021-41278 is a medium-severity vulnerability in edgexfoundry app-functions-sdk-go, published on 18 Nov 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-41278 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/edgexfoundry/app-functions-sdk-go (Go): affected all versions; no fix listed\n- github.com/edgexfoundry/app-functions-sdk-go (Go): affected all versions; no fix listed\n- github.com/edgexfoundry/app-functions-sdk-go/v2 (Go): affected all versions; fixed in 2.1.0\n- github.com/edgexfoundry/app-functions-sdk-go/v2 (Go): affected all versions; fixed in 2.1.0\n- github.com/edgexfoundry/app-service-configurable (Go): affected all versions; fixed in 2.1.0\n- github.com/edgexfoundry/app-service-configurable (Go): affected all versions; fixed in 2.1.0\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-2021-41278/ (Markdown: https://insights.sbomify.com/CVE-2021-41278/index.md)","id":"CVE-2021-41278","markdown":"https://insights.sbomify.com/CVE-2021-41278/index.md","name":"CVE-2021-41278","record":{"aliases":["GHSA-6c7m-qwxj-mvhp"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"EdgeX Foundry SDK","requires_auth":"low_privilege","summary":"Attackers can decrypt messages if the optional AES transform is used in EdgeX Foundry processing pipelines due to broken encryption implementation.","user_interaction":"required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"app_service_configurable","vendor":"edgexfoundry"},{"product":"application_functions_software_development_kit","vendor":"edgexfoundry"},{"product":"edgex_foundry","vendor":"edgexfoundry"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"description":"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2021-11-22","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-11-22T06:52:53Z","kind":"github_poc","ref":"https://github.com/FDlucifer/CVE-2021-41278","stars":1,"title":"Metabase任意文件读取漏洞批量扫描工具"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Broken encryption in EdgeX Foundry","id":"CVE-2021-41278","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2021"},"n_packages":6,"n_references":2,"next":{"headline":"Zip Slip Vulnerability in BaserCMS","id":"CVE-2021-41279"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/app-functions-sdk-go","purl":null,"source":"GHSA-6c7m-qwxj-mvhp"},{"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":"GHSA-6c7m-qwxj-mvhp"},{"ecosystem":"Go","fixed":["2.1.0"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/app-functions-sdk-go/v2","purl":null,"source":"GHSA-6c7m-qwxj-mvhp"},{"ecosystem":"Go","fixed":["2.1.0"],"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-6c7m-qwxj-mvhp"},{"ecosystem":"Go","fixed":["2.1.0"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/app-service-configurable","purl":null,"source":"GHSA-6c7m-qwxj-mvhp"},{"ecosystem":"Go","fixed":["2.1.0"],"introduced":["0"],"last_affected":[],"package":"github.com/edgexfoundry/app-service-configurable","purl":"pkg:golang/github.com/edgexfoundry/app-service-configurable","source":"GHSA-6c7m-qwxj-mvhp"}],"prev":{"headline":"Metabase GeoJSON API Local File Inclusion","id":"CVE-2021-41277"},"products":["app-functions-sdk-go"],"published":"2021-11-18","related":[],"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":"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["edgexfoundry"]},"summary":"Attackers can decrypt messages if the optional AES transform is used in EdgeX Foundry processing pipelines due to broken encryption implementation.","url":"https://insights.sbomify.com/CVE-2021-41278/"}