# CVE-2023-41045: Insecure source port usage for DNS queries in Graylog

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.7
- **CVSS:** 3.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-345
- **Aliases:** GHSA-g96c-x7rh-99r3
- **Published:** 2023-07-06T20:51:48.000Z
- **Modified:** 2026-06-17T06:20:16.213Z

## Who should check

- Projects that depend on Maven package org.graylog2:graylog2-server (\>= 5.1.0, \< 5.1.3)
- Anyone running graylog2-server \< 5.0.9; \>= 5.1.0, \< 5.1.3

## Description

Graylog is a free and open log management platform. Graylog makes use of only one single source port for DNS queries. Graylog binds a single socket for outgoing DNS queries and while that socket is bound to a random port number it is never changed again. This goes against recommended practice since 2008, when Dan Kaminsky discovered how easy is to carry out DNS cache poisoning attacks. In order to prevent cache poisoning with spoofed DNS responses, it is necessary to maximise the uncertainty in the choice of a source port for a DNS query. Although unlikely in many setups, an external attacker could inject forged DNS responses into a Graylog's lookup table cache. In order to prevent this, it is at least recommendable to distribute the DNS queries through a pool of distinct sockets, each of them with a random source port and renew them periodically. This issue has been addressed in versions 5.0.9 and 5.1.3. Users are advised to upgrade. There are no known workarounds for this issue.

## Affected and fixed versions

- Maven `org.graylog2:graylog2-server`: affected \>= 5.1.0, \< 5.1.3; fixed 5.1.3, 5.0.9 (osv)
- graylog2-server: \< 5.0.9; \>= 5.1.0, \< 5.1.3 (cvelist)

## Mitigation

- Upgrade org.graylog2:graylog2-server to one of 5.1.3, 5.0.9 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-41045. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-41045.md
Affected: org.graylog2:graylog2-server >= 5.1.0, < 5.1.3
Fixed in: 5.1.3, 5.0.9

Steps:
1. Search this machine and project for org.graylog2:graylog2-server (Maven), graylog2-server: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-41045 being exploited?

There is no confirmed exploitation: CVE-2023-41045 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-41045?

Low: CVSS 3.7 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-41045?

org.graylog2:graylog2-server \>= 5.1.0, \< 5.1.3.

### Is there a fix for CVE-2023-41045?

Yes. Fixed in 5.1.3, 5.0.9. Upgrade org.graylog2:graylog2-server to one of 5.1.3, 5.0.9 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-41045?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Graylog2/graylog2-server/security/advisories/GHSA-g96c-x7rh-99r3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-41045>
- patch: <https://github.com/Graylog2/graylog2-server/commit/466af814523cffae9fbc7e77bab7472988f03c3e>
- patch: <https://github.com/Graylog2/graylog2-server/commit/a101f4f12180fd3dfa7d3345188a099877a3c327>
- other: <https://github.com/Graylog2/graylog2-server>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-41045>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g96c-x7rh-99r3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-41045> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-41045>
