# CVE-2026-43981: Algernon: Race Condition in handle() shared LState

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-05-26T16:31:55.696Z
- Modified: 2026-07-24T11:10:00.170Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- xyproto algernon: < 1.17.6

## References

- <https://github.com/xyproto/algernon/security/advisories/GHSA-rr2f-4wrm-h6rg>
- <https://github.com/xyproto/algernon/issues/172>

## Sources

- CVE List: [CVE-2026-43981](https://www.cve.org/CVERecord?id=CVE-2026-43981), CVE Terms of Use, modified 2026-05-27
- NVD: [CVE-2026-43981](https://nvd.nist.gov/vuln/detail/CVE-2026-43981), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-43981 · Whole record: https://cve.day/CVE-2026-43981.json · Rebuilt by cve.day 2026-11-25T22:59:22.336Z
