# GHSA-8wx3-324g-w4qq: OpenSearch uncontrolled resource consumption

> Unauthenticated attackers can crash OpenSearch nodes via malformed HTTP requests, causing denial of service.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 17 Oct 2023

## What is GHSA-8wx3-324g-w4qq?

GHSA-8wx3-324g-w4qq is a denial of service vulnerability in org.opensearch.plugin:opensearch-security, published on 17 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact
An issue has been identified with how OpenSearch handled incoming requests on the HTTP layer. An unauthenticated user could force an OpenSearch node to exit with an OutOfMemory error by sending a moderate number of malformed HTTP requests.

The issue was identified by Elastic Engineering and corresponds to security advisory [ESA-2023-13](https://discuss.elastic.co/t/elasticsearch-8-9-0-7-17-13-security-update/343616) (CVE-2023-31418).

### Mitigation
Versions 1.3.14 and 2.11.0 contain a fix for this issue.

### For more information
If you have any questions or comments about this advisory, please contact AWS/Amazon Security via our issue reporting page (https://aws.amazon.com/security/vulnerability-reporting/) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.

## Which versions are affected by GHSA-8wx3-324g-w4qq?

4 open source packages ship an affected version, including org.opensearch.plugin:opensearch-security.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.opensearch.plugin:opensearch-security` | Maven | All versions | 1.3.14.0 |
| `org.opensearch.plugin:opensearch-security` | Maven | All versions | 1.3.14.0 |
| `org.opensearch.plugin:opensearch-security` | Maven | From 2.0.0.0 | 2.11.0.0 |
| `org.opensearch.plugin:opensearch-security` | Maven | From 2.0.0.0 | 2.11.0.0 |

## How do I fix GHSA-8wx3-324g-w4qq?

Upgrade org.opensearch.plugin:opensearch-security to a fixed version for your release line: 1.3.14.0 or 2.11.0.0.

## Is GHSA-8wx3-324g-w4qq being exploited?

There is no known exploitation of GHSA-8wx3-324g-w4qq in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-8wx3-324g-w4qq and fix it if it is affected.

What it is: GHSA-8wx3-324g-w4qq is a denial of service vulnerability in org.opensearch.plugin:opensearch-security, published on 17 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-8wx3-324g-w4qq in the wild and no public exploit code.

Affected packages and fixed versions:
- org.opensearch.plugin:opensearch-security (Maven): affected all versions; fixed in 1.3.14.0
- org.opensearch.plugin:opensearch-security (Maven): affected all versions; fixed in 1.3.14.0
- org.opensearch.plugin:opensearch-security (Maven): affected from 2.0.0.0; fixed in 2.11.0.0
- org.opensearch.plugin:opensearch-security (Maven): affected from 2.0.0.0; fixed in 2.11.0.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-8wx3-324g-w4qq/ (Markdown: https://insights.sbomify.com/GHSA-8wx3-324g-w4qq/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-8wx3-324g-w4qq

---
From sbomify Insights: https://insights.sbomify.com/GHSA-8wx3-324g-w4qq/
Summaries are generated and may contain mistakes; the official description above is the record.
