Summary
CVE-2026-138223 is a critical server-side template injection vulnerability in David-Crty Databasement. It allows arbitrary PHP execution as the application user, including through unauthenticated access to public components. The CVSS v3.1 base score is 10.0 (Critical).
Technical details
- Root cause: The toast notification helper (
app/Traits/Toast.php) built Blade templates dynamically by concatenating user-controllediconvalues into template strings (CWE-1336, CWE-791). - Trigger conditions: The helper methods were public, so they could be called as Livewire component actions, and those calls were not protected by snapshot integrity checks. The advisory states this allows unauthenticated access through public components, as well as access by low-privilege authenticated users.
- Attack vector: Network, with no user interaction required.
- Impact: Arbitrary PHP execution as the application user. The advisory says this lets an attacker decrypt and exfiltrate managed database passwords, SSH keys and object-store secrets, and access tenant backups. The result is a complete loss of confidentiality, integrity and availability.
Affected software
- Databasement 1.7.0 through 1.7.12.
Severity
- CVSS v3.1 base score: 10.0 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:X/RL:O/RC:C
Mitigation and recommended actions
- Immediate: Upgrade Databasement to 1.7.14 or later. The CVE record lists 1.7.13 as the first release containing the fix, but the vendor advisory lists 1.7.14 as the patched version. The fix validates icons against an allowlist, binds them as data attributes instead of template strings, and removes the helpers from the public component API.
- If you cannot upgrade immediately:
- Revoke outstanding invitations. The advisory describes them as exploit vectors with non-expiring tokens.
- Restrict network access to trusted operators only.
- After upgrading: Rotate all secrets the affected instance could have accessed, including database passwords, SSH keys and object-store credentials.

