Loading advisory.
Loading advisory.
Graylog vulnerable to insecure source port usage for DNS queries
Graylog utilises only one single source port for DNS queries.
Published 2023-07-06 20:51 UTC · Modified 2024-10-01 16:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| org.graylog2:graylog2-server | Maven | >= 5.1.0, < 5.1.3 < 5.0.9 versions 5.1.0, 5.1.1, 5.1.2, 0.20.0-rc.1-1, 0.21.0-beta2, 0.21.0-beta3, 0.21.0-beta4, 0.21.0-rc.1, 0.90.0, 0.90.1, 0.90.3, 0.91.0-rc.1, 0.91.1, 0.91.3, 0.92.0, 0.92.0-beta.1, 0.92.0-rc.1, 0.92.1, 0.92.1-rc.1, 0.92.2 and 234 more | 5.1.3, 5.0.9 | No single command for Maven. Update to 5.1.3, 5.0.9 in your build file. |
Graylog utilises only one single source port for DNS queries.
Graylog seems to bind a single socket for outgoing DNS queries. That socket is bound to a random port number which is not 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.
The attached figure shows the source ports distribution difference between Graylog configured to use a data adapter based on DNS queries and ISC Bind. The source port distribution of the DNS queries sent from Graylog to a recursive DNS name server running Bind (CLIENT_QUERY) are depicted in purple, while the queries sent from the recursive DNS server to the authoritatives (RESOLVER_QUERY) are plotted in green color. As it can be observed, in contrast to ISC Bind which presents a heterogeneous usage of source port, Graylog utilises a single source port.
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.
(Credit to Iratxe Niño from Fundación Sarenet and Borja Marcos from Sarenet)
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.004 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.003 | 0.004 | v2026.06.15 |
| 2026-11-30 | 0.004 | 0.003 | v2026.06.15 |