Advisory

GHSA-42qm-c3cf-9wv2

Also known as: BIT-dolibarr-2022-0819, CVE-2022-0819

Summary

Code injection in dolibarr/dolibarr

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-03 00:00 UTC
Modified
2025-04-03 15:27 UTC

Affected packages and fixes

dolibarr/dolibarr

Packagist · All systems

Affected

  • introduced 0, fixed 15.0.1 (ecosystem)

Fixed versions

15.0.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences