Skip to main content

Databasement EUVDEUVD-2026-137784

| CVE-2026-138224 LOW
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-11-29 VulDB GHSA-w85v-fh34-rh4p
2.0
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege member
  2. Delivery
    Register attacker-controlled MySQL source with PHP-payload row
  3. Exploit
    Set dump_flags=--result-fi= prefix-bypassing SafeDumpFlags
  4. Execution
    Trigger backup; worker writes payload over compiled Blade view
  5. Persist
    Request renders poisoned view
  6. Impact
    Execute code as application user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Requires an authenticated organization 'member' account holding the manage-database-servers and run-backups abilities (not admin or instance owner) on a Databasement instance <=1.8.1, and at least one backup schedule already existing (schedule creation needs manage-backup-settings, which the attacker does not need). The attacker must control the source database being dumped (a MySQL/MariaDB instance reachable from the app network) to supply the payload bytes, and the backup worker must share a world-writable path (storage/framework/views or bootstrap/cache) with the app container so a compiled view/config can be overwritten and later included. The flaw is MySQL/MariaDB-specific: it relies on mariadb-dump honouring unambiguous long-option prefixes (--result-fi= resolving to --result-file), and the advisory confirms pg_dump, mongodump, redis-cli and sqlpackage are not exploitable this way. Limiting factors: authentication at member privilege is mandatory, an admin-created backup schedule must exist, and the attacker must be able to point the dump at a database they control.

Impact

Signals conflict and must be read together. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N, impacts VC:L/VI:L/VA:L, score 5.1) frames this as a medium-severity, high-privilege, low-impact issue - but the GitHub Security Advisory (GHSA-p37f-64w2-j6hw) contradicts both the privilege and impact metrics: it documents that a low-privilege organization 'member' (abilities manage-database-servers + run-backups, explicitly not admin or instance owner) can achieve full remote code execution as the application user, verified end-to-end against v1.7.13. That is authenticated-but-low-privilege RCE, not a limited low-impact flaw, so the vendor vector appears to understate real risk (PR:H and VC/VI/VA:L versus a demonstrated member-level RCE). No EPSS score and no CISA KEV entry are provided, so there is no evidence of widespread or active exploitation, and the vuln.today decision label is 'this_month' (a prioritized-but-not-emergency signal). The practical priority driver is the public exploit material in the GHSA advisory (a complete Python exploit script with a demonstrated 'id' execution) combined with trivial attack complexity (a deterministic option-prefix bypass, AC:L). Net: for organizations actually running Databasement with multi-member orgs this is a serious, reliably exploitable escalation-to-RCE and should be patched promptly; for most environments the practical risk is bounded by the product's very small deployment footprint and the requirement for an authenticated member account.

Exploit ScenarioDerived

An authenticated low-privilege org member registers an attacker-controlled MySQL/MariaDB source containing a row holding a quote-free PHP payload, then sets the server's dump_flags to '--result-fi=/app/storage/framework/views/<compiled>.php' - an unambiguous prefix of the blocked '--result-file' that SafeDumpFlags fails to catch. When the backup worker runs mariadb-dump, it writes the attacker's payload over a compiled Blade view shared across the worker and app containers; the next request that renders that view executes the PHP as the application user. A full working exploit script is published in the GHSA advisory (demonstrated end-to-end against v1.7.13), though the feed classifies it as a reference not independently verified as working exploit code.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

Authenticated remote code execution on Databasement 1.8.1 and earlier lets an organization 'member' - a low-privilege role holding only manage-database-servers and run-backups - write attacker-chosen bytes to any path the backup worker can reach and convert that into code execution as the application user. The bypass lives in the SafeDumpFlags validation rule: it blocks only the exact spellings of dangerous mariadb-dump options, so an abbreviated option such as --result-fi=/path still resolves to --result-file and redirects the dump output to a file the attacker then triggers. Exploitation requires an existing admin-created backup schedule and an attacker-controlled MySQL/MariaDB source database; a public PoC reference exists (the vendor advisory's end-to-end walkthrough and exploit script), but it is not verified as working exploit code, and no confirmed active exploitation (CISA KEV) is reported. Vendor-released patch: 1.8.2.

RemediationAI

Upgrade to Databasement 1.8.2, which fixes the issue; the release is https://github.com/David-Crty/databasement/releases/tag/v1.8.2, the fix is pull request https://github.com/David-Crty/databasement/pull/639 and commit 22258e3eac594e653f9d04a69d93e83923d61499. That patch rejects any dump_flags token whose long name is an unambiguous prefix of a denied option on MySQL and PostgreSQL, strips my_getopt prefixes such as --loose-/--skip-/--disable-/--enable-/--maximum- before comparison, adds --defaults-group-suffix to the deny-list, and - more importantly - stops relying on shell redirection by emitting --result-file=<outputPath> after the user-supplied flags so the client's own last-wins output option governs where the dump lands. Until the upgrade lands, the workaround supported by the advisory is removing manage-database-servers and run-backups abilities from untrusted organization members, at the cost of those members no longer being able to register database servers or trigger backups; additionally audit already-stored database server dump_flags for abbreviated or prefixed forms of the denied options, because stored configurations bypass the runtime check. Note that defence on the filesystem side (stopping the backup worker from sharing writable /app paths such as storage/framework/views and bootstrap/cache with the web container) is described in the advisory only as an exploitation precondition, not as a vendor mitigation.

Affected VersionsENISA

Databasement 1.8.1
Databasement 1.8.0

Affected Packages

euvd databasement no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Databasement is a Laravel/PHP database-backup manager that shells out to native clients (mariadb-dump, pg_dump, mongodump, redis-cli, sqlpackage). Users may supply free-form dump_flags on a database server, validated by app/Rules/SafeDumpFlags.php, whose DENIED list holds exact long option names (--result-file, --tab, --dir, --log-error, --defaults-file, --plugin-dir and short forms) and compares them with array_intersect; there is no handling for abbreviations. The flaw class is CWE-88 argument injection (the advisory also maps CWE-73 path control and CWE-94 code injection): the tokens are escapeshellarg'd, which neutralises the shell but not the option parser, and mariadb-dump's my_getopt resolves any unambiguous long-option prefix, so --result-fi, --result-f, --result_fi (underscore normalised to hyphen) and --ta reach the denied options. The validated flags are appended in app/Services/Backup/Databases/MysqlDatabase::dump() to a mariadb-dump command executed by the queue worker (ProcessBackupJob via ShellProcessor), and the pre-fix code redirected stdout to the output path with a shell '>'. Because the member also registers the source server, the dumped rows - a quote-free PHP payload such as a base64 GET-parameter eval - land verbatim in the chosen file, classically an already-compiled Blade view under storage/framework/views or bootstrap/cache/config.php, which is later included and executed; the worker and app containers share /app. Stored configurations bypass the runtime rule as well. The bypass is MySQL/MariaDB-specific: pg_dump appends -f after user flags so the last -f wins, and mongodump, redis-cli and sqlpackage do not prefix-match. The trigger conditions for other deployment layouts are not described in the available sources.

Know when Databasement gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 8.8 HIGH

GHSA shows a low-privilege authenticated member (PR:L) deterministically bypassing the flag check (AC:L) to gain code execution as the application user (C:H/I:H/A:H).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Nov 29, 2026 - 13:22 NVD
MEDIUM LOW
CVSS changed
Nov 29, 2026 - 13:22 NVD
5.1 (MEDIUM) 2.0 (LOW)
CVE Published
Nov 29, 2026 - 12:30 cve.org
MEDIUM 5.1

DescriptionCVE.org

A vulnerability was detected in David-Crty Databasement up to 1.8.1. Affected is the function violation of the file app/Rules/SafeDumpFlags.php. The manipulation of the argument dump_flags results in argument injection. The attack can be launched remotely. The exploit is now public and may be used. Upgrading to version 1.8.2 is able to address this issue. The patch is identified as 22258e3eac594e653f9d04a69d93e83923d61499. It is suggested to upgrade the affected component.

Threat Intelligence Overview

EPSS Score
0.7%
Top 49% exploitable
Prevalence
Rare
obscure single-developer self-hosted backup tool, tiny deployment footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy