{"id":"CVE-2026-43981","aliases":["CVE-2026-43981"],"related":[],"kind":"vulnerability","state":"published","title":"Algernon: Race Condition in handle() shared LState","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Algernon es un pequeño servidor web autónomo y puramente Go. Antes de la versión 1.17.6, en engine/luahandler.go, el sync.RWMutex que protege LoadCommonFunctions se libera antes de que se ejecuten L.Push() y L.PCall(). Dado que el LState de gopher-lua no es explícitamente seguro para goroutines, las solicitudes concurrentes compiten por el estado compartido, causando corrupción de la VM de Lua. El detector de carreras de Go confirma esto inmediatamente bajo una concurrencia moderada (ab -n 1000 -c 100). Esta vulnerabilidad se corrige en la versión 1.17.6.","source":"nvd"}],"published":"2026-05-26T16:31:55.696Z","modified":"2026-07-24T11:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.2,"rating":"HIGH"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"version":"< 1.17.6","status":"affected"}],"vendor":"xyproto","product":"algernon","source":"cvelist"}],"references":[{"url":"https://github.com/xyproto/algernon/security/advisories/GHSA-rr2f-4wrm-h6rg","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/xyproto/algernon/issues/172","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-27T13:46:42.476Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43981","url":"https://www.cve.org/CVERecord?id=CVE-2026-43981","licence":"CVE Terms of Use","modified":"2026-05-27T13:47:52.116Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43981","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43981","licence":"Public domain","modified":"2026-07-24T11:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:22.336Z","epss":{"score":0.00182,"percentile":0.08176,"date":"2026-12-01T12:00:22.000Z"}}