Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-25201 Overview
CVE-2025-25201 is an authentication bypass vulnerability [CWE-287] in the Personal Identity Verification (PIV) application of Nitrokey 3 firmware. The flaw affects release 1.8.0 and pre-release test builds with PIV enabled. The PIV application accepts invalid keys during administration key authentication. An attacker with local device access can generate new keys and overwrite certificates without possessing the legitimate admin key. The issue does not permit extraction of existing private data or execution of PIN-protected cryptographic operations. Nitrokey fixed the vulnerability in piv-authenticator 0.3.9 and firmware 1.8.1.
Critical Impact
An attacker with physical access to a Nitrokey 3 device can compromise the integrity of PIV-stored certificates and keys without knowing the administration key.
Affected Products
- Nitrokey 3 Firmware 1.8.0
- Nitrokey 3 test firmware releases with PIV enabled prior to 1.8.0
- piv-authenticator versions prior to 0.3.9
Discovery Timeline
- 2025-02-12 - CVE-2025-25201 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-25201
Vulnerability Analysis
The vulnerability resides in the PIV application shipped with Nitrokey 3 firmware. PIV, defined by NIST SP 800-73, provides smart card functionality for storing certificates, keys, and identity credentials. The Nitrokey implementation exposes administrative operations gated by a 24-byte administration key using 3DES or AES challenge-response authentication.
In the affected firmware, the administration key authentication routine fails to properly validate the key material presented by the client. The piv-authenticator crate accepts key values that should be rejected, allowing an unauthenticated caller to pass the admin authentication check. This grants access to administrative PIV commands normally reserved for legitimate administrators.
The impact is scoped to integrity. An attacker can generate new key pairs, import keys, and overwrite X.509 certificates stored on the device. Confidentiality of existing private keys and PIN-protected cryptographic operations remain intact because the underlying key material is not exposed and PIN-gated operations require separate authentication.
Root Cause
The root cause is improper authentication logic in the PIV admin key verification path within piv-authenticator. The verification routine fails to correctly reject invalid key material during the challenge-response exchange, satisfying the authentication check when it should not.
Attack Vector
Exploitation requires local access to the Nitrokey 3 USB device. An attacker connects the device to a host they control and issues PIV administrative commands using standard tooling such as ykman or opensc-tool. The vulnerable authentication path accepts arbitrary key values, permitting the attacker to invoke privileged operations. Consult the GitHub Security Advisory GHSA-jfhm-ppq8-7hgx for the technical description of the affected code path.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2025-25201
Indicators of Compromise
- Unexpected changes to certificates or key slots stored in the PIV application of a Nitrokey 3 device.
- PIV objects appearing on devices that were not provisioned by the legitimate administrator.
- Nitrokey 3 devices reporting firmware version 1.8.0 in inventory scans.
Detection Strategies
- Enumerate Nitrokey 3 firmware versions across managed endpoints and flag any device running 1.8.0 or an affected pre-release build.
- Audit PIV certificate fingerprints and key metadata against a known-good baseline maintained during device enrollment.
- Correlate USB device connection events with subsequent PIV administrative command issuance on shared or unattended workstations.
Monitoring Recommendations
- Log USB device attach and detach events on workstations that handle smart card operations and forward them to a central SIEM.
- Track PKI issuance and revocation events for certificates bound to Nitrokey 3 devices to identify unauthorized key rotation.
- Monitor endpoint process telemetry for invocations of ykman, opensc-tool, pivy, or similar PIV administration utilities in unexpected contexts.
How to Mitigate CVE-2025-25201
Immediate Actions Required
- Update all Nitrokey 3 devices to firmware 1.8.1 or later using the official update procedure.
- Physically secure Nitrokey 3 devices running vulnerable firmware until the update is applied.
- Re-provision affected devices by regenerating keys and re-issuing certificates after the update completes.
Patch Information
Nitrokey released firmware 1.8.1 and piv-authenticator 0.3.9 to remediate the authentication flaw. Download the firmware from the Nitrokey 3 Firmware v1.8.1 release page and follow the vendor guidance in the Nitrokey security update blog post.
Workarounds
- Disable or avoid using the PIV application on Nitrokey 3 devices until firmware 1.8.1 is installed.
- Restrict physical access to devices with vulnerable firmware and require chain-of-custody controls for shared hardware.
- Re-verify certificate trust and key ownership on any PIV credentials that were active while a device ran firmware 1.8.0.
# Verify Nitrokey 3 firmware version using nitropy
nitropy nk3 version
# Perform firmware update to 1.8.1
nitropy nk3 update
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

