CVE-2026-137474 in SiYuaninfo

Summary

by MITRE • 11/26/2026

SiYuan 3.8.8 before 3.8.10 contains an incorrect permission assignment vulnerability that creates workspace directories with mode 0755 and conf.json with mode 0644, exposing the cleartext AccessAuthCode administrator credential. Local users able to traverse the SiYuan user's home path can read it and authenticate as administrator via Basic authentication, for example calling /api/system/setAPIToken to change the API token.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in SiYuan versions prior to 3.8.10 represents a critical failure in access control mechanisms during the initialization of workspace directories and configuration files. This flaw is classified under CWE-732, which pertains to incorrect permission assignment for security-critical resources. The root cause lies in the application's file system operations, where it creates essential components with overly permissive default modes. Specifically, the workspace directory is created with mode 0755 and the configuration file named conf.json is set to mode 0644. These permissions allow any user on the local operating system who has read access to the parent directories or can traverse the SiYuan user's home path to inspect the contents of these files without restriction.

The operational impact of this misconfiguration is severe due to the sensitive nature of the data stored within conf.json. This file contains cleartext administrator credentials, specifically the AccessAuthCode required for administrative operations. Because the permissions do not restrict access to only the owner or specific privileged groups, any local user with basic filesystem traversal capabilities can read these files. Once an attacker obtains the AccessAuthCode from the configuration file, they gain the ability to authenticate as the system administrator using Basic authentication mechanisms. This effectively bypasses intended security boundaries by leveraging weak operating system-level permissions rather than exploiting a complex software logic flaw.

The exploitation path allows for significant lateral movement and privilege escalation within the context of the SiYuan application. An attacker who has read access to the configuration file can invoke API endpoints such as /api/system/setAPIToken using the stolen administrator credentials. This action enables the modification of the API token, granting persistent administrative control over the instance. Such unauthorized changes could lead to further compromise, including data exfiltration, manipulation of workspace content, or use of the compromised system for additional malicious activities. The vulnerability aligns with ATT&CK technique T1078, Valid Accounts, as it involves the misuse of legitimate credentials obtained through improper file permissions rather than credential theft via malware or phishing.

Mitigation strategies must address both the immediate configuration issue and broader security hygiene practices. Users running SiYuan versions 3.8.8 through 3.8.9 should upgrade immediately to version 3.8.10 or later, where this permission assignment error has been corrected by the developers. For environments that cannot be upgraded instantly, manual remediation is required. Administrators must manually adjust the file permissions of conf.json and related workspace directories to restrict access strictly to the owner, typically using mode 0600 for files containing sensitive data like credentials. Additionally, implementing mandatory access control systems such as SELinux or AppArmor can provide an additional layer of defense by enforcing stricter file access policies regardless of standard Unix permission bits. Regular auditing of configuration file permissions across all application directories is recommended to prevent similar misconfigurations in other software components.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!