GHSA-78vr-q6cf-c7p6
JSON

medium

Craft Commerce: Partial Payment Amount Without Lower Bound Validation

Severity
medium CVSS:4.0 by GitHub
Published
Last changed

Description

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.

image image
PoC

Complete instructions, including specific configuration details, to reproduce the vulnerability. image

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

image

Affected

Product or packageVersionsReported by
craftcms/commerce (Packagist)from 5.0.0 before 5.6.5, from 4.0.0 before 4.11.2GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-78vr-q6cf-c7p6 changed 2026-09-10CC-BY-4.0