Skip to content

Incorrect Check of Function Return Value in Skytable

Critical
ohsayan published GHSA-q27r-h25m-hcc7 Aug 5, 2021

Package

Skytable

Affected versions

0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.5.0, 0.5.1, 0.5.2, 0.6.0, 0.6.1, 0.6.2, 0.6.3

Patched versions

0.6.4

Description

Impact

Incorrect check of return value of the accept function in the run-loop for a TCP socket/TLS socket/TCP+TLS multi-socket causes an early exit from the run loop that should continue infinitely unless terminated by a local user, effectively causing the whole database server to shut down. This has severe impact and can be used to easily cause DoS attacks without the need to use much bandwidth. The attack vectors include:

  • Using an incomplete TLS connection for example by not providing the certificate for the connection
  • Using a specially crafted TCP packet that triggers the application layer backoff algorithm

Patches

Hotfix released at: https://dl.skytable.io/security/v0.6.4 and announced through social channels. Public patch not disclosed yet.

Workarounds

None.

References

VE/S/00002

For more information

If you have any questions or comments about this advisory:

Severity

Critical

CVE ID

CVE-2021-37625

Weaknesses

Credits