# CVE-2019-7612: Information disclosure in Logstash

> Attackers can view sensitive credentials in logs if malformed URLs are used in Logstash configuration, requiring an upgrade to fix.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 25 Mar 2019
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-76jg-hr4p-qmfv

## What is CVE-2019-7612?

CVE-2019-7612 is a critical vulnerability in Elastic Logstash, published on 25 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A sensitive data disclosure flaw was found in the way Logstash versions before 5.6.15 and 6.6.1 logs malformed URLs. If a malformed URL is specified as part of the Logstash configuration, the credentials for the URL could be inadvertently logged as part of the error message.

Weakness: CWE-532 (Insertion of Sensitive Information into Log File), CWE-209 (Generation of Error Message Containing Sensitive Information)

## Which versions are affected by CVE-2019-7612?

It affects 2 products.


Products: Elastic Logstash, Netapp Active Iq Performance Analytics Services.

## How do I fix CVE-2019-7612?

No fix has been published for CVE-2019-7612 yet. Limit exposure of the affected software until one is available.

## Is CVE-2019-7612 being exploited?

There is no known exploitation of CVE-2019-7612 in the wild and no public exploit code.

## Other vulnerabilities in Elastic Logstash

- [CVE-2023-46672](https://insights.sbomify.com/CVE-2023-46672/): Logstash Insertion of Sensitive Information into Log File (high 8.4)
- [CVE-2026-33466](https://insights.sbomify.com/CVE-2026-33466/): Improper Limitation of a Pathname to a Restricted Directory in Logstash Leading to Arbitrary File Write (high 8.1)
- [CVE-2019-7620](https://insights.sbomify.com/CVE-2019-7620/): Denial of service in Logstash (high 7.5)
- [CVE-2015-5378](https://insights.sbomify.com/CVE-2015-5378/): Information disclosure in n/a (high 7.5)
- [CVE-2016-1000221](https://insights.sbomify.com/CVE-2016-1000221/): Logstash Logs Sensitive Information (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-7612 and fix it if it is affected.

What it is: CVE-2019-7612 is a critical vulnerability in Elastic Logstash, published on 25 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2019-7612 in the wild and no public exploit code.

Affected product: Elastic Logstash. No package-level version data is available, so check the vendor advisory linked from the reference page.

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/CVE-2019-7612/ (Markdown: https://insights.sbomify.com/CVE-2019-7612/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2019-7612
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2019-7612
- OSV: https://osv.dev/vulnerability/CVE-2019-7612

---
From sbomify Insights: https://insights.sbomify.com/CVE-2019-7612/
Summaries are generated and may contain mistakes; the official description above is the record.
