Insecure Randomness Affecting smuellerDD/libkcapi package, versions [,1.5.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (15th 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 Learn

Learn about Insecure Randomness vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-SMUELLERDDLIBKCAPI-18600605
  • published9 Aug 2026
  • disclosed5 Aug 2026
  • creditUnknown

Introduced: 5 Aug 2026

NewCVE-2026-71225  (opens in a new tab)
CWE-330  (opens in a new tab)

How to fix?

Upgrade smuellerDD/libkcapi to version 1.5.1 or higher.

Overview

Affected versions of this package are vulnerable to Insecure Randomness in the one-shot symmetric cipher process when handling large inputs exceeding 64 KiB in stateful modes. An attacker can compromise data confidentiality and potentially affect data integrity by submitting specially crafted large inputs that trigger improper reuse of the Initialization Vector (IV) across internal data chunks.

Workaround

This vulnerability can be mitigated by avoiding the one-shot symmetric cipher APIs for inputs exceeding 64 KiB when continuous-message semantics are critical. Instead, use the streaming interface for large messages, or ensure one-shot inputs remain below the internal chunking threshold to guarantee consistent IV application.

CVSS Base Scores

version 3.1