The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-20579

CVE-2021-20579: IBM Db2 Information Disclosure Vulnerability

CVE-2021-20579 is an information disclosure vulnerability in IBM Db2 for Linux, UNIX and Windows that exposes sensitive data when AUTO_REVAL is set to DEFERRED_FORCE. This article covers technical details, versions, and fixes.

Published: February 25, 2026

CVE-2021-20579 Overview

IBM Db2 for Linux, UNIX and Windows (includes Db2 Connect Server) versions 9.7, 10.1, 10.5, 11.1, and 11.5 contains an information disclosure vulnerability that allows authenticated users with the ability to create views or inline SQL functions to obtain sensitive information when the AUTO_REVAL database configuration parameter is set to DEFERRED_FORCE. This vulnerability exposes database contents to users who should not have access to the underlying data.

Critical Impact

Authenticated users can bypass intended data access controls to retrieve sensitive information from the database by exploiting view and inline SQL function creation privileges combined with the DEFERRED_FORCE revalidation setting.

Affected Products

  • IBM Db2 9.7 (Linux, UNIX, Windows)
  • IBM Db2 10.1 (Linux, UNIX, Windows)
  • IBM Db2 10.5 (Linux, UNIX, Windows)
  • IBM Db2 11.1 (Linux, UNIX, Windows)
  • IBM Db2 11.5 (Linux, UNIX, Windows)
  • IBM Db2 Connect Server (all affected versions)

Discovery Timeline

  • 2021-06-24 - CVE CVE-2021-20579 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-20579

Vulnerability Analysis

This information disclosure vulnerability stems from improper access control enforcement in IBM Db2 when handling view and inline SQL function revalidation. The vulnerability is specifically triggered when the AUTO_REVAL database configuration parameter is configured with the DEFERRED_FORCE setting. Under this configuration, Db2 delays the revalidation of dependent database objects until they are accessed, and forces revalidation to succeed even when underlying objects have been modified.

When an authenticated user creates a view or inline SQL function, the deferred revalidation mechanism can allow the user to access data that would otherwise be protected by standard access controls. This occurs because the revalidation process under DEFERRED_FORCE may not properly re-evaluate the user's privileges against the underlying tables or data sources.

The vulnerability requires network access and authenticated credentials with CREATE VIEW or CREATE FUNCTION privileges, but does not require any user interaction to exploit. The impact is limited to confidentiality, with no effect on data integrity or system availability.

Root Cause

The root cause of CVE-2021-20579 lies in the implementation of the AUTO_REVAL parameter's DEFERRED_FORCE mode. This configuration option was designed to improve database availability by ensuring dependent objects remain functional even when underlying structures change. However, the implementation fails to properly enforce access control checks during the forced revalidation process, creating a window where users can access data beyond their authorized scope through carefully crafted views or inline SQL functions.

Attack Vector

The attack requires an authenticated user with privileges to create views or inline SQL functions in the target database. The attacker would:

  1. Identify a target database configured with AUTO_REVAL=DEFERRED_FORCE
  2. Create a view or inline SQL function that references sensitive data in tables the attacker should not have direct access to
  3. Query the created view or execute the function to retrieve sensitive information
  4. The deferred revalidation mechanism improperly grants access to the underlying data

The attacker exploits the timing and privilege evaluation gaps in the deferred revalidation process. When the view or function is accessed, Db2 forces revalidation to succeed without properly verifying that the invoking user has appropriate SELECT permissions on the underlying base tables.

Detection Methods for CVE-2021-20579

Indicators of Compromise

  • Unexpected view or inline SQL function creation by users without business justification
  • Access patterns showing users querying views that reference tables they lack direct permissions to access
  • Audit log entries indicating data access through views by unauthorized users
  • Database catalog changes showing new views or functions referencing sensitive tables

Detection Strategies

  • Monitor Db2 audit logs for CREATE VIEW and CREATE FUNCTION statements from non-administrative users
  • Review AUTO_REVAL configuration settings across all Db2 instances using db2 get db cfg command
  • Implement alerting on view creation events that reference tables containing sensitive data classifications
  • Compare user direct table permissions against view definitions to identify potential privilege escalation paths

Monitoring Recommendations

  • Enable comprehensive Db2 auditing including OBJMAINT events for tracking object creation
  • Configure SYSLOG or SIEM integration to capture and analyze Db2 security events
  • Implement regular reviews of view and function definitions against data access policies
  • Monitor for configuration changes to the AUTO_REVAL parameter

How to Mitigate CVE-2021-20579

Immediate Actions Required

  • Review and change AUTO_REVAL configuration from DEFERRED_FORCE to a more secure setting such as IMMEDIATE or DISABLED
  • Audit existing views and inline SQL functions for potential unauthorized data access paths
  • Review user privileges related to CREATE VIEW and CREATE FUNCTION permissions
  • Apply the IBM security patch as soon as possible

Patch Information

IBM has released security patches to address this vulnerability. Organizations should apply the appropriate fix pack or interim fix for their Db2 version. Detailed patch information is available through the IBM Support Page. Additional technical details about this vulnerability (IBM X-Force ID: 199283) can be found in the IBM X-Force Vulnerability Report. NetApp customers should also review the NetApp Security Advisory NTAP-20210720-0006 for guidance on affected NetApp products.

Workarounds

  • Change the AUTO_REVAL database configuration parameter from DEFERRED_FORCE to IMMEDIATE or DISABLED
  • Restrict CREATE VIEW and CREATE FUNCTION privileges to trusted database administrators only
  • Implement row-level security or column masking as additional data protection layers
  • Use Db2 RCAC (Row and Column Access Control) to enforce fine-grained access controls independent of view definitions
bash
# Configuration example
# Check current AUTO_REVAL setting
db2 get db cfg for <database_name> | grep -i auto_reval

# Change AUTO_REVAL to IMMEDIATE (more secure setting)
db2 update db cfg for <database_name> using AUTO_REVAL IMMEDIATE

# Verify the configuration change
db2 get db cfg for <database_name> | grep -i auto_reval

# Review users with CREATE VIEW privilege
db2 "SELECT GRANTEE, GRANTEETYPE FROM SYSCAT.DBAUTH WHERE CREATETABAUTH = 'Y'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechIbm Db2

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.27%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • NetApp Security Advisory NTAP-20210720-0006
  • Vendor Resources
  • IBM X-Force Vulnerability Report

  • IBM Support Page Analysis
  • Related CVEs
  • CVE-2025-36425: IBM Db2 Information Disclosure Vulnerability

  • CVE-2025-27899: IBM DB2 Information Disclosure Vulnerability

  • CVE-2025-13108: IBM DB2 Information Disclosure Flaw

  • CVE-2025-27900: IBM DB2 Recovery Expert Open Redirect
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English