# GHSA-3xgr-h5hq-7299: GeoIP processor disables SSL certificate validation when downloading databases

> The GeoIP processor disables SSL validation, allowing man-in-the-middle attacks to serve malicious geolocation databases during downloads.

- **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:** 15 Oct 2025

## What is GHSA-3xgr-h5hq-7299?

GHSA-3xgr-h5hq-7299 is a vulnerability in org.opensearch.dataprepper.plugins:geoip-processor, published on 15 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact

The GeoIP processor in Data Prepper was configured to trust all SSL certificates and disable hostname verification when downloading GeoIP databases from HTTP URLs, making downloads vulnerable to man-in-the-middle attacks.

The GeoIP processor included a custom SSL implementation that completely bypassed certificate validation when downloading GeoIP databases from external sources. The `initiateSSL()` method incorrectly implemented an approach for trusting all certificates. Specifically it:

* Accepted all SSL certificates without validation
* Disabled server certificate verification
* Disabled client certificate verification
* Disabled hostname verification

This configuration made database downloads vulnerable to man-in-the-middle attacks, potentially allowing attackers to serve malicious GeoIP databases that could compromise the integrity of geolocation data processing.

### Patches

Data Prepper 2.12.2 contains a fix for this issue.

### Workarounds

If upgrading is not immediately possible:

* Use local GeoIP database files instead of downloading from HTTP URLs
* Ensure database downloads occur only over trusted networks

## Which versions are affected by GHSA-3xgr-h5hq-7299?

2 open source packages ship an affected version, including org.opensearch.dataprepper.plugins:geoip-processor.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.opensearch.dataprepper.plugins:geoip-processor` | Maven | From 2.7.0 | 2.12.2 |
| `org.opensearch.dataprepper.plugins:geoip-processor` | Maven | From 2.7.0 | 2.12.2 |

## How do I fix GHSA-3xgr-h5hq-7299?

Upgrade org.opensearch.dataprepper.plugins:geoip-processor to 2.12.2 or later.

## Is GHSA-3xgr-h5hq-7299 being exploited?

There is no known exploitation of GHSA-3xgr-h5hq-7299 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-3xgr-h5hq-7299 and fix it if it is affected.

What it is: GHSA-3xgr-h5hq-7299 is a vulnerability in org.opensearch.dataprepper.plugins:geoip-processor, published on 15 Oct 2025. 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-3xgr-h5hq-7299 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.opensearch.dataprepper.plugins:geoip-processor (Maven): affected from 2.7.0; fixed in 2.12.2
- org.opensearch.dataprepper.plugins:geoip-processor (Maven): affected from 2.7.0; fixed in 2.12.2

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-3xgr-h5hq-7299/ (Markdown: https://insights.sbomify.com/GHSA-3xgr-h5hq-7299/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-3xgr-h5hq-7299

---
From sbomify Insights: https://insights.sbomify.com/GHSA-3xgr-h5hq-7299/
Summaries are generated and may contain mistakes; the official description above is the record.
