Raw vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2025-68948 is a medium-severity Use of Hard-coded Cryptographic Key (CWE-321) vulnerability in B3Log Siyuan. Its CVSS base score is 6.9 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Remote Services (T1021); ranked at the 13th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified map to IA-5 (Authenticator Management) and SC-12 (Cryptographic Key Establishment and Management) — see the control section below for these in your framework.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-205463
Vulnerability Data
SiYuan is self-hosted, open source personal knowledge management software. In versions 3.5.1 and prior, the SiYuan Note application utilizes a hardcoded cryptographic secret for its session store. This unsafe practice renders the session encryption ineffective. Since the sensitive AccessAuthCode is…
more
stored within the session cookie, an attacker who intercepts or obtains a user's encrypted session cookie (e.g., via session hijacking) can locally decrypt it using the public key. Once decrypted, the attacker can retrieve the AccessAuthCode in plain text and use it to authenticate or take over the session.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Requiring cryptographic keys to be established and managed according to defined requirements prevents developers from embedding static unchangeable keys.
Authenticator management requires secure distribution and handling of credentials, structurally discouraging hard-coded values.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure-SDLC activities such as code review and secret scanning directly prevent embedding static keys.
PR.AA-01's credential/key-management processes can reduce the incentive to embed secrets but do not address or detect hard-coded values in source code, so the weakness remains fully possible.
Data-at-rest protection policies require proper key management and therefore discourage hard-coded keys.
Data-in-transit protection similarly depends on non-hard-coded keys for encryption.
Configuration baselines and reviews can prohibit hard-coded keys in deployed artifacts.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
A.8.24's key management section explicitly mandates proper key generation, storage, distribution, and lifecycle processes — the antithesis of hard-coding keys into products — so a well-implemented cryptography policy prevents hard-coded keys in anything the organization designs or builds; the bounded remainder is third-party, COTS, and legacy components that arrive with keys already embedded, mirroring the CWE-328 anchor.
A.8.29's SOURCE + RUNTIME reach finds hard-coded cryptographic keys in first-party source via SAST, code review, and penetration testing — the same mechanism that graded A.8.29 finds CWE-798 = mostly; the bounded remainder is keys assembled at build time, baked into images as configuration, or shipped inside binary-only third-party components.
A.5.22 monitors supplier compliance and service changes against agreements, not the source code or deployed binaries of supplier products, so it does not discover hard-coded credentials latent in those products.
Awareness and training educates personnel about security responsibilities but does not prevent a developer from embedding a hard-coded key in source code or a product from shipping with one.
A.8.28 explicitly prohibits hard-coded passwords as an example of insecure design techniques and mandates secure coding standards that would cover hard-coded cryptographic keys, but as a practice-based control it is fallible and depends on developer compliance, with the strongest detection coming from A.8.29 security testing.
A.8.30 carries its effect through the secure-coding practices (A.8.28) its contract requires of the supplier, which reduces hard-coded credentials in delivered code the way those practices do; the clause depends on the supplier actually implementing secure coding, and secure coding is a fallible practice, so a minority of instances are prevented.