{"id":"CVE-2026-43981","published":"2026-05-26T16:31:55Z","modified":"2026-05-27T13:47:52Z","title":"Algernon: Race Condition in handle() shared LState","vendor":"xyproto","product":"algernon","tier":"tail","description":{"text":"Algernon is a small self-contained pure-Go web server. Prior to 1.17.6, in engine/luahandler.go, the sync.RWMutex protecting LoadCommonFunctions is released before L.Push() and L.PCall() execute. Since gopher-lua's LState is explicitly not goroutine-safe, concurrent requests race on the shared state causing Lua VM corruption. The Go race detector confirms this immediately under modest concurrency (ab -n 1000 -c 100). This vulnerability is fixed in 1.17.6.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00282,"percentile":0.1329,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/xyproto/algernon/security/advisories/GHSA-rr2f-4wrm-h6rg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xyproto/algernon/issues/172","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":2.66},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"xyproto","affectedVersions":[{"vendor":"xyproto","product":"algernon","versions":["< 1.17.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-27T13:46:42.476250Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-31866","exploited":false,"provenance":"source"}}