Junglewise Threat Intelligence

Trapster Community uncontrolled recursion in DNS label decoding

Severity: medium · CVSS 5.3 · Published 2026-07-08

Vendors: PyPI.

Executive brief

Trapster Community is a honeypot tool used to detect and log malicious network activity. A vulnerability in its DNS handling component allows an unauthenticated attacker to crash the DNS honeypot service by sending a single specially crafted network packet. This can lead to a denial of service, preventing the honeypot from monitoring or logging further DNS-based attacks.

Technical details

The `decode_labels` function in `trapster/libs/dns.py` fails to implement cycle detection or depth bounds when processing RFC 1035 DNS compression pointers. An attacker can send a UDP packet containing self-referential or deeply chained compression pointers to trigger a `RecursionError` in CPython. Because this exception is not caught within the `datagram_received` path, it propagates to the asyncio event loop, aborting the packet-handling task and causing sustained CPU consumption and log flooding. This vulnerability affects versions up to 1.2.0.

Affected products

  • 0xBallpoint trapster <= 1.2.0

Timeline

  • 2026-06-01: advisory: GitHub Advisory published
  • 2026-07-08: disclosed: Vulnerability disclosed by researcher

References