Vulnerability · Published Aug 31, 2023 · Assigned by GitHub_M
CVE-2023-41045Insecure source port usage for DNS queries in Graylog
Low 3.7
In plain English
A low-severity insufficient verification of data authenticity in graylog2-server from Graylog2. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.graylog2:graylog2-server | 5.1.3 | GHSA-g96c-x7rh-99r3 |
| Maven | org.graylog2:graylog2-server | 5.0.9 | GHSA-g96c-x7rh-99r3 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Graylog2 | graylog2-server | < 5.0.9>= 5.1.0, < 5.1.3 |
Weakness: CWE-345 · Vector: CVSS:3.1/AV:N/AC:H/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 x_refsource_CONFIRM
- https://github.com/Graylog2/graylog2-server/commit/466af814523cffae9fbc7e77bab7472988f03c3e x_refsource_MISC
- https://github.com/Graylog2/graylog2-server/commit/a101f4f12180fd3dfa7d3345188a099877a3c327 x_refsource_MISC