Generation of Predictable Numbers or Identifiers Affecting com.typesafe.akka:akka-discovery_2.12 package, versions [,2.8.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.14% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMTYPESAFEAKKA-5518123
  • published11 May 2023
  • disclosed11 May 2023
  • creditUnknown

Introduced: 11 May 2023

CVE-2023-31442  (opens in a new tab)
CWE-340  (opens in a new tab)

How to fix?

Upgrade com.typesafe.akka:akka-discovery_2.12 to version 2.8.1 or higher.

Overview

com.typesafe.akka:akka-discovery_2.12 is a toolkit for building highly concurrent, distributed, and resilient message-driven applications for Java and Scala.

Affected versions of this package are vulnerable to Generation of Predictable Numbers or Identifiers in the async-dns resolver component, which is used by Discovery in DNS mode and transitively by Cluster Bootstrap. It uses predictable DNS transaction IDs when resolving DNS records, making DNS resolution subject to poisoning by an attacker. If the application performing discovery does not validate (e.g., via TLS) the authenticity of the discovered service, this may result in exfiltration of application data (e.g., persistence events may be published to an unintended Kafka broker). If such validation is performed, then the poisoning constitutes a denial of access to the intended service.

The complexity of a successful attack using this vulnerability is high because the attacker must gather or guess details about the services accessible via the affected DNS server.

CVSS Scores

version 3.1