Categories
CVE-2021-41278

Vulnerability in github.com/edgexfoundry/app-functions-sdk-go/v2 (CVE-2021-41278)

Summary

Vulnerability in github.com/edgexfoundry/app-functions-sdk-go/v2 (CVE-2021-41278). Confidential information can be exposed externally. Mitigation: upgrade to 2.1.0 or later.

Original description

The description as published by the source.

Summary

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

Detailed Description

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 in https://github.com/edgexfoundry/app-functions-sdk-go/blob/v1.0.0/pkg/transforms/encryption.go

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.

Impact

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.

Vulnerable go modules

  • github.com/edgexfoundry/app-functions-sdk-go < v2.1.0
  • github.com/edgexfoundry/app-functions-sdk-go/v2 < v2.1.0
  • github.com/edgexfoundry/app-service-configurable < v2.1.0

##…

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2021-41278 has been found in github.com/edgexfoundry/app-functions-sdk-go/v2.
Confidential information can be exposed externally.
What to do: upgrade github.com/edgexfoundry/app-functions-sdk-go/v2 to 2.1.0 or later.
If unsure, ask your IT team or search "github.com/edgexfoundry/app-functions-sdk-go/v2 CVE-2021-41278" on the vendor's site.

CVE-2021-41278 (github.com/edgexfoundry/app-functions-sdk-go/v2) — CWE-327
Attack vector: remote (network-reachable)
Patched: 2.1.0 — apply immediately
Workaround: If unable to upgrade, change the processing pipeline to use an HTTPS (TLS 1.3) endpoint to export and skip encryption.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

A vulnerability (CWE-327) exists in github.com/edgexfoundry/app-functions-sdk-go/v2.

📍 Affected scope

Check the vendor advisory for the affected versions of github.com/edgexfoundry/app-functions-sdk-go/v2.

🔥 Severity

Severity: ?. Confidential information can be exposed externally.

🔧 How to fix

Update to 2.1.0.

🛡️ Workaround

Workaround: If unable to upgrade, change the processing pipeline to use an HTTPS (TLS 1.3) endpoint to export and skip encryption.

🔍 Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/edgexfoundry/app-functions-sdk-go/v2' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    grep -r 'github.com/edgexfoundry/app-functions-sdk-go/v2' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/edgexfoundry/app-functions-sdk-go/v2 を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply temporary workaround mitigate
    If unable to upgrade, change the processing pipeline to use an HTTPS (TLS 1.3) endpoint to export and skip encryption.

    パッチが適用されるまでの応急処置として、If unable to upgrade, change the processing pipeline to use an HTTPS (TLS 1.3) endpoint to export and skip encryption. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patch patch
    Upgrade github.com/edgexfoundry/app-functions-sdk-go/v2 to 2.1.0

    ステージング環境で 2.1.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

Go github.com/edgexfoundry/app-functions-sdk-go/v2
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.0"}]}]
Go github.com/edgexfoundry/app-functions-sdk-go
[{"type":"SEMVER","events":[{"introduced":"0"}]}]
Go github.com/edgexfoundry/app-service-configurable
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.0"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details