Live threats

All CVEs / Sylius

CVE-2026-31824Sylius

Medium 5.9 No auth needed

Priority
50
CVSS 3.1
5.9
EPSS
—
Auth required
No
Published
Mar 10, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-362, CWE-367
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

Sylius is an Open Source eCommerce Framework on Symfony. A Time-of-Check To Time-of-Use (TOCTOU) race condition was discovered in the promotion usage limit enforcement. The same class of vulnerability affects the promotion usage limit (the global used counter on Promotion entities), coupon usage limit (the global used counter on PromotionCoupon entities), and coupon per-customer usage limit (the per-customer redemption count on PromotionCoupon entities). In all three cases, the eligibility check reads the used counter (or order count) from an in-memory Doctrine entity during validation, while the actual usage increment in OrderPromotionsUsageModifier happens later during order completion — with no database-level locking or atomic operations between the two phases. Because Doctrine flushes an absolute value (SET used = 1) rather than an atomic increment (SET used = used + 1), and because the affected entities lack optimistic locking, concurrent requests all read the same stale usage counts and pass the eligibility checks simultaneously. An attacker can exploit this by preparing multiple carts with the same limited-use promotion or coupon and firing simultaneous PATCH /api/v2/shop/orders/{token}/complete requests. All requests pass the usage limit checks and complete successfully, allowing a single-use promotion or coupon to be redeemed an arbitrary number of times. The per-customer limit can be bypassed in the same way by a single customer completing multiple orders concurrently. No authentication is required to exploit this vulnerability. This may lead to direct financial loss through unlimited redemption of limited-use promotions and discount coupons. The issue is fixed in versions: 1.9.12, 1.10.16, 1.11.17, 1.12.23, 1.13.15, 1.14.18, 2.0.16, 2.1.12, 2.2.3 and above.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sylius.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist sylius/sylius < 1.9.12 1.9.12 composer require "sylius/sylius:^1.9.12"
Packagist sylius/sylius ≥ 1.10.0 < 1.10.16 1.10.16 composer require "sylius/sylius:^1.10.16"
Packagist sylius/sylius ≥ 1.11.0 < 1.11.17 1.11.17 composer require "sylius/sylius:^1.11.17"
Packagist sylius/sylius ≥ 1.12.0 < 1.12.23 1.12.23 composer require "sylius/sylius:^1.12.23"
Packagist sylius/sylius ≥ 1.13.0 < 1.13.15 1.13.15 composer require "sylius/sylius:^1.13.15"
Packagist sylius/sylius ≥ 1.14.0 < 1.14.18 1.14.18 composer require "sylius/sylius:^1.14.18"
Packagist sylius/sylius ≥ 2.0.0 < 2.0.16 2.0.16 composer require "sylius/sylius:^2.0.16"
Packagist sylius/sylius ≥ 2.1.0 < 2.1.12 2.1.12 composer require "sylius/sylius:^2.1.12"
Packagist sylius/sylius ≥ 2.2.0 < 2.2.3 2.2.3 composer require "sylius/sylius:^2.2.3"

Per OSV / GitHub Advisories (GHSA-7mp4-25j8-hp5q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
syliussylius< 1.9.12
syliussylius≥ 1.10.0 < 1.10.16
syliussylius≥ 1.11.0 < 1.11.17
syliussylius≥ 1.12.0 < 1.12.23
syliussylius≥ 1.13.0 < 1.13.15
syliussylius≥ 1.14.0 < 1.14.18
syliussylius≥ 2.0.0 < 2.0.16
syliussylius≥ 2.1.0 < 2.1.12
syliussylius≥ 2.2.0 < 2.2.3

Official sources

References

Links published by the sources. Open them with care.