CVE-2020-8818 — magento2
HIGHCVE-2020-8818 is a high-severity (CVSS 8.1) CWE-346 vulnerability in cardgate/magento2. 4 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for cardgate/magento2 — see the affected versions and patch details below.
Origin Validation Error in Magento 2
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
cardgate/magento2Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
An issue was discovered in the CardGate Payments plugin through 2.0.30 for Magento 2. Lack of origin authentication in the IPN callback processing function in Controller/Payment/Callback.php allows an attacker to remotely replace critical plugin settings (merchant ID, secret key, etc.) and therefore bypass the payment process (e.g., spoof an order status by manually sending an IPN callback request with a valid signature but without real payment) and/or receive all of the subsequent payments.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | cardgate/magento2 | all versions | 2.0.33composer require cardgate/magento2:^2.0.33 |
Affected Products
magentoadobecardgate paymentscardgateResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Magento WooCommerce CardGate Payment Gateway 2.0.30 - Payment Process Bypass
by GeekHack · Feb 25, 2020
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for cardgate/magento2, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update cardgate/magento2 to 2.0.33 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-8818 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2020-8818 in your dependencies?
Find it across Packagist, including transitive dependencies.