GHSA-rc6v-5rmx-w5mv

Suggest an improvement
Source
https://github.com/advisories/GHSA-rc6v-5rmx-w5mv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-rc6v-5rmx-w5mv/GHSA-rc6v-5rmx-w5mv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rc6v-5rmx-w5mv
Aliases
Published
2026-05-15T18:13:57Z
Modified
2026-06-25T23:11:49Z
Severity
  • 2.8 (Low) CVSS_V3 - CVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
arnika is affected by medium-severity issues in UDP rotation, PQC handling, and KMS TLS
Details

Summary

Three medium-severity issues in arnika affecting the UDP key-rotation protocol, PQC key file handling, and KMS TLS client. All require specific preconditions to exploit and do not allow direct code execution or immediate key extraction. A self-contained PoC is attached.

Details

  1. ACK timestamp not validated: udpserver.go:185 udpClient() verifies HMAC and packet type but never checks ackPkt.Timestamp. A MITM can capture one ACK, drop all subsequent DATA packets, and replay the stale ACK indefinitely. Primary advances PSK each rotation, backup stays on key 1, tunnel breaks. No PSK knowledge needed. The server side already has this check, the client does not. Fix: mirror the timestamp check already present on the server side.

  2. Empty PQC key file silently accepted: repositories/pqc.go:29 os.ReadFile follows symlinks. Empty file to base64.Decode("") = []byte{}, nil. HKDF runs on the QKD key alone while arnika logs [OK] HKDF derivation completed for QKD+PQC key. Requires write access to the directory containing PQC_PSK_FILE. Fix: validate decoded key is non-empty before derivation; enforce parent directory permissions in SECURITY.md.

  3. InsecureSkipVerify: true hardcoded: repositories/kms.go:61 KMS HTTP client unconditionally sets InsecureSkipVerify: true, overriding RootCAs. CA_CERTIFICATE is loaded but never consulted (dead code). Requires MITM between arnika and the KMS endpoint, which in typical deployments are co-located. Fix: remove the flag; RootCAs already holds the correct pool when CA_CERTIFICATE is configured.

PoC

See arnika_exploit.tar.gz. PoC shows observable behavior for each attack; the third one (KMS MITM) needs no custom code, any HTTPS proxy with a self-signed cert is enough.

Impact

Issues require network MITM or local directory write access to exploit. No direct key extraction or code execution. Primary impact is tunnel desync and silent security downgrade in hybrid QKD+PQC mode.

Database specific
{
    "cwe_ids": [
        "CWE-294",
        "CWE-295",
        "CWE-345"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-15T18:13:57Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

Go / github.com/arnika-project/arnika

Package

Name
github.com/arnika-project/arnika
View open source insights on deps.dev
Purl
pkg:golang/github.com/arnika-project/arnika

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.1

Database specific

last_known_affected_version_range
"<= 1.0.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-rc6v-5rmx-w5mv/GHSA-rc6v-5rmx-w5mv.json"