Every CVESearch/Get API key

CVE-2026-119345

Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks

7.2 HighFix available

Cocos AI is a confidential computing system for AI. Prior to 0.9.0, Cocos AI performs attestation only once when an attested TLS connection is established. An attacker who can modify the attester's workload code, memory-backed state, configuration, or attached devices after that check can keep the existing connection open while the peer continues trusting stale initial Evidence. This gap is especially significant for long-lived connections because the verifier has no mechanism to detect the changed state. This issue is fixed in version 0.9.0.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
None

Exploit likelihood

0.12%Unchanged since Nov 6, 2026
90%50%10%1%

What each source reports

CVE List Score used7.2

Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks

Cocos AI is a confidential computing system for AI. Prior to 0.9.0, Cocos AI performs attestation only once when an attested TLS connection is established. An attacker who can modify the attester's workload code, memory-backed state, configuration, or attached devices after that check can keep the existing connection open while the peer continues trusting stale initial Evidence. This gap is especially significant for long-lived connections because the verifier has no mechanism to detect the changed state. This issue is fixed in version 0.9.0.

Record
CVE-2026-119345
CVSS 4.0
7.2 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-367
Updated
2026-11-05
EUVDEUVD-2026-1175567.2

Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks

Record
EUVD-2026-117556
CVSS 4.0
7.2 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-10
GitHub AdvisoriesGHSA-ghwv-vrp2-29757.2

Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks

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. Also, see the corresponding formal analysis.

Credits

This vulnerability for Cocos AI was found and responsibly disclosed by Muhammad Usama Sardar (TU Dresden, Germany).

Record
GHSA-ghwv-vrp2-2975
CVSS 4.0
7.2 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-367
Updated
2026-11-10
NVD7.2

Cocos AI is a confidential computing system for AI. Prior to 0.9.0, Cocos AI performs attestation only once when an attested TLS connection is established. An attacker who can modify the attester's workload code, memory-backed state, configuration, or attached devices after that check can keep the existing connection open while the peer continues trusting stale initial Evidence. This gap is especially significant for long-lived connections because the verifier has no mechanism to detect the changed state. This issue is fixed in version 0.9.0.

Record
CVE-2026-119345
CVSS 4.0
7.2 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-367
Updated
2026-11-12
OSV7.2

Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks

Cocos AI is a confidential computing system for AI. Prior to 0.9.0, Cocos AI performs attestation only once when an attested TLS connection is established. An attacker who can modify the attester's workload code, memory-backed state, configuration, or attached devices after that check can keep the existing connection open while the peer continues trusting stale initial Evidence. This gap is especially significant for long-lived connections because the verifier has no mechanism to detect the changed state. This issue is fixed in version 0.9.0.

Record
CVE-2026-119345
CVSS 4.0
7.2 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-367
Updated
2026-11-07
OSVGHSA-ghwv-vrp2-29757.2

Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks

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. Also, see the corresponding formal analysis.

Credits

This vulnerability for Cocos AI was found and responsibly disclosed by Muhammad Usama Sardar (TU Dresden, Germany).

Record
GHSA-ghwv-vrp2-2975
CVSS 4.0
7.2 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-367
Updated
2026-11-10

Affected products

Affected packages

Affected packages
PackageAffectedFixed
github.com/ultravioletrs/cocos
Go
through 0.8.2
0.9.0
github.com/ultravioletrs/cocos
Go
before 0.9.0
0.9.0

History

History
RecordedChangedSources
publishedEUVD
affected, referencesOSV
affected, facts, referencesEUVD, GitHub Advisories, NVD, OSV
aliases, referencesCVE List, NVD, OSV
aliases, publishedEUVD
first indexedCVE List

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-119345 is a high vulnerability (CVSS 7.2) in Ultravioletrs Cocos, published November 5, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.12%, the 1st percentile. Fixed in github.com/ultravioletrs/cocos 0.9.0.

References

Show 4 moreShow less
MoveEnter Open