---
title: "CWE-1270: Generation of Incorrect Security Tokens"
url: https://radicalnotion.ai/cwe/cwe-1270
type: cwe
description: "The product implements a Security Token mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. However, the Security Tokens generated in the system are incorrect."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1270: Generation of Incorrect Security Tokens

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

## Description

The product implements a Security Token mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. However, the Security Tokens generated in the system are incorrect.

Systems-On-a-Chip (SoC) (Integrated circuits and hardware engines) implement Security Tokens to differentiate and identify actions originated from various agents. These actions could be "read", "write", "program", "reset", "fetch", "compute", etc. Security Tokens are generated and assigned to every agent on the SoC that is either capable of generating an action or receiving an action from another agent. Every agent could be assigned a unique Security Token based on its trust level or privileges.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity, Availability, Access Control | Modify Files or Directories, Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Gain Privileges or Assume Identity, Read Memory, Modify Memory, DoS: Crash, Exit, or Restart | Incorrectly generated Security Tokens could result in the same token used for multiple agents or multiple tokens being used for the same agent. This condition could result in a Denial-of-Service (DoS) or the execution of an action that in turn could result in privilege escalation or unintended access. |

## Potential mitigations

### Architecture and Design, Implementation

- Generation of Security Tokens should be reviewed for design inconsistency and common weaknesses.
- Security-Token definition and programming flow should be tested in pre-silicon and post-silicon testing.

## Demonstrative examples

### Example 1

Consider a system with a register for storing an AES key for encryption or decryption. The key is 128 bits long implemented as a set of four 32-bit registers. The key registers are assets, and register, AES\_KEY\_ACCESS\_POLICY, is defined to provide necessary access controls. The access-policy register defines which agents, using a Security Token, may access the AES-key registers. Each bit in this 32-bit register is used to define a Security Token. There could be a maximum of 32 Security Tokens that are allowed access to the AES-key registers. When set (bit = "1") bit number allows action from an agent whose identity matches that bit number. If Clear (bit = "0") the action is disallowed for the corresponding agent.

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-2882 | Privilege Escalation in CBOT's Chatbot | critical | 9.8 | - | No | 2023-05-25 |
| CVE-2023-32188 | JWT token compromise can allow malicious actions including Remote Code Execution (RCE) | critical | 9.4 | - | No | 2024-10-16 |
| CVE-2023-22644 | JWT token compromise can allow malicious actions including Remote Code Execution (RCE) | critical | 9.4 | - | No | 2023-09-20 |
| CVE-2026-49499 | - | high | 8.8 | - | No | 2026-07-22 |
| CVE-2025-59698 | - | medium | 6.8 | - | No | 2025-12-02 |
| CVE-2026-19636 | Insuffucient Protections Lead to Brute Force | medium | 6.0 | - | No | 2026-08-14 |
| CVE-2026-15831 | Generation of Incorrect Security Tokens in GitLab | medium | 4.3 | - | No | 2026-07-29 |
| CVE-2023-30524 | Jenkins Report Portal Plugin configuration form does not mask tokens | medium | 4.3 | - | No | 2023-04-12 |

## Related attack patterns (CAPEC)

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

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-1294](https://radicalnotion.ai/cwe/cwe-1294) | Insecure Security Identifier Mechanism |

## Frequently asked questions

### What is CWE-1270?

The product implements a Security Token mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. However, the Security Tokens generated in the system are incorrect.

### What CVEs are caused by CWE-1270?

8 recorded CVEs are attributed to CWE-1270, including CVE-2023-2882, CVE-2023-32188 and CVE-2023-22644.

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

Exploiting CWE-1270 can lead to: Modify Files or Directories, Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Gain Privileges or Assume Identity, Read Memory, Modify Memory.

### Is CWE-1270 actively exploited?

8 recorded CVEs are caused by CWE-1270; none are currently in CISA's KEV catalog of actively exploited flaws.

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

---

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