{"id":"CVE-2026-119345","aliases":["EUVD-2026-117556","GHSA-ghwv-vrp2-2975"],"status":"published","title":"Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks","description":"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.","severity":{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00117,"percentile":0.0167,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-367"],"published":"2026-11-05T15:53:42.702Z","modified":"2026-11-10T16:15:04Z","fixes":[{"ecosystem":"Go","package":"github.com/ultravioletrs/cocos","fixed_in":["0.9.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/ultravioletrs/cocos","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.8.2"},{"fixed":"0.9.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/ultravioletrs/cocos","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.0"}]}]}],"products":[{"vendor":"ultravioletrs","product":"cocos"}],"references":[{"url":"https://github.com/ultravioletrs/cocos/security/advisories/GHSA-ghwv-vrp2-2975","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/ultravioletrs/cocos/pull/582","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/ultravioletrs/cocos/commit/80bf813c48300f02259b338b91f844c71be582ea","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/ultravioletrs/cocos/releases/tag/v0.9.0","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119345","tags":["advisory"]},{"url":"https://dl.acm.org/doi/10.1145/3779208.3785387","tags":["web"]},{"url":"https://github.com/CCC-Attestation/formal-spec-id-crisis","tags":["web"]},{"url":"https://github.com/advisories/GHSA-ghwv-vrp2-2975"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119345.json","tags":["advisory"]},{"url":"https://github.com/ultravioletrs/cocos","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-119345","title":"Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks","description":"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.","status":"published","published":"2026-11-05T15:53:42.702Z","modified":"2026-11-05T20:40:45.305Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high","assessor":"cna"}],"cwes":["CWE-367"],"updated_at":"2026-11-05T21:25:05.838392Z"}],"euvd":[{"id":"EUVD-2026-117556","description":"Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks","status":"published","published":"2026-11-10T15:56:54Z","modified":"2026-11-10T15:56:54Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-11-10T17:21:44.229469Z"}],"ghsa":[{"id":"GHSA-ghwv-vrp2-2975","title":"Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks","description":"### Summary\nAn 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.\n\n### Details\nOnce 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.\n\nIn 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.\n\nIn 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.\n\nThis 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.\n\n### Workarounds\nThe proposed workaround is to allow re-attestation of the workload after periodic or user-defined intervals using post-handshake attestation.\n\n### Background and General Technical Details\nFor 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).\n\n### Credits\nThis vulnerability for Cocos AI was found and _responsibly_ disclosed by Muhammad Usama Sardar (TU Dresden, Germany).","status":"published","published":"2026-11-10T15:56:54Z","modified":"2026-11-10T15:57:15Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"medium"}],"cwes":["CWE-367"],"updated_at":"2026-11-10T16:25:10.795148Z"}],"nvd":[{"id":"CVE-2026-119345","description":"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.","status":"published","published":"2026-11-05T16:17:40.553Z","modified":"2026-11-05T21:18:40.92Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS: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","level":"high","assessor":"secondary"}],"cwes":["CWE-367"],"updated_at":"2026-11-05T23:57:23.655479Z"}],"osv":[{"id":"CVE-2026-119345","title":"Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks","description":"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.","status":"published","published":"2026-11-05T15:53:42.702Z","modified":"2026-11-11T10:47:25.618814336Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-07T03:08:01.41647Z"},{"id":"GHSA-ghwv-vrp2-2975","title":"Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks","description":"### Summary\nAn 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.\n\n### Details\nOnce 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.\n\nIn 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.\n\nIn 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.\n\nThis 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.\n\n### Workarounds\nThe proposed workaround is to allow re-attestation of the workload after periodic or user-defined intervals using post-handshake attestation.\n\n### Background and General Technical Details\nFor 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).\n\n### Credits\nThis vulnerability for Cocos AI was found and _responsibly_ disclosed by Muhammad Usama Sardar (TU Dresden, Germany).","status":"published","published":"2026-11-10T15:56:54Z","modified":"2026-11-10T16:15:04.146929266Z","cvss":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"medium"},{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-10T16:33:22.61896Z"}]}}
