CVE-2016-4013: SQL Injection in SAP ASE 16.0 SP02 DSAM CREATE/ALTER DATABASE Logic
CVE-2016-4013 is a SQL injection vulnerability in SAP Adaptive Server Enterprise (ASE) 16.0 SP02 introduced through Data Store Access Management (DSAM) support in CREATE DATABASE and ALTER DATABASE processing. When DSAM is configured, these statements perform additional logic to add specially named segments. A flaw in that implementation allows a low-privileged user to embed T-SQL code into the affected database-management workflow, causing attacker-controlled SQL to be executed with elevated privileges. The issue can lead to full compromise of the ASE server.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a low-privileged authenticated user to execute injected T-SQL with elevated privileges. The resulting impact is complete server takeover, which can include unauthorized administrative actions, compromise of database integrity and confidentiality, and full control over the ASE instance.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by disabling or avoiding DSAM-dependent functionality where operationally feasible and strictly limiting assignment of CREATE DATABASE and CREATE PROCEDURE privileges to trusted administrators only. Monitor and review use of CREATE DATABASE and ALTER DATABASE statements for anomalous or unexpected behavior until the patch is applied.
Remediation
Patch, then assume compromise.
Apply the vendor-supplied fix for SAP ASE 16.0 SP02 PL03 or later patched versions that correct the DSAM-related CREATE/ALTER DATABASE handling.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2016-4013 exploited in the wild?
- As of Aug 20, 2026, Mallory has no reports of CVE-2016-4013 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2016-4013?
- As of Aug 20, 2026, Mallory has found no public exploit for CVE-2016-4013.
- Is there a patch for CVE-2016-4013?
- Apply the vendor-supplied fix for SAP ASE 16.0 SP02 PL03 or later patched versions that correct the DSAM-related CREATE/ALTER DATABASE handling.
Recent activity
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.