NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

GHSA-78vr-q6cf-c7p6: Craft Commerce: Partial Payment Amount Without Lower Bound Validation

mediumCVSS 4.0 6.9

Summary The Order::setPaymentAmount() method accepts any float value without enforcing a minimum positive amount. The PaymentsController casts the user-supplied 'paymentAmount' parameter directly to float with no lower-bound check.

Published Jun 19, 2026

Affected packages

craftcms/commerce

Ecosystem
Composer (PHP)
Affected
>= 5.0.0, <= 5.6.4
Fixed in
5.6.5
Check
composer show craftcms/commerce

craftcms/commerce

Ecosystem
Composer (PHP)
Affected
>= 4.0.0, <= 4.11.1
Fixed in
4.11.2
Check
composer show craftcms/commerce

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

The Order::setPaymentAmount() method accepts any float value without enforcing a minimum positive amount. The PaymentsController casts the user-supplied 'paymentAmount' parameter directly to float with no lower-bound check.

Details

When the store has 'Allow Partial Payment on Checkout' enabled, a user can submit a payment amount of $0.00 or even a negative value, potentially marking orders as paid without a valid transaction.

PoC

_Complete instructions, including specific configuration details, to reproduce the vulnerability._

Impact

On stores with partial payment enabled, a customer may be able to set an arbitrarily small payment amount. Gateway behavior varies — some will process $0.00 transactions, effectively giving free order fulfillment.

Remediation

Credited to lorderroruss.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries