GHSA-3xgr-h5hq-7299

Suggest an improvement
Source
https://github.com/advisories/GHSA-3xgr-h5hq-7299
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-3xgr-h5hq-7299/GHSA-3xgr-h5hq-7299.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3xgr-h5hq-7299
Published
2025-10-15T20:40:10Z
Modified
2025-10-16T08:10:43Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
GeoIP processor disables SSL certificate validation when downloading databases
Details

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
Database specific
{
    "cwe_ids":  [
        "CWE-295"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-10-15T20:40:10Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

Maven / org.opensearch.dataprepper.plugins:geoip-processor

Package

Name
org.opensearch.dataprepper.plugins:geoip-processor
View open source insights on deps.dev
Purl
pkg:maven/org.opensearch.dataprepper.plugins/geoip-processor

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.7.0
Fixed
2.12.2

Affected versions

2.*
2.12.0
2.12.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-3xgr-h5hq-7299/GHSA-3xgr-h5hq-7299.json"