Vulnerability · Published Nov 18, 2021 · Assigned by GitHub_M

CVE-2021-41278Broken encryption in app-functions-sdk “AES” transform in EdgeX Foundry releases prior to Jakarta allows attackers to decrypt messages via unspecified vectors

Medium 5.4

In plain English

A medium-severity broken cryptography in app-functions-sdk-go from edgexfoundry. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)5.4Medium
Exploit odds (30 days)0.4%top 69.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/edgexfoundry/app-functions-sdk-gono fix listedGHSA-6c7m-qwxj-mvhp
Gogithub.com/edgexfoundry/app-functions-sdk-go/v22.1.0GHSA-6c7m-qwxj-mvhp
Gogithub.com/edgexfoundry/app-service-configurable2.1.0GHSA-6c7m-qwxj-mvhp

Affected products (as reported)

VendorProductVersions
edgexfoundry app-functions-sdk-go < 2.1.0

Weakness: CWE-327 · Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N

References