{"id":"CVE-2023-32691","summary":"ginuerzh/gost vulnerable to Timing Attack","details":"gost (GO Simple Tunnel) is a simple tunnel written in golang. Sensitive secrets such as passwords, token and API keys should be compared only using a constant-time comparison function. Untrusted input, sourced from a HTTP header, is compared directly with a secret. Since this comparison is not secure, an attacker can mount a side-channel timing attack to guess the password. As a workaround, this can be easily fixed using a constant time comparing function such as `crypto/subtle`'s `ConstantTimeCompare`. \n","aliases":["GHSA-qjrq-hm79-49ww"],"modified":"2026-04-20T04:06:25.757049Z","published":"2023-05-30T03:06:06.080Z","database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32691.json","cwe_ids":["CWE-203"]},"references":[{"type":"WEB","url":"https://github.com/ginuerzh/gost/blob/1c62376e0880e4094bd3731e06bd4f7842638f6a/auth.go#L46"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32691.json"},{"type":"ADVISORY","url":"https://github.com/ginuerzh/gost/security/advisories/GHSA-qjrq-hm79-49ww"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32691"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ginuerzh/gost","events":[{"introduced":"0"},{"last_affected":"729d0e70005607dc7c69fc1de62fd8fe21f85355"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"last_affected":"2.11.5"}]}}],"versions":["1.0","2.0","2.0-preview","2.0-rc","2.0-rc2","2.0-rc3","2.1-rc1","v1.0","v1.1","v1.2","v1.3","v1.4","v1.5","v1.6","v1.7","v1.8","v2.10.0","v2.10.1","v2.11.0","v2.11.1","v2.11.2","v2.11.3","v2.11.4","v2.11.5","v2.2","v2.2-rc1","v2.2-rc2","v2.3","v2.3-rc1","v2.3-rc2","v2.4-rc1","v2.4-rc2","v2.5","v2.5-rc1","v2.5-rc2","v2.6","v2.6.1","v2.7.0","v2.7.1","v2.7.2","v2.8.0","v2.8.1","v2.8.2","v2.9.0","v2.9.1","v2.9.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-32691.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N"}]}