Cloudanix VulnDB

CVE-2022-30216

High · 8.8

CVSS

8.8

EPSS

88.6%

Published

Jul 12, 2022

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Attend

A flaw in affected server software could let someone with limited access make unauthorized changes that expose data, corrupt information, or disrupt service.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Data Tampering
Component
Network Service
Class
Improper Input Validation
Remediation
Patch
Effort
Low
Patch risk
Low

What it actually does

This vulnerability is described as an improper input validation issue that can allow a network-accessible, low-privileged authenticated attacker to tamper with a server-side service or affected OpenSearch-related component. Successful exploitation can compromise confidentiality, integrity, and availability by allowing unauthorized modification of service-controlled state, configuration, or data, potentially leading to data exposure, data corruption, privilege-impacting configuration changes, or service disruption. The supplied affected-product metadata points to OpenSearch, OpenSearch Security, OpenSearch Anomaly Detection, and the opensearch Ruby gem; defenders should validate exposure against those components and any vendor advisory used for asset mapping.

Why it matters to the business

An attacker with limited access could turn a foothold into broader operational impact by altering search data, security configuration, anomaly-detection behavior, or service state, which may cause incorrect business decisions, loss of audit trust, data leakage, or outages. The CVSS score is high and the EPSS score is very high, indicating elevated likelihood of exploitation even though it is not currently listed in CISA KEV and no ransomware use is indicated. Because the issue has been public for several years, unpatched internet-facing or broadly reachable deployments should be treated as high priority legacy exposure.

How an attack unfolds

An attacker first obtains valid low-privileged credentials or access to a minimally privileged account that can reach the vulnerable service. They then send crafted network requests or API inputs to the affected component, relying on insufficient validation to cause the service to accept input that should have been rejected. Depending on the exposed component and permissions model, the attacker may tamper with service state, modify configuration, alter OpenSearch security or anomaly-detection objects, corrupt or manipulate indexed data, or induce service instability. After successful tampering, the attacker may maintain access by changing roles or credentials, hide activity by modifying logs or detection rules where possible, exfiltrate searchable data, or disrupt availability.

How to fix it

Upgrade affected components to fixed versions. For source-based deployments, ensure opensearch-project/anomaly-detection includes commit 0773edf2d3bba57cc99f914982386e4f20c6e5cc, opensearch-project/security includes commit 7fabf39a82538aebea925f5ab901ffad2d1366a4, and opensearch-project/opensearch includes commit 2ac1c13e3877692bc9cbbab4c796d7244fe8486a. For the opensearch Ruby gem, upgrade to version 1.3.8 or 2.6.0, depending on the maintained branch in use. After patching, restart affected services where required, verify all nodes and dependent applications are using patched packages, and remove vulnerable transitive dependency versions from build artifacts and lockfiles. If immediate patching is not possible, restrict network access to the service/API, enforce least-privilege roles, disable unnecessary plugins or endpoints, require strong authentication, monitor administrative operations, and block untrusted access through firewalls, reverse proxies, or service mesh policy.

How to confirm the fix worked

Confirm the installed OpenSearch, OpenSearch Security, OpenSearch Anomaly Detection, and opensearch gem versions or commits match the fixed versions. Review dependency manifests and lockfiles such as Gemfile.lock, generated SBOMs, container images, and build pipelines to ensure vulnerable versions are not still packaged. Validate that all cluster nodes and plugin versions are consistent after upgrade. Run authenticated negative tests against representative non-production endpoints to confirm malformed or unauthorized inputs are rejected and logged. Use vulnerability scanners, software composition analysis, and package-manager checks to verify the fixed gem or source commits are deployed. Confirm compensating controls by testing that low-privileged users cannot access administrative, security, cluster-setting, plugin-management, or anomaly-detection modification APIs unless explicitly intended.

Typical attack path

  1. Identify a reachable vulnerable service, OpenSearch API, plugin endpoint, or application dependency using the affected opensearch package.
  2. Obtain or reuse low-privileged credentials through phishing, credential stuffing, leaked secrets, or compromise of an application account.
  3. Probe accessible APIs and service endpoints to determine which operations are accepted by the low-privileged identity.
  4. Send crafted input that abuses improper validation to tamper with service-controlled state, configuration, security objects, anomaly-detection objects, or indexed data.
  5. Use the resulting tampering capability to access sensitive data, modify data, weaken access controls, interfere with detection, or disrupt the service.
  6. Attempt to persist by adding or modifying users, roles, tokens, scripts, templates, jobs, or service configuration where the deployment allows it.
  7. Clean up obvious traces or blend activity into normal administrative API traffic.

How to detect it

To determine whether exploitation already occurred, review OpenSearch audit logs, OpenSearch server logs, Security plugin logs, Anomaly Detection plugin logs, application logs using the opensearch gem, reverse-proxy logs, load-balancer logs, and identity-provider authentication logs. Focus on low-privileged users or service accounts performing unusual administrative actions, security API calls, cluster setting changes, index/template/pipeline/script changes, anomaly-detector changes, or repeated malformed requests followed by successful writes. Look for privilege changes, new users, new role mappings, new API keys, unexpected changes to all_access or admin-equivalent roles, disabled audit settings, altered detector/job definitions, unexpected delete/update-by-query operations, and spikes in 400/401/403/500 responses around OpenSearch endpoints. If Windows service metadata is relevant to the deployed product mapping, also review Windows Security and System event logs for service creation or modification events such as 4697, 7040, and 7045, unusual service binary paths, and suspicious child processes launched by service accounts. Correlate any suspicious activity with the patch timeline, authentication source IPs, user-agent strings, and subsequent data export, destructive writes, or configuration drift.

  • /_cluster/settings
  • /_plugins/_security/api/
  • /_opendistro/_security/api/
  • /_plugins/_anomaly_detection/
  • /_opendistro/_anomaly_detection/
  • /_scripts/
  • /_template/
  • /_index_template/
  • /_ingest/pipeline/
  • /_update_by_query
  • /_delete_by_query
  • action [cluster:admin/settings/update]
  • action [cluster:admin/script/put]
  • action [indices:admin/template/put]
  • action [indices:data/write/delete/byquery]
  • action [indices:data/write/update/byquery]
  • rolesmapping
  • internalusers
  • all_access
  • security_exception
  • OpenSearchSecurityException
  • AnomalyDetector
  • Event ID 7045
  • A service was installed in the system
  • Event ID 7040
  • The start type of the service was changed
  • Event ID 4697
  • A service was installed in the system

What your security team should do

  • Prioritize remediation for internet-facing, partner-facing, or broadly reachable OpenSearch services and applications using the affected opensearch gem because EPSS is high.
  • Upgrade to the listed fixed versions or commits and verify that all nodes, plugins, containers, application packages, and dependency lockfiles are updated.
  • Audit OpenSearch users, roles, tenants, role mappings, API keys, service accounts, index permissions, cluster settings, templates, ingest pipelines, stored scripts, anomaly detectors, and plugin configurations for unauthorized changes.
  • Review logs for suspicious low-privileged accounts performing administrative, security, configuration, or plugin-modification actions before the patch date.
  • Restrict access to OpenSearch REST APIs and administrative/plugin endpoints to trusted networks and authenticated administrative identities only.
  • Rotate credentials, API keys, and service account secrets if logs show suspicious tampering, unexpected privilege changes, or unexplained configuration modifications.
  • Increase alerting on configuration changes, role changes, cluster setting updates, anomalous write/delete activity, and bursts of malformed requests or server-side validation errors.
  • If product ownership is unclear because of inconsistent advisory metadata, validate exposure using both CVE/vendor advisory mapping and package-level inventory rather than relying on the title alone.

The record

Windows Server Service Tampering Vulnerability

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities