{"id":"CVE-2023-4197","published":"2023-11-01T07:58:56Z","modified":"2024-09-05T19:57:29Z","title":"Dolibarr ERP CRM (<= 18.0.1) Improper Input Sanitization Authenticated RCE","vendor":"Dolibarr","product":"Dolibarr ERP CRM","tier":"tail","description":{"text":"Improper input validation in Dolibarr ERP CRM <= v18.0.1 fails to strip certain PHP code from user-supplied input when creating a Website, allowing an attacker to inject and evaluate arbitrary PHP code.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.36177,"percentile":0.98514,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://starlabs.sg/advisories/23/23-4197","tags":["third-party-advisory"]},{"url":"https://github.com/Dolibarr/dolibarr/commit/0ed6a63fb06be88be5a4f8bcdee83185eee4087e","tags":["patch"]}],"priority":{"score":30.0,"factors":[{"name":"EPSS percentile","points":19.7},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-05-25","earliestUrl":"https://github.com/alienkeric/CVE-2023-4197","repos":[{"name":"alienkeric/CVE-2023-4197","url":"https://github.com/alienkeric/CVE-2023-4197","stars":0,"created":"2024-05-25"}]},"first":{"date":"2024-05-25","source":"PoC-in-GitHub","url":"https://github.com/alienkeric/CVE-2023-4197"},"provenance":"source"},"vendorSlug":"dolibarr","affectedVersions":[{"vendor":"Dolibarr","product":"Dolibarr ERP CRM","versions":["<= 18.0.1"]}],"capec":[{"id":"CAPEC-248","name":"Command Injection"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-09-05T19:57:10.685026Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"dolibarr/dolibarr","vulnerableRanges":["<18.0.2"],"patched":["18.0.2"],"from":["GHSA-r9cm-pw9j-3fpx"],"provenance":"source"}],"summary":{"text":"The flaw is improper input validation in the Website creation feature of Dolibarr ERP CRM (versions up to and including 18.0.1), which fails to strip certain PHP code from user-supplied input. An attacker who can create a Website in the application can inject arbitrary PHP code that the product then evaluates, which requires an authenticated account with low privileges and a network path to the application, and which is noted as a high-complexity attack.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:35:32Z"},"euvd":{"id":"EUVD-2023-3025","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-dolibarr-dolibarr-cve-2019-11201","parents":[{"from":"CVE-2019-11201","to":"CVE-2023-4197","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["htdocs/core/lib/website.lib.php"],"commits":["https://github.com/Dolibarr/dolibarr/commit/63c0ab93fb21f86c1b736061af9fa1eee90148fd","https://github.com/Dolibarr/dolibarr/commit/0ed6a63fb06be88be5a4f8bcdee83185eee4087e"],"basis":"shared function","functions":["dolStripPhpCode"]}]},{"from":"CVE-2022-4093","to":"CVE-2023-4197","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["htdocs/core/lib/website.lib.php"],"commits":["https://github.com/dolibarr/dolibarr/commit/7c1eac9774bd1fed0b7b4594159f2ac2d12a4011","https://github.com/Dolibarr/dolibarr/commit/0ed6a63fb06be88be5a4f8bcdee83185eee4087e"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-38888","published":"2023-09-20","fixed":"17.0.1","kev":false},{"cve":"CVE-2023-4198","published":"2023-11-01","fixed":"18.0.0","kev":false,"link":{"from":"CVE-2023-4198","to":"CVE-2023-4197","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:dolibarr/dolibarr","fromFixed":"18.0.0","toFixed":"18.0.2","daysApart":0}]}},{"cve":"CVE-2023-5323","published":"2023-10-01","fixed":"18.0.0","kev":false},{"cve":"CVE-2023-4197","published":"2023-11-01","fixed":"18.0.2","kev":false},{"cve":"CVE-2024-23817","published":"2024-01-25","fixed":"18.0.7","kev":false},{"cve":"CVE-2024-34051","published":"2024-06-03","fixed":"19.0.2","kev":false},{"cve":"CVE-2024-37821","published":"2024-06-18","fixed":"19.0.2","kev":false}],"package":"Packagist:dolibarr/dolibarr"}}