MEDIUM · CVSS 3.1 6.3 EPSS 0.1% · 2th percentile CWE-367

CVE-2026-119345: Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks

Published 2026-11-10 · Updated 2026-11-23 · Also known as GHSA-ghwv-vrp2-2975, GO-2026-6965

Summary

Cocos AI's intra-handshake attested TLS implementation is vulnerable to a TOCTOU flaw that allows modified workloads to remain trusted over existing TLS connections. Engineering teams using the `github.com/ultravioletrs/cocos` package prior to version 0.9.0 should upgrade their dependencies.

Who is affected

This flaw impacts deployments using `github.com/ultravioletrs/cocos` prior to version 0.9.0, especially those relying on long-lived attested TLS connections. An attacker with local access who can modify workload code, memory state, configuration, or attached hardware after initial attestation can exploit this window of vulnerability. Because attestation occurs only once at connection setup, the verifying peer continues to trust the endpoint despite runtime state changes, compromising confidentiality and integrity.

Exploitability

The vulnerability carries a CVSS 3.1 base score of 6.3 (Medium) with Local access vector, High attack complexity, Low privileges required, and No user interaction. The EPSS score is 0.001 (0.017 percentile), and CISA's KEV catalog confirms there is no known active exploitation in the wild.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/ultravioletrs/cocos >= 0, < 0.9.0 0.9.0 go get github.com/ultravioletrs/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Attack vectorLocal
Attack complexityHigh
Privileges requiredLow
User interactionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone

FAQ

What is the root cause of CVE-2026-119345?

Cocos AI performs attestation only once during TLS connection establishment, causing verifying peers to rely on initial evidence even if the workload state, memory, configuration, or connected hardware changes later in the connection's lifetime.

Is CVE-2026-119345 actively exploited in the wild?

No, CISA Known Exploited Vulnerabilities indicates there is no known active exploitation, and the EPSS score is extremely low at 0.001.

How was this vulnerability discovered?

The vulnerability was identified and demonstrated through formal analysis using the ProVerif verification tool by Muhammad Usama Sardar.

Original advisory description
### Summary An attacker who can modify the attested workload’s code, memory-backed state, or configuration after the initial attestation - but without necessarily terminating the existing TLS connection - can cause the peer to continue trusting the connection as if the originally attested state were still running. ### Details Once attestation is successfully appraised and connection is established, there is a window of vulnerability from the establishment of connection to the termination of connection where an attacker can modify the state of the workload and platform at runtime on the TLS endpoint acting as the Attester. Workload state includes code, data, and configuration. Other examples of state changes at the workload level include cases where a new device (such as a GPU) is connected, or where a connected device is disconnected, since the connection establishment. In Cocos AI, there is no mechanism for the peer to know that some state has changed in the Attester after the connection establishment. The vulnerability is particularly concerning for long-lived connections. In short, this vulnerability was possible because Cocos AI performs attestation only once in the lifetime of the connection (at connection establishment time) and the verifying peer continues to believe that the state is the same as in initial Evidence throughout, whereas it could be stale at some point in time. This vulnerability for Cocos AI was found and demonstrated by Muhammad Usama Sardar via formal analysis. Formal analysis was performed in the state-of-the-art tool, ProVerif. ### Workarounds The proposed workaround is to allow re-attestation of the workload after periodic or user-defined intervals using post-handshake attestation. ### Background and General Technical Details For background and general (not specific to Cocos AI) technical details on this vulnerability, please see `G-RA2: Freshness of Evidence` in Sec. 5.1.1 of [Identity Crisis in Confidential Computing: Formal Analysis of Attested TLS](https://doi.org/10.1145/3779208.3785387). Also, see the corresponding [formal analysis](https://github.com/CCC-Attestation/formal-spec-id-crisis). ### Credits This vulnerability for Cocos AI was found and _responsibly_ disclosed by Muhammad Usama Sardar (TU Dresden, Germany).

References

Source records: GHSA-ghwv-vrp2-2975, GO-2026-6965 (OSV.dev) · EPSS by FIRST, 2026-11-24.