---
title: "CWE-1267: Policy Uses Obsolete Encoding"
url: https://radicalnotion.ai/cwe/cwe-1267
type: cwe
description: "The product uses an encoding mechanism that is no longer trusted, i.e., an obsolete encoding, to implement access controls."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1267: Policy Uses Obsolete Encoding

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 0
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product uses an encoding mechanism that is no longer trusted, i.e., an obsolete encoding, to implement access controls.

## Background

Within a System-On-a-Chip (SoC), various circuits and hardware engines generate transactions for the purpose of accessing (read/write) assets or performing various actions (e.g., reset, fetch, compute, etc.). Among various types of message information, a typical transaction is comprised of source identity (identifying the originator of the transaction) and a destination identity (routing the transaction to the respective entity). Sometimes the transactions are qualified with a Security Token. This Security Token helps the destination agent decide on the set of allowed actions (e.g., access to an asset for reads and writes). A policy encoder is used to map the bus transactions to Security Tokens that in turn are used as access-controls/protection mechanisms.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity, Availability, Access Control | Modify Memory, Read Memory, Modify Files or Directories, Read Files or Directories, DoS: Resource Consumption (Other), Execute Unauthorized Code or Commands, Gain Privileges or Assume Identity, Bypass Protection Mechanism, Reduce Reliability | - |

## Potential mitigations

### Architecture and Design, Implementation

Security Token Decoders should be reviewed for design inconsistency and common weaknesses.

Access and programming flows should be tested in both pre-silicon and post-silicon testing.

Effectiveness: High

## Demonstrative examples

### Example 1

For example, consider a system that has four bus masters. The table below provides bus masters, their Security Tokens, and trust assumptions.

Bus Master, Security Token Decoding, Trust Assumptions

Master\_0, "00", Untrusted

Master\_1, "01", Trusted

Master\_2, "10", Untrusted

Master\_3, "11", Untrusted

The policy encoding is to be defined such that Security Token will be used in implemented access-controls. The bits in the bus transaction that contain Security-Token information are Bus\_transaction \[15:11\]. The assets are the AES-Key registers for encryption or decryption. The key of 128 bits is implemented as a set of four, 32-bit registers.

Register, Field description

AES\_ENC\_DEC\_KEY\_0, AES key \[0:31\] for encryption or decryption, Default 0x00000000

AES\_ENC\_DEC\_KEY\_1, AES key \[32:63\] for encryption or decryption, Default 0x00000000

AES\_ENC\_DEC\_KEY\_2, AES key \[64:95\] for encryption or decryption, Default 0x00000000

AES\_ENC\_DEC\_KEY\_4, AES key \[96:127\] for encryption or decryption, Default 0x00000000

Below is an example of a policy encoding scheme inherited from a previous project where all "ODD" numbered Security Tokens are trusted.

Bad code:

```pseudocode
If (Bus_transaction[14] == "1")
    Trusted = "1"
Else
    Trusted = "0"
If (trusted)
    Allow access to AES-Key registers
Else
    Deny access to AES-Key registers
```

Good code:

```pseudocode
Security_Token[4:0] = Bus_transaction[15:11]
If (AES_KEY_ACCESS_POLICY[Security_Token] == "1")
    Allow access to AES-Key registers
Else
    Deny access to AES-Key registers
```

## Related attack patterns (CAPEC)

- [CAPEC-121](https://radicalnotion.ai/capec/capec-121): Exploit Non-Production Interfaces
- [CAPEC-681](https://radicalnotion.ai/capec/capec-681): Exploitation of Improperly Controlled Hardware Security Identifiers

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-284](https://radicalnotion.ai/cwe/cwe-284) | Improper Access Control |

## Frequently asked questions

### What is CWE-1267?

The product uses an encoding mechanism that is no longer trusted, i.e., an obsolete encoding, to implement access controls.

### How do you prevent CWE-1267?

Security Token Decoders should be reviewed for design inconsistency and common weaknesses.

### What are the consequences of CWE-1267?

Exploiting CWE-1267 can lead to: Modify Memory, Read Memory, Modify Files or Directories, Read Files or Directories, DoS: Resource Consumption (Other), Execute Unauthorized Code or Commands.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1267.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-1267). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
