---
title: "CWE-1191: On-Chip Debug and Test Interface With Improper Access Control"
url: https://radicalnotion.ai/cwe/cwe-1191
type: cwe
description: "The chip does not implement or does not correctly perform access control to check whether users are authorized to access internal registers and test modes through the physical debug/test interface."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1191: On-Chip Debug and Test Interface With Improper Access Control

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

## Description

The chip does not implement or does not correctly perform access control to check whether users are authorized to access internal registers and test modes through the physical debug/test interface.

If authorization, authentication, or some other form of access control is not implemented or not implemented correctly, a user may be able to bypass on-chip protection mechanisms through the debug interface.

## Background

A device's internal information may be accessed through a scan chain of interconnected internal registers, usually through a JTAG interface. The JTAG interface provides access to these registers in a serial fashion in the form of a scan chain for the purposes of debugging programs running on a device. Since almost all information contained within a device may be accessed over this interface, device manufacturers typically insert some form of authentication and authorization to prevent unintended use of this sensitive information. This mechanism is implemented in addition to on-chip protections that are already present.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | - |
| Confidentiality | Read Memory | - |
| Authorization | Execute Unauthorized Code or Commands | - |
| Integrity | Modify Memory | - |
| Integrity | Modify Application Data | - |
| Access Control | Bypass Protection Mechanism | - |

## Potential mitigations

### Architecture and Design (Separation of Privilege)

If feasible, the manufacturer should disable the JTAG interface or implement authentication and authorization for the JTAG interface. If authentication logic is added, it should be resistant to timing attacks. Security-sensitive data stored in registers, such as keys, etc. should be cleared when entering debug mode.

Effectiveness: High

## Detection methods

### Dynamic Analysis with Manual Results Interpretation

Authentication and authorization of debug and test interfaces should be part of the architecture and design review process. Withholding of private register documentation from the debug and test interface public specification ("Security by obscurity") should not be considered as sufficient security.

### Dynamic Analysis with Manual Results Interpretation

Dynamic tests should be done in the pre-silicon and post-silicon stages to verify that the debug and test interfaces are not open by default.

### Fuzzing

Tests that fuzz Debug and Test Interfaces should ensure that no access without appropriate authentication and authorization is possible.

Effectiveness: Moderate

## Demonstrative examples

### Example 1

A home, WiFi-router device implements a login prompt which prevents an unauthorized user from issuing any commands on the device until appropriate credentials are provided. The credentials are protected on the device and are checked for strength against attack.

Bad code:

```other
If the JTAG interface on this device is not hidden by the manufacturer, the interface may be identified using tools such as JTAGulator. If it is hidden but not disabled, it can be exposed by physically wiring to the board.
By issuing a "halt" command before the OS starts, the unauthorized user pauses the watchdog timer and prevents the router from restarting (once the watchdog timer would have expired). Having paused the router, an unauthorized user is able to execute code and inspect and modify data in the device, even extracting all of the router's firmware. This allows the user to examine the router and potentially exploit it.
```

JTAG is useful to chip and device manufacturers during design, testing, and production and is included in nearly every product. Without proper authentication and authorization, the interface may allow tampering with a product.

### Example 2

The following example code is a snippet from the JTAG wrapper module in the RISC-V debug module of the HACK@DAC'21 Openpiton SoC \[REF-1355\]. To make sure that the JTAG is accessed securely, the developers have included a primary authentication mechanism based on a password.

Bad code:

```systemverilog
...
    PassChkValid: begin
        if(hashValid) begin
            if(exp_hash == pass_hash) begin
                pass_check = 1'b1;
            end else begin
                pass_check = 1'b0;
            end state_d = Idle;
        end else begin
            state_d = PassChkValid;
        end
    end
...
```

Good code:

```systemverilog
...
case (state_q)
    Idle: begin
    ...
        else if ( (dm::dtm_op_e'(dmi.op) == dm::DTM_PASS) && (miss_pass_check_cnt_q != 2'b11) )
        begin
            state_d = Write;
            pass_mode = 1'b1;
        end
    ...
    end
    ...
    PassChkValid: begin
        if(hashValid) begin
            if(exp_hash == pass_hash) begin
                pass_check = 1'b1;
            end else begin
                pass_check = 1'b0;
                miss_pass_check_cnt_d = miss_pass_check_cnt_q + 1
            end
            state_d = Idle;
        end else begin
            state_d = PassChkValid;
        end
    end
...
```

### Example 3

The example code below is taken from the JTAG access control mechanism of the HACK@DAC'21 buggy OpenPiton SoC \[REF-1364\]. Access to JTAG allows users to access sensitive information in the system. Hence, access to JTAG is controlled using cryptographic authentication of the users. In this example (see the vulnerable code source), the password checker uses HMAC-SHA256 for authentication. It takes a 512-bit secret message from the user, hashes it using HMAC, and compares its output with the expected output to determine the authenticity of the user.

Bad code:

```systemverilog
...
logic [31-1:0] data_d, data_q;
...
logic [512-1:0] pass_data;
...
    Write: begin
        ...
            if (pass_mode) begin
                pass_data = { {60{8'h00}}, data_d};
                state_d = PassChk;
                pass_mode = 1'b0;
            ...
    end
...
```

Good code:

```systemverilog
...
logic [512-1:0] data_d, data_q;
...
logic [512-1:0] pass_data;
...
    Write: begin
        ...
            if (pass_mode) begin
                pass_data = data_d;
                state_d = PassChk;
                pass_mode = 1'b0;
            ...
    end
...
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2019-18827 | Chain: JTAG interface is not disabled (CWE-1191) during ROM code execution, introducing a race condition (CWE-362) to extract encryption keys |

## Real CVEs with this weakness (sample of 12 of 31)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-15203 | Debug interfaces are accessible by default in Danfoss iC7 Automation SP, iC7 Marine and iC7 7Hybrid software | critical | 9.3 | - | No | 2026-08-26 |
| CVE-2024-48970 | Life2000 Ventilator microcontroller lacks memory protection | critical | 9.3 | - | No | 2024-11-14 |
| CVE-2025-52533 | - | high | 8.7 | - | No | 2026-02-12 |
| CVE-2026-8989 | Open Recovery Mode | high | 8.6 | - | No | 2026-07-21 |
| CVE-2026-8988 | Access to Bootloader | high | 8.6 | - | No | 2026-07-21 |
| CVE-2025-9709 | NRF52810 Runtime EM Fault Injection APPROTECT Bypass | high | 8.6 | - | No | 2025-09-05 |
| CVE-2024-41692 | Incorrect Access Control Vulnerability | high | 8.6 | - | No | 2024-07-26 |
| CVE-2025-65821 | - | high | 7.5 | - | No | 2025-12-10 |
| CVE-2026-34494 | - | high | 7.2 | - | No | 2026-10-01 |
| CVE-2026-34493 | - | high | 7.2 | - | No | 2026-10-01 |
| CVE-2023-32666 | - | high | 7.2 | - | No | 2024-03-14 |
| CVE-2026-132621 | GearUP Hyperev on-chip debug and test interface with improper access control | high | 7.0 | - | No | 2026-11-19 |

## Related attack patterns (CAPEC)

- [CAPEC-1](https://radicalnotion.ai/capec/capec-1): Accessing Functionality Not Properly Constrained by ACLs
- [CAPEC-180](https://radicalnotion.ai/capec/capec-180): Exploiting Incorrectly Configured Access Control Security Levels

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-284](https://radicalnotion.ai/cwe/cwe-284) | Improper Access Control |
| Peer | [CWE-1263](https://radicalnotion.ai/cwe/cwe-1263) | Improper Physical Access Control |
| Peer | [CWE-1299](https://radicalnotion.ai/cwe/cwe-1299) | Missing Protection Mechanism for Alternate Hardware Interface |

## Frequently asked questions

### What is CWE-1191?

The chip does not implement or does not correctly perform access control to check whether users are authorized to access internal registers and test modes through the physical debug/test interface.

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

31 recorded CVEs are attributed to CWE-1191, including CVE-2026-15203, CVE-2024-48970 and CVE-2025-52533.

### How do you prevent CWE-1191?

If feasible, the manufacturer should disable the JTAG interface or implement authentication and authorization for the JTAG interface. If authentication logic is added, it should be resistant to timing attacks. Security-sensitive data stored in registers, such as keys, etc. should be cleared when entering debug mode.

### How is CWE-1191 detected?

Dynamic Analysis with Manual Results Interpretation: Authentication and authorization of debug and test interfaces should be part of the architecture and design review process. Withholding of private register documentation from the debug and test interface public specification ("Security by obscurity") should not be considered as sufficient security.

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

Exploiting CWE-1191 can lead to: Read Application Data, Read Memory, Execute Unauthorized Code or Commands, Modify Memory, Modify Application Data, Bypass Protection Mechanism.

### Is CWE-1191 actively exploited?

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

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

---

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