GitHub Advisoryadvisory · Packagist
GHSA-42qm-c3cf-9wv2 Code injection in dolibarr/dolibarr
HIGH
Official page ↗
- Aliases
- CVE-2022-0819
- Ecosystem
- Packagist
- Packages
- dolibarr/dolibarr
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2022-03-03
Affected packages
• Packagist dolibarr/dolibarr: < 15.0.1 → fixed in 15.0.1
Description
Improper php function sanitization, lead to an ability to inject arbitrary PHP code and run arbitrary commands on file system. In the function "dol_eval" in file "dolibarr/htdocs/core/lib/functions.lib.php" dangerous PHP functions are sanitized using "str_replace" and can be bypassed using following code in $s parameter
Related
Alias · CVE (1)
- CVE-2022-0819 Code Injection in GitHub repository dolibarr/dolibarr prior to 15.0.1. vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness