Skip to content

MCUboot uses hard-coded keys

Critical
d3zd3z published GHSA-gcxh-546h-phg4 Aug 31, 2021

Package

mcuboot (none)

Affected versions

<= 1.7.0

Patched versions

None

Description

Impact

The MCUboot project uses hard-coded public/private keys as an aid to developers. Although documented that anyone producing a product using MCUboot should create their own keys, the build system does not encourage this, and it is very easy to produce a product using these keys.

Patches

MCUboot version 1.8.0 improves this situation in a few ways:

  • The documentation is more prominent about ensuring proper management of keys
  • The specific development keys have been removed from the project repo, during development, the build system will generate keys, if they are missing. These are still specific keys that will not change, but will at least be different for each development tree.
  • A .gitignore will make us difficult to check these private keys in in the future.
  • Potential removal of keys to be addressed in the future in #1094.

Workarounds

The documentation for the project contains instructions to generate new keys. Following these instructions will avoid using the exposed private key.

References

Are there any links users can visit to find out more?

For more information

If you have any questions or comments about this advisory:

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Adjacent
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

CVE ID

CVE-2021-3399

Weaknesses