{"id":"EUVD-2023-1611","revision":null,"records":[{"revision":"d578b7c195784111b53f4e4720dabae7","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2023-32691","aliases":[],"title":"ginuerzh/gost vulnerable to Timing Attack","description":"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","state":0,"publishedAt":"2023-05-30T03:06:06.08+00:00","modifiedAt":"2025-01-10T20:45:20+00:00","affected":[{"ecosystem":"Vendor product","name":"gost","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"ginuerzh\",\n                    \"product\": \"gost\",\n                    \"versions\": [\n                        {\n                            \"version\": \"<= 2.11.5\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"severity":"MEDIUM"}],"references":["https://github.com/ginuerzh/gost/security/advisories/GHSA-qjrq-hm79-49ww","https://github.com/ginuerzh/gost/blob/1c62376e0880e4094bd3731e06bd4f7842638f6a/auth.go#L46"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-32691","license":"CVE Program Terms of Use","key":"cve-program:CVE-2023-32691","identifiers":["CVE-2023-32691"]},"retained":false,"historicalAffected":[]},{"revision":"2ccc9371bc5843908bd6ce776701e457","observedAt":"2026-11-16T03:37:51.2+00:00","statement":{"source":"euvd","id":"EUVD-2023-1611","aliases":["CVE-2023-32691","GHSA-qjrq-hm79-49ww"],"title":"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 compare…","description":"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","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"severity":null}],"references":["https://github.com/ginuerzh/gost/security/advisories/GHSA-qjrq-hm79-49ww","https://github.com/ginuerzh/gost/blob/1c62376e0880e4094bd3731e06bd4f7842638f6a/auth.go#L46"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-1611","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 30, 2023, 3:06:06 AM","dateUpdated":"Jan 10, 2025, 8:45:20 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2023-1611","identifiers":["EUVD-2023-1611","CVE-2023-32691","GHSA-qjrq-hm79-49ww"]},"retained":false,"historicalAffected":[]},{"revision":"7097ecb7e4cc429faabcf915375326f8","observedAt":"2026-10-24T22:17:15.774+00:00","statement":{"source":"nvd","id":"CVE-2023-32691","aliases":[],"title":"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 compare…","description":"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","state":0,"publishedAt":"2023-05-30T04:15:09.98+00:00","modifiedAt":"2026-06-17T05:59:24.01+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"severity":"MEDIUM"}],"references":["https://github.com/ginuerzh/gost/blob/1c62376e0880e4094bd3731e06bd4f7842638f6a/auth.go#L46","https://github.com/ginuerzh/gost/security/advisories/GHSA-qjrq-hm79-49ww"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2023-32691","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-203"],"productCriteria":["cpe:2.3:a:go_simple_tunnel_project:go_simple_tunnel:*:*:*:*:*:go:*:*"],"sourceDates":{"published":"2023-05-30T04:15:09.980","lastModified":"2026-06-17T05:59:24.010"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2023-32691","identifiers":["CVE-2023-32691"]},"retained":false,"historicalAffected":[]},{"revision":"2628cb19a0e646759b4d809301b1d704","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-qjrq-hm79-49ww","aliases":["CVE-2023-32691"],"title":"ginuerzh/gost vulnerable to Timing Attack","description":"[Timing attacks](https://en.wikipedia.org/wiki/Timing_attack) occur when an attacker can guess a secret by observing a difference in processing time for valid and invalid inputs. Sensitive secrets such as passwords, token and API keys should be compared only using a constant-time comparision function.\nMore information on this attack type can be found in [this blog post](https://verboselogging.com/2012/08/20/a-timing-attack-in-action). \n\n# Root Cause Analysis\n\nIn this case, the vulnerability occurs due to the following code.\n\nhttps://github.com/ginuerzh/gost/blob/1c62376e0880e4094bd3731e06bd4f7842638f6a/auth.go#L46-L46\n\nHere, a untrusted input, sourced from a HTTP header, is compared directly with a secret. \nSince, this comparision is not secure, an attacker can mount a side-channel timing attack to guess the password.\n\n# Remediation\n\nThis can be easily fixed using a constant time comparing function such as `crypto/subtle`'s `ConstantTimeCompare`. \nAn example fix can be found in https://github.com/runatlantis/atlantis/commit/48870911974adddaa4c99c8089e79b7d787fa820 Alternatively, one can apply the patch below\n\n```\nFrom d18cff85e1a565f688f717fd8f2cacea62ff9dbf Mon Sep 17 00:00:00 2001\nFrom: Porcupiney Hairs <porcupiney.hairs@protonmail.com>\nDate: Sun, 7 May 2023 01:03:33 +0530\nSubject: [PATCH] Fix : Timing attack\n\n---\n auth.go | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)\n\ndiff --git a/auth.go b/auth.go\nindex 1be96e9..be13f23 100644\n--- a/auth.go\n+++ b/auth.go\n@@ -2,6 +2,7 @@ package gost\n \n import (\n \t\"bufio\"\n+\t\"crypto/subtle\"\n \t\"io\"\n \t\"strings\"\n \t\"sync\"\n@@ -43,7 +44,8 @@ func (au *LocalAuthenticator) Authenticate(user, password string) bool {\n \t}\n \n \tv, ok := au.kvs[user]\n-\treturn ok && (v == \"\" || password == v)\n+\tpassOk := subtle.ConstantTimeCompare([]byte(password), []byte(v)) == 0\n+\treturn ok && (v == \"\" || passOk)\n }\n \n // Add adds a key-value pair to the Authenticator.\n-- \n2.25.1\n\n```","state":0,"publishedAt":"2023-05-22T19:47:15+00:00","modifiedAt":"2026-09-10T03:50:08.3507581+00:00","affected":[{"ecosystem":"Go","name":"github.com/ginuerzh/gost","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"2.11.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/ginuerzh/gost/security/advisories/GHSA-qjrq-hm79-49ww","https://nvd.nist.gov/vuln/detail/CVE-2023-32691","https://github.com/ginuerzh/gost","https://github.com/ginuerzh/gost/blob/1c62376e0880e4094bd3731e06bd4f7842638f6a/auth.go#L46"],"sourceUrl":"https://github.com/advisories/GHSA-qjrq-hm79-49ww","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qjrq-hm79-49ww","identifiers":["GHSA-qjrq-hm79-49ww","CVE-2023-32691"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T17:50:33.0489747+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T17:50:33.0489747+00:00","lastSuccessAt":"2026-11-16T17:50:33.2117758+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:33.2117767+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-5b5b992da2316e50415088e271a61a5a7b3b1ba305843116b4783c1ec86d58fa","complete":true,"records":426108,"lastAttemptAt":"2026-11-16T17:44:52.1128297+00:00","lastSuccessAt":"2026-11-16T17:44:52.0341248+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:44:52.1128297+00:00","snapshotPublishedAt":"2026-11-16T17:27:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-984340aa647d443f854924f0852ab319","complete":true,"records":13830,"lastAttemptAt":"2026-11-16T17:51:18.1027612+00:00","lastSuccessAt":"2026-11-16T17:51:18.097+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:51:18.097+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13883,"expectedIdentifiers":13883,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T17:50:33.0489747+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T17:50:33.0489747+00:00","lastSuccessAt":"2026-11-16T17:50:33.2125903+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:33.2125908+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-62158c3b10d140c88161da87af98dd6f","complete":false,"records":13842,"lastAttemptAt":"2026-11-16T17:50:59.5110915+00:00","lastSuccessAt":"2026-11-16T17:50:59.505+00:00","error":"209 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T17:50:59.505+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13474,"expectedIdentifiers":13883,"failedIdentifiers":209},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T17:50:32.8950504+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:32.8950504+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T17:44:52.338834+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:44:52.338834+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T17:50:33.0056326+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:33.0056326+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-3da619381c9f1c87f7b45518cd7541780ba25dac78a9f5cb3562eee84c7eac8f","complete":true,"records":232512,"lastAttemptAt":"2026-11-16T17:50:32.6652455+00:00","lastSuccessAt":"2026-11-16T17:50:31.6385672+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:32.6652455+00:00","snapshotPublishedAt":"2026-11-16T17:33:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}