PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet
Vulnerability DatabaseGHSA-w2cw-phpj-gcgw

GHSA-w2cw-phpj-gcgw: 
PHP vulnerability analysis and mitigation

Commerce defines commerce-managePromotions as the parent permission for viewing promotion administration and defines commerce-editDiscounts as a nested permission for changing discounts. Most direct discount mutations correctly enforce the child permission. DiscountsController::actionClearDiscountUses(), however, checks only the broad permissions inherited from controller initialization and never requires commerce-editDiscounts. The action accepts any discount ID and resets one of three enforcement records: total usage, per-customer usage, or per-email usage. These counters are the server-side state used to enforce totalDiscountUseLimit, perUserLimit, and perEmailLimit. Resetting them makes an exhausted limited-use promotion eligible again.

Impact

A user intentionally restricted to viewing and administering the promotions area at the parent-role level can reactivate exhausted discounts without authorization. This bypasses total, per-account, and per-email redemption limits and can enable repeated use of one-time or capped coupons. Report ID: 1894


Source: NVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-109619CRITICALN/A
  • PHP logoPHP
  • php74
NoYesOct 21, 2026
CVE-2026-109618CRITICALN/A
  • PHP logoPHP
  • php5.6
NoYesOct 21, 2026
GHSA-wr49-2q4p-354wMEDIUMN/A
  • PHP logoPHP
  • craftcms/commerce
NoYesOct 20, 2026
GHSA-jx83-gwwg-84gfMEDIUMN/A
  • PHP logoPHP
  • craftcms/commerce
NoYesOct 20, 2026
GHSA-w2cw-phpj-gcgwMEDIUMN/A
  • PHP logoPHP
  • craftcms/commerce
NoYesOct 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management