Description
databasement before 1.8.2 allows remote code execution because it runs certain commands (e.g., mariadb-dump) with a database name that can be specified by any authenticated user. For example, --result-file=/app/public/index.php can write to index.php. In other words, quoting prevents OS command injection in mariadb-dump, but the argument injection alone is sufficient for code execution indirectly. NOTE: the project's composer.json file does not indicate an independently published databasement Composer package.
References5
- github.com/David-Crty/databasement/blob/bcee6f0e62796337aaac269…
- github.com/David-Crty/databasement/blob/bcee6f0e62796337aaac269…
- github.com/David-Crty/databasement/commit/22258e3eac594e653f9d0…
- github.com/David-Crty/databasement/commit/2d2761905594a2fa2c3d8…
- github.com/David-Crty/databasement/security/advisories/GHSA-hm5…
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 2% percentile: 77 · as of 11 November 2026
- CWE
- CWE-88
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.