Description
A race condition vulnerability exists in MedusaJS Medusa v2.12.2 and earlier in the registerUsage() function of the promotion module. The function performs a non-atomic read-check-update operation when enforcing promotion usage limits. This allows unauthenticated remote attackers to bypass usage limits by sending concurrent checkout requests, resulting in unlimited redemptions of limited-use promotional codes and potential financial loss.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | medusa | No fix yet | — |
| Ubuntu 26.04 LTS | medusa | No fix yet | — |
| Ubuntu 25.10 | medusa | No fix yet | — |
| Ubuntu 24.04 LTS | medusa | No fix yet | — |
| Ubuntu 22.04 LTS | medusa | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | medusa | No fix yet | — |
| Ubuntu 18.04 LTS | medusa | No fix yet | — |
| Ubuntu 16.04 LTS | medusa | No fix yet | — |