Race Condition Affecting github.com/xyproto/algernon/lua/upload package, versions <1.17.6


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMXYPROTOALGERNONLUAUPLOAD-17116878
  • published1 Jun 2026
  • disclosed26 May 2026
  • creditKatrielMoses

Introduced: 26 May 2026

CVE-2026-43981  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade github.com/xyproto/algernon/lua/upload to version 1.17.6 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition in the handle process due to the sync.RWMutex being released before L.Push() and L.PCall() execute. An attacker can cause Lua VM corruption or unpredictable server behavior by making concurrent requests that race on the shared LState.

CVSS Base Scores

version 4.0
version 3.1