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

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-07-06T20:51:48.000Z
- Modified: 2026-06-17T06:20:16.213Z
- Also known as: GHSA-g96c-x7rh-99r3
- Weaknesses: CWE-345
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Graylog2 graylog2-server: < 5.0.9; >= 5.1.0, < 5.1.3
- org.graylog2:graylog2-server (Maven): from 5.1.0 before 5.1.3; before 5.0.9
- graylog graylog: before 5.0.9; from 5.1.0 before 5.1.3

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

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

## Sources

- CVE List: [CVE-2023-41045](https://www.cve.org/CVERecord?id=CVE-2023-41045), CVE Terms of Use, modified 2024-10-01
- GitHub Advisory Database: [GHSA-g96c-x7rh-99r3](https://github.com/advisories/GHSA-g96c-x7rh-99r3), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-41045](https://nvd.nist.gov/vuln/detail/CVE-2023-41045), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-41045 · Whole record: https://cve.day/CVE-2023-41045.json · Rebuilt by cve.day 2026-11-25T22:58:27.484Z
