Safeguard
Application Security•

CWE-1328 Mutable Security Version Numbers and Rollback Attacks

A security version number that an attacker can change lets them downgrade firmware to a vulnerable release. Here is the weakness and the fix.

Safeguard Security Team
2 min read

CWE-1328 is about a security version number in hardware that can be modified, so boot firmware can be rolled back to vulnerable code.

How it happens

A SoC with secure or verified boot may keep a security version number to block downgrades to older, vulnerable firmware. For that to work the number must be stored securely and persist across power-on resets.

The weakness is that an adversary can change it. They can then roll back to a vulnerable version and exploit it. Under some circumstances they can also prevent upgrades, which is a denial of service on updates. Either way the SoC is left vulnerable.

What an attacker gains

MITRE lists high impact across confidentiality, integrity, authentication and authorization: rollback or downgrade to vulnerable firmware, or a block on upgrades.

How to find it

Both detection methods in the record are rated high. Automated dynamic analysis should test whether stored security version numbers are mutable and whether older firmware images can be programmed. Anti-rollback features should also be reviewed during architecture or design review.

How to fix it

  1. Architect the system so security version data lives in registers that are read-only or have access controls that stop an untrusted agent from changing them.
  2. During implementation and test, demonstrate that the data is read-only and that the access controls work.

Quick check

Why is blocking upgrades also a problem? A modifiable version number can be used to prevent upgrades, which leaves the device stuck in a vulnerable state.

Sources

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.