GHSA-6c7m-qwxj-mvhp

Suggest an improvement
Source
https://github.com/advisories/GHSA-6c7m-qwxj-mvhp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-6c7m-qwxj-mvhp/GHSA-6c7m-qwxj-mvhp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6c7m-qwxj-mvhp
Aliases
Related
Published
2021-11-19T20:55:16Z
Modified
2023-11-08T04:06:58.409862Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N CVSS Calculator
Summary
Broken encryption in EdgeX Foundry
Details

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

Vulnerable containers

  • https://hub.docker.com/r/edgexfoundry/app-service-configurable >= 2.0.0 < v2.1.0
  • https://hub.docker.com/r/edgexfoundry/app-service-configurable-arm64 >= 2.0.0 < 2.1.0
  • https://hub.docker.com/r/edgexfoundry/docker-app-service-configurable < 2.0.0
  • https://hub.docker.com/r/edgexfoundry/docker-app-service-configurable-arm64 < 2.0.0

Vulnerable Snaps

  • https://snapcraft.io/edgex-app-service-configurable >= 2.0.0 < 2.1.0

Patches

Upgrade to 2.1.0 version of app-functions-sdk-go/v2, app-service-configurable, and related docker containers shown below and modify user scripts to use the new "aes256" transform in place of the existing "aes" transform.

Patched go modules

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

Modification of user scripts is necessary for full remediation.

Patched containers

  • https://hub.docker.com/r/edgexfoundry/app-service-configurable:>=2.1.0
  • https://hub.docker.com/r/edgexfoundry/app-service-configurable-arm64:>=2.1.0

Modification of user scripts is necessary for full remediation.

Patched Snaps

  • https://snapcraft.io/edgex-app-service-configurable >= 2.1.0

Modification of user scripts is necessary for full remediation.

Workarounds

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

References

For more information

If you have any questions or comments about this advisory: * Contact us in the Slack #security channel * Open an issue in edgex-go * Email us at EdgeX-TSC-Security@lists.edgexfoundry.org

Database specific
{
    "nvd_published_at": "2021-11-19T00:15:00Z",
    "github_reviewed_at": "2021-11-18T23:05:06Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-327"
    ]
}
References

Affected packages

Go / github.com/edgexfoundry/app-functions-sdk-go/v2

Package

Name
github.com/edgexfoundry/app-functions-sdk-go/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/edgexfoundry/app-functions-sdk-go/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0

Go / github.com/edgexfoundry/app-functions-sdk-go

Package

Name
github.com/edgexfoundry/app-functions-sdk-go
View open source insights on deps.dev
Purl
pkg:golang/github.com/edgexfoundry/app-functions-sdk-go

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Database specific

{
    "last_known_affected_version_range": "< 2.1.0"
}

Go / github.com/edgexfoundry/app-service-configurable

Package

Name
github.com/edgexfoundry/app-service-configurable
View open source insights on deps.dev
Purl
pkg:golang/github.com/edgexfoundry/app-service-configurable

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0