{"id":"UBUNTU-CVE-2025-69871","details":"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.","modified":"2026-05-20T16:23:50.223058091Z","published":"2026-02-11T19:15:00Z","upstream":["CVE-2025-69871"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-69871"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-69871"},{"type":"REPORT","url":"https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69871-MedusaJS-TOCTOU.md"},{"type":"REPORT","url":"https://github.com/medusajs/medusa"},{"type":"REPORT","url":"https://github.com/medusajs/medusa/pull/13760"}],"affected":[{"package":{"name":"medusa","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/medusa?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.1-1","2.2~rc3-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2~rc3-1","binary_name":"medusa"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69871.json"}},{"package":{"name":"medusa","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/medusa?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2-4","2.2-4build1","2.2-5"],"ecosystem_specific":{"binaries":[{"binary_name":"medusa","binary_version":"2.2-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69871.json"}},{"package":{"name":"medusa","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/medusa?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2-6"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2-6","binary_name":"medusa"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69871.json"}},{"package":{"name":"medusa","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/medusa?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2-7","2.2-7build1"],"ecosystem_specific":{"binaries":[{"binary_name":"medusa","binary_version":"2.2-7build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69871.json"}},{"package":{"name":"medusa","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/medusa?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2-7build1","2.2-7build2","2.2-7build3"],"ecosystem_specific":{"binaries":[{"binary_name":"medusa","binary_version":"2.2-7build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69871.json"}},{"package":{"name":"medusa","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/medusa?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3~rc1-2","2.3-1","2.3-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.3-2","binary_name":"medusa"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69871.json"}},{"package":{"name":"medusa","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/medusa?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3-2","2.3-3"],"ecosystem_specific":{"binaries":[{"binary_name":"medusa","binary_version":"2.3-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-69871.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}