Skip to content
HighVulnerability

GHSA-ghwv-vrp2-2975: Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks

Published
Record updated
View JSON
Affected
  • github.com/ultravioletrs/cocos <= 0.8.2
Fixed in
0.9.0
  • released March 27, 2026, 228 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.1%

Summary

Cocos AI's intra-handshake attested TLS implementation performs attestation only once, at connection establishment, so the verifying peer keeps trusting the initial Evidence for the life of a connection. An attacker who can modify the attested workload's code, memory-backed state, or configuration after attestation, without terminating the TLS connection, can make the peer treat stale state as current. The flaw is especially concerning for long-lived connections. Muhammad Usama Sardar found and responsibly disclosed it through formal analysis using ProVerif.

Mitigation

The proposed workaround is to allow re-attestation of the workload after periodic or user-defined intervals using post-handshake attestation.