Skip to main content

Improper Certificate Validation

CVE-2025-62375

Severity Medium
Score 6.9/10

Summary

The package go-witness and witness are Go modules for generating attestations. The AWS attestor improperly verifies AWS EC2 instance identity documents. Verification can incorrectly succeed when a signature is not present or is empty, and when RSA signature verification fails. The attestor also embeds a single legacy global AWS public certificate and does not account for newer region-specific certificates issued in 2024, making the detection of forged documents difficult without additional trusted region data. An attacker able to supply or intercept instance identity document data (such as through Instance Metadata Service impersonation) can cause a forged identity document to be accepted, leading to incorrect trust decisions based on the attestation. As a workaround, manually verify the included identity document, signature, and public key with standard tools (for example, openssl) following AWS's verification guidance, or disable use of the AWS attestor until upgraded. This issue affects github.com/in-toto/go-witness versions prior to 0.9.0 and github.com/in-toto/witness versions prior to 0.10.0.

  • LOW
  • NETWORK
  • NONE
  • NONE

CWE-295 - Improper Certificate Validation

The authenticity component of a web system stems from the ability to validate “Digital certificates”, which (i) establish trust between two or more entities sharing data over a network; (ii) ensure data at rest and transit is secure from unauthorized access; and (iii) check the identity of the actors that interact with the system. An application with absent or ineffective certificate validation mechanisms allows malicious users, impersonating trusted hosts, to manipulate the communication path between the client and the host, resulting in unauthorized access to data and to the application’s internal environment, and potentially enabling man-in-the-middle attacks.

Advisory Timeline

  • Published