Skip to main content
Mallory
UnratedVulnerability

CVE-2016-4013: SQL Injection in SAP ASE 16.0 SP02 DSAM CREATE/ALTER DATABASE Logic

Updated 3 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS-Not scored
EPSS-30-day exploit probability
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2016-4013CWE-89

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

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.
Activity feed

Recent activity

2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.