CVE-2018-19994:
Dolibarr error-based SQL injection vulnerability in product/card.php
8.8
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
5/14/2022
Updated
4/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
dolibarr/dolibarr | composer | < 8.0.4 | 8.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows critical changes in the Product::update method where multiple SQL query parameters (including desiredstock) were modified to add (int) type casting. The original vulnerable code directly embedded user-controlled $this->desiredstock into the SQL query without validation, allowing arbitrary SQL execution. The patch explicitly addresses this by enforcing integer casting, confirming this was the injection vector. The function's role in building UPDATE queries with user inputs makes it the clear entry point for this SQLi vulnerability.