Enterprise SearchApplication · Elastic

CVE-2021-22149

HIGH · 8.8 CVSS v3.1 Published 2021-09-15
Fix available
A fix is available. Upgrade to 7.14.0 or later.
See remediation →
94/100
Remediation priority · Urgent
Remotely reachable Zero-click

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 · unedited
Elastic Enterprise Search App Search versions before 7.14.0 are vulnerable to an issue where API keys were missing authorization via an alternate route. Using this vulnerability, an authenticated attacker could utilize API keys belonging to higher privileged users.

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 · high confidence

Elastic Enterprise Search App Search versions before 7.14.0 contain an authorization bypass vulnerability where API keys are not properly validated when accessed through an alternate route. An authenticated attacker with a valid API key can leverage this flaw to utilize API keys belonging to higher-privileged users, gaining unauthorized access to their resources and data.

MitigationUpgrade Elastic Enterprise Search App Search to version 7.14.0 or later to obtain the patched version that properly enforces API key authorization controls.

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
Enterprise SearchApplication
Affected:< 7.14.0

CVSS 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
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify if Elastic Enterprise Search is installed
    Check for the enterprise-search service (systemctl status enterprise-search) or look for installation directories such as /usr/share/enterprise-search or /opt/enterprise-search
    Affected if Enterprise Search is not found on the system, the vulnerability does not apply
  2. Determine the installed Enterprise Search version
    Run the command 'enterprise-search --version' or check the version file in the installation directory (such as /usr/share/enterprise-search/lib/version.conf)
    Affected if Unable to determine the version, further manual investigation is required
  3. Verify the version is within the affected range
    Compare your installed version number against the affected range: any version before 7.14.0 (for example, 7.13.x, 7.12.x, 7.11.x, 7.10.x, 7.9.x, etc.)
    Affected if Installed version is 7.14.0 or later - the vulnerability is patched in this version
  4. Confirm App Search module is in use
    Check if the App Search component is configured and running by inspecting the enterprise-search.yml configuration file (commonly at /etc/enterprise-search/enterprise-search.yml) for app_search settings or by querying the App Search API endpoint
    Affected if App Search is not enabled or configured, the authorization bypass has no target

You are affected if Elastic Enterprise Search with App Search is installed and the version is below 7.14.0, allowing an authenticated attacker to escalate privileges through API key misuse.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Upgrade available Upgrade to 7.14.0 or later
Fixed in 7.14.0
Interim mitigation

Upgrade Elastic Enterprise Search App Search to version 7.14.0 or later to obtain the patched version that properly enforces API key authorization controls.

Recommended fix High confidence

7.14.0 or later

  1. Back up all Elastic Enterprise Search data and configuration before upgrading
  2. Plan your upgrade path according to Elastic's upgrade documentation
  3. Upgrade Elastic Enterprise Search to version 7.14.0 or later
  4. After upgrade, verify that API keys now properly enforce authorization controls
  5. Test that API keys can only access resources they're explicitly authorized for
Caveat Review Elastic 7.14.0 release notes for any breaking changes specific to your deployment

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Enterprise Search Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,130
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2021-22149 — 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2021-22149 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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