CVE-2026-21939
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedVulnerability in the SQLcl component of Oracle Database Server. Supported versions that are affected are 23.4.0-23.26.0. Difficult to exploit vulnerability allows unauthenticated attacker with logon to the infrastructure where SQLcl executes to compromise SQLcl. Successful attacks require human interaction from a person other than the attacker. Successful attacks of this vulnerability can result in takeover of SQLcl. CVSS 3.1 Base Score 7.0 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceVulnerability in Oracle SQLcl (SQL*Plus Command Line) allowing an attacker with local system access to compromise SQLcl through social engineering or tricking a legitimate user into performing actions. The attack requires human interaction from a victim and leads to complete takeover of the SQLcl component.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 23.4, <= 23.26CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- High
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Confirm SQLcl is installedLocate the sqlcl executable on the system. Common paths include $ORACLE_HOME/bin/sqlcl, or check via command: which sqlcl (Linux/Unix) or where sqlcl (Windows)Affected if SQLcl is found on the system
-
Identify SQLcl versionRun sqlcl with version flag or check the product release: sql -v or sql /? or inspect the sqlcl binary metadata. If Oracle Database Server is installed, check via SQL*Plus: SELECT * FROM V$VERSION;Affected if The installed version falls within >= 23.4 and <= 23.26 (or the corrected version range as published by Oracle)
-
Verify local system access controlsReview which OS users have login access to the system where SQLcl runs. Check /etc/passwd (Unix/Linux) or local user accounts (Windows) and review sudo/administrator group membershipsAffected if Multiple users or untrusted users have local system access
-
Inspect SQLcl configuration filesCheck SQLcl configuration directories for any unexpected scripts, login.sql, or glogin.sql files that could be leveraged in the social engineering attack. Common locations: $ORACLE_HOME/sqlplus/admin/ or user home directoriesAffected if Unexpected or modified SQLcl configuration files exist, or configuration allows execution of external scripts
-
Review user session loggingCheck if SQLcl audit logging is enabled. In SQL*Plus: SHOW AUDIT; or verify audit trail settings in the database if SQLcl connects to a databaseAffected if No audit or logging is configured for SQLcl sessions, preventing detection of compromise attempts
The environment is affected if SQLcl is installed and its version is within 23.4 through 23.26 (or the corrected range) AND untrusted users have local system access that could enable social engineering attacks.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedApply Oracle Critical Patch Updates when available. Until then, strictly limit who can logon to systems running SQLcl, monitor for suspicious user behavior, and educate users about social engineering risks.
Oracle Database 23c version 23.27 or later
- Verify current SQLcl version by running: sql -version
- Download Oracle Database 23c (23.27 or later) from Oracle's official website or Oracle Cloud console
- Backup any existing SQLcl scripts, configurations, and customizations
- Install the updated Oracle Database 23c client or tools that include the fixed SQLcl version
- Migrate any custom SQLcl configurations, scripts, or aliases to the new installation
- Test SQLcl functionality in a non-production environment before deploying to production
- Update any automation or deployment scripts that reference specific SQLcl versions
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,600.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-21939 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-21939 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data