CVE-2026-128979 in DigiDoc
Summary
by MITRE • 11/23/2026
Improper certificate validation vulnerability in Estonian Information System Authority (RIA) libdigidocpp, Estonian Information System Authority (RIA) DigiDoc4, Estonian Information System Authority (RIA) DigiDoc on Android, and Estonian Information System Authority (RIA) DigiDoc on iOS.
The vulnerability occurs because libdigidocpp does not properly validate the Extended Key Usage (EKU) extension of certificates used to sign OCSP responses. Specifically, it fails to verify that the certificate contains the id-kp-OCSPSigning EKU, which identifies certificates authorised to sign OCSP responses.
This issue affects libdigidocpp: from 3.10.0 before 4.5.2; DigiDoc4: from 4.0.0 before 4.11.2; DigiDoc: from 3.0.0 before 3.2.0; DigiDoc: from 3.0.1 before 3.2.0.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/23/2026
The Estonian Information System Authority has identified a critical security flaw within its digital signature infrastructure, specifically affecting the libdigidocpp library and its associated client applications including DigiDoc4, DigiDoc on Android, and DigiDoc on iOS. This vulnerability stems from an improper certificate validation mechanism that fails to enforce strict adherence to X.509 certificate extensions during the Online Certificate Status Protocol verification process. The core technical deficiency lies in the handling of the Extended Key Usage extension within certificates used to sign OCSP responses. According to RFC 6960, which defines the protocol for online certificate status checking, a responder's signing certificate must include the id-kp-OCSPSigning extended key usage object identifier to be considered valid for this specific purpose. The affected versions of libdigidocpp and its downstream applications do not perform this mandatory check, allowing certificates lacking this specific authorization flag to be accepted as legitimate sources for revocation status information.
This oversight creates a significant attack vector that undermines the integrity of digital signature validation workflows. By accepting OCSP responses signed by unauthorized or misconfigured certificates, an attacker could potentially manipulate the perceived validity state of other certificates within the system. For instance, if an adversary controls a certificate with valid signatures but missing the OCSP signing EKU, they might be able to inject false status information indicating that a revoked or invalid digital signature is still active and trusted. This directly impacts the non-repudiation guarantees provided by electronic signatures, as the trust anchor for revocation checks becomes compromised. The vulnerability effectively allows for potential denial of service against legitimate users whose valid certificates are falsely marked as revoked, or conversely, could facilitate fraud if an attacker can bypass certain validation gates that rely on OCSP data without verifying the responder's authority to provide it.
The operational impact is severe in contexts where digital signatures are used for legally binding transactions, such as e-government services, banking operations, and official document signing within Estonia and potentially other jurisdictions relying on similar PKI standards. The flaw affects libdigidocpp versions from 3.10.0 up to but not including 4.5.2, DigiDoc4 from version 4.0.0 before 4.11.2, and the mobile applications of DigiDoc for Android and iOS starting from version 3.0.0 or 3.0.1 respectively, prior to patch level 3.2.0. Users operating within these version ranges are exposed to risks where the cryptographic proof of document integrity could be undermined by flawed revocation status checks. This represents a classic example of CWE-295 Improper Certificate Validation, specifically failing to validate certificate extensions that dictate permitted key usage scenarios.
From an offensive security perspective, this vulnerability aligns with techniques found in the MITRE ATT&CK framework related to resource hijacking or manipulation of trust relationships, although it is primarily a configuration and validation logic error rather than an exploit chain component per se. It highlights the importance of strict adherence to cryptographic standards where every extension must be validated according to its defined purpose. The failure to check for id-kp-OCSPSigning indicates a gap in the implementation of RFC 5280 requirements regarding certificate usage constraints. To mitigate this risk, organizations and individual users must immediately update their software ecosystems to include patched versions that enforce proper EKU validation. System administrators should verify that all components involved in the OCSP fetching and verification pipeline are updated to libdigidocpp 4.5.2 or later, DigiDoc4 4.11.2 or later, and mobile app version 3.2.0 or higher. Regular auditing of certificate validation logic against current RFC standards is recommended to prevent similar oversights in future software releases.