CVE-2025-59696
Executive Summary
CVE-2025-59696 is a critical physical security vulnerability affecting Entrust nShield hardware security modules (HSMs), specifically the nShield Connect XC, nShield 5c, and nShield HSMi models running firmware versions up to 13.6.11 or 13.7. The flaw resides in the Chassis Management Board (CMB), allowing a physically proximate attacker to modify or erase tamper event logs. This undermines the core security guarantee of an HSM—tamper evidence—and could enable an attacker to cover up physical intrusions, potentially leading to the extraction of cryptographic keys or other sensitive material without detection.
This vulnerability is particularly severe because HSMs are designed to be tamper-resistant and provide a secure root of trust. By compromising the tamper event log, an attacker can bypass audit trails and maintain persistent, undetected access to the device. The attack requires physical proximity, but no authentication or user interaction, making it a high-impact threat for organizations relying on these HSMs for cryptographic operations.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not related to software supply chain packages (NPM, PyPI, Go, Ruby). It is a hardware-level firmware issue affecting Entrust’s proprietary HSM products. Organizations should verify the integrity of their HSM firmware and ensure physical security controls are in place.
CVSS Breakdown & Threat Level
- CVSS Score: 7.1 (High)
- Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Attack Vector (AV): Physical (P) – Requires physical access to the device.
- Attack Complexity (AC): Low (L) – No special conditions or mitigations.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): None (N) – No user action required.
- Scope (S): Unchanged (U) – The vulnerability does not affect other components.
- Confidentiality (C): None (N) – Direct data theft is not the primary impact.
- Integrity (I): High (H) – Tamper logs can be modified or erased.
- Availability (A): High (H) – Tamper detection mechanisms can be disabled.
Threat Level: High. While physical access is required, the impact on integrity and availability is severe, as it can completely undermine the trust model of the HSM.
Deep Dive & Mechanics
The vulnerability exists in the Chassis Management Board (CMB) firmware of affected Entrust nShield HSMs. The CMB is responsible for monitoring physical tamper events (e.g., chassis opening, temperature anomalies, voltage spikes) and logging them to a secure, non-volatile memory. The flaw allows an attacker with physical access to the device to:
- Modify Tamper Events: Overwrite existing log entries to remove evidence of a physical intrusion.
- Erase Tamper Events: Clear the entire tamper log, effectively resetting the audit trail.
The attack is executed by exploiting insufficient access controls on the CMB’s management interface. The CMB likely exposes a debug or maintenance interface (e.g., via a serial console or JTAG) that does not require authentication. An attacker can connect to this interface and issue commands to manipulate the tamper log.
Technical Details:
- The CMB firmware does not enforce proper authentication for administrative commands.
- The tamper log is stored in a writable memory region that can be accessed without cryptographic verification.
- The attack does not require any software exploitation; it is a direct hardware manipulation.
This vulnerability is particularly dangerous because HSMs are often deployed in physically secure environments (e.g., data centers). However, an insider threat or a sophisticated attacker who gains physical access could use this flaw to cover their tracks after extracting cryptographic keys or modifying the HSM’s configuration.
Vulnerable vs. Patched Code
Since no patch is currently available, a code comparison is not possible. However, the vulnerability likely stems from missing authentication checks in the CMB firmware. A patched version would require:
- Authentication: Implementing a password or cryptographic challenge-response mechanism for CMB commands.
- Log Integrity: Using cryptographic signatures or a write-once memory (e.g., eFuse) to prevent tamper log modification.
- Audit: Logging all CMB access attempts to a separate, immutable storage.
Example of vulnerable code (hypothetical):
// Vulnerable: No authentication check
void handle_cmb_command(uint8_t cmd, uint8_t *data) {
switch (cmd) {
case CMD_ERASE_LOG:
erase_tamper_log();
break;
case CMD_MODIFY_LOG:
modify_tamper_log(data);
break;
// ...
}
}
Example of patched code (hypothetical):
// Patched: Authentication required
void handle_cmb_command(uint8_t cmd, uint8_t *data, uint8_t *auth_token) {
if (!verify_auth_token(auth_token)) {
log_unauthorized_access();
return;
}
switch (cmd) {
case CMD_ERASE_LOG:
erase_tamper_log();
break;
case CMD_MODIFY_LOG:
modify_tamper_log(data);
break;
// ...
}
}
Exploitation & Lab Setup
Red Team
Objective: Modify or erase tamper events on an Entrust nShield HSM to cover up physical access.
Prerequisites:
- Physical access to the HSM.
- A serial console cable (e.g., USB-to-UART) or JTAG debugger.
- Knowledge of the CMB’s command interface (likely proprietary, but can be reverse-engineered).
Steps:
- Identify CMB Interface: Locate the debug port on the HSM’s motherboard (often labeled “CMB” or “DEBUG”).
- Connect: Attach a serial console (e.g., 115200 baud, 8N1) or JTAG adapter.
- Enumerate Commands: Send help or ? commands to list available CMB commands.
- Erase Log: Issue the erase command (e.g.,
erase_tamper_logor0x03). - Verify: Check that the tamper log is empty or modified.
Example Command Sequence (hypothetical):
# Connect to CMB serial console
screen /dev/ttyUSB0 115200
# Send command to erase tamper log
echo -n -e '\x03' > /dev/ttyUSB0
# Confirm
echo -n -e '\x04' > /dev/ttyUSB0 # Read log status
Blue Team
Objective: Detect and prevent exploitation of CVE-2025-59696.
Detection:
- Monitor physical access logs to the HSM (e.g., data center entry logs).
- Use external tamper sensors (e.g., door contacts, vibration sensors) that are independent of the HSM.
- Regularly audit tamper logs and compare with expected values (e.g., using a checksum).
Prevention:
- Restrict physical access to HSMs to authorized personnel only.
- Use tamper-evident seals on the chassis.
- Implement a separate, immutable logging system (e.g., a hardware security monitor) that records all CMB access.
Response:
- If tamper logs are missing or modified, assume the HSM is compromised and rotate all keys.
- Perform a forensic analysis of the HSM’s firmware and memory.
Indicators of Compromise (IOCs)
Physical:
- Missing or broken tamper-evident seals.
- Unauthorized access to the HSM’s debug port.
- Unexplained changes in the HSM’s physical configuration.
Logs:
- Empty or modified tamper event logs.
- Unexpected entries in the CMB’s internal log (if accessible).
- Discrepancies between the HSM’s tamper log and external monitoring systems.
Network:
- Unusual traffic from the HSM’s management interface (e.g., serial console activity).
- No direct network IOCs, as the attack is physical.
Detection Engineering
YARA Rule
rule CVE_2025_59696_CMB_Tamper {
meta:
description = "Detects potential CMB tamper log manipulation on Entrust nShield HSMs"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-59696"
strings:
$cmd_erase = { 03 } // Hypothetical erase command byte
$cmd_modify = { 04 } // Hypothetical modify command byte
$log_empty = { 00 00 00 00 } // Empty log signature
condition:
any of ($cmd_*) and $log_empty
}
Sigma Rule
title: CMB Tamper Log Manipulation on Entrust nShield HSM
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects attempts to erase or modify tamper logs via the CMB interface
author: Valters IT
date: 2025-04-10
references:
- https://nvd.nist.gov/vuln/detail/CVE-2025-59696
logsource:
product: entrust_nshield
service: cmb
detection:
selection:
EventID: 0x03 # Hypothetical erase event
condition: selection
falsepositives:
- Legitimate maintenance by authorized personnel
level: high
Suricata Rule
alert tcp any any -> any any (msg:"CVE-2025-59696 CMB Tamper Log Manipulation Attempt"; content:"|03|"; depth:1; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Physical Security: Restrict access to HSMs to only trusted personnel. Use multi-factor authentication for physical access.
- Monitoring: Implement external tamper detection (e.g., door sensors, CCTV) that is independent of the HSM.
- Audit: Regularly review tamper logs and compare with physical access records.
Long-Term Fix:
- Vendor Patch: Await an official firmware update from Entrust that adds authentication to the CMB interface.
- Workaround: If possible, disable the CMB debug interface via a hardware jumper or firmware configuration.
- Replace: If no patch is available, consider replacing affected HSMs with models that have secure CMB implementations.
Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.