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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.0, CNA) `CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.44% (percentile 30, 2026-11-26)
- **CWE:** CWE-327
- **Aliases:** GHSA-6c7m-qwxj-mvhp
- **Published:** 2021-11-18T23:50:11.000Z
- **Modified:** 2026-07-08T06:27:43.112Z

## Who should check

- Projects that depend on Go package github.com/edgexfoundry/app-functions-sdk-go/v2 (\< 2.1.0)
- Projects that depend on Go package github.com/edgexfoundry/app-functions-sdk-go
- Projects that depend on Go package github.com/edgexfoundry/app-service-configurable (\< 2.1.0)
- Anyone running edgexfoundry app-functions-sdk-go \< 2.1.0

## 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 and fixed versions

- Go `github.com/edgexfoundry/app-functions-sdk-go/v2`: affected \< 2.1.0; fixed 2.1.0 (osv)
- Go `github.com/edgexfoundry/app-functions-sdk-go`: affected see advisory; fixed no fix listed yet (osv)
- Go `github.com/edgexfoundry/app-service-configurable`: affected \< 2.1.0; fixed 2.1.0 (osv)
- edgexfoundry app-functions-sdk-go: \< 2.1.0 (cvelist)

## Mitigation

- Upgrade github.com/edgexfoundry/app-functions-sdk-go/v2 to 2.1.0 or later.
- Upgrade github.com/edgexfoundry/app-service-configurable to 2.1.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-41278. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-41278.md
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
Fixed in: 2.1.0

Steps:
1. Search this machine and project for github.com/edgexfoundry/app-functions-sdk-go/v2 (Go), github.com/edgexfoundry/app-functions-sdk-go (Go), github.com/edgexfoundry/app-service-configurable (Go), edgexfoundry app-functions-sdk-go: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-41278 being exploited?

There is no confirmed exploitation: CVE-2021-41278 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-41278?

Medium: CVSS 5.4 (v3.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2021-41278?

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.

### Is there a fix for CVE-2021-41278?

Yes. Fixed in 2.1.0. Upgrade github.com/edgexfoundry/app-functions-sdk-go/v2 to 2.1.0 or later. Upgrade github.com/edgexfoundry/app-service-configurable to 2.1.0 or later.

### How do I check if I'm affected by CVE-2021-41278?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/edgexfoundry/app-functions-sdk-go/security/advisories/GHSA-6c7m-qwxj-mvhp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-41278>
- patch: <https://github.com/edgexfoundry/app-functions-sdk-go/commit/8fa13c6388ce76a6b878b54490eac61aa7d81165>
- other: <https://github.com/edgexfoundry/app-functions-sdk-go>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-41278>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6c7m-qwxj-mvhp> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-41278> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-41278>
