-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Advisory ID: SYSS-2026-088 Product: LimeSurvey Community Edition Manufacturer: LimeSurvey GmbH Affected Version(s): 7.0.14 (build 7.0.14+260904), 7.1.0 (build 7.1.0+260913), and 7.3.0 (build 7.3.0+260922); the affected code path is present in earlier releases and was not verified there Tested Version(s): 7.0.14 (build 7.0.14+260904), 7.1.0 (build 7.1.0+260913), 7.3.0 (build 7.3.0+260922) Vulnerability Type: Improper Neutralization of Special Elements Used in a Template Engine ('Server-Side Template Injection') (CWE-1336) leading to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22) and Files or Directories Accessible to External Parties (CWE-552) Risk Level: High Solution Status: Fixed Manufacturer Notification: 2026-09-30 Solution Date: 2026-10-01 Public Disclosure: 2026-10-30 CVE Reference: None (not yet assigned) Author of Advisory: Henry Weckermann, SySS GmbH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Overview LimeSurvey is a web application for creating and running online surveys. The manufacturer describes the product as follows (see [1]) "LimeSurvey is the simple, quick and anonymous online survey tool that's bursting with juicy insights. Calling students, professional researchers and enterprises: design a survey and get the best insights, it's free and as easy as squeezing a lime. Make a free online survey now!" LimeSurvey renders survey theme metadata through a sandboxed Twig template engine. The theme description field can contain Twig expressions and is rendered on the theme options page, which requires only the "templates" read permission. The Twig sandbox allowlists the function assetPublish(). This function forwards a fully attacker-controlled path to the method publish(), which copies any existing file or directory into the web-served tmp/assets/ directory and returns its public URL. A low-privileged survey creator can therefore read any file readable by the web server process. The copied file is then retrievable over HTTP without any authentication. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vulnerability Details The Twig sandbox exposes assetPublish as a callable function through the sandboxConfig.functions allowlist in: application/config/internal.php The implementation performs no path restriction: application/core/LS_Twig_Extension.php:286 public static function assetPublish($sRessource) { return App()->assetManager->publish($sRessource); } The attacker-controlled Twig is rendered on the server side when the theme options page is displayed: application/models/TemplateConfiguration.php:516 getDescription() -> twigRenderer->convertTwigToHtml($this->template->description) application/views/themeOptions/index.php:68 (output) The publish() method copies the target into a directory below the web root and returns its public URL, which then becomes an arbitrary file read, served statically and without authentication. A survey creator reaches theme installation with only the "templates" read permission, so no elevated role is required to place the malicious Twig expression. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Proof of Concept (PoC) The following was verified live against LimeSurvey 7.0.14, executed as the account "surveycreator" (templates read only). Step 1: Install a survey theme whose config.xml contains a Twig description that calls assetPublish() on a target path: Step 2: Trigger the server-side render (authenticated as surveycreator): GET /index.php/themeOptions -> X[/tmp/assets/5fe26a37/passwd] Step 3: Fetch the copied file with no session and no cookie: $ curl -s http://127.0.0.1:8080/tmp/assets/5fe26a37/passwd | head root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Solution - - Remove assetPublish from the Twig sandbox function allowlist and audit the related functions templateResourceUrl, image, and imageSrc for the same problem. If the function must remain, constrain its argument to paths inside the active theme or a designated public root: canonicalise with realpath() and verify the resolved path against the allowed prefix. - - Do not compile the theme description, or any database- or user-controlled string, through a sandbox that exposes filesystem helpers. Render such metadata as plaintext. - - Serve tmp/assets so that non-theme content types cannot be fetched and store PHP sessions outside any web-published copy path. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Disclosure Timeline 2026-09-30: Vulnerability reported to the manufacturer 2026-10-01: Patch released by manufacturer 2026-10-30: Public disclosure of vulnerability ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ References [1] Product website, LimeSurvey Community Edition https://www.limesurvey.org/ [2] SySS Security Advisory SYSS-2026-088 https://www.syss.de/fileadmin/dokumente/Publikationen/Advisories/SYSS-2026-088.txt [3] SySS GmbH, SySS Responsible Disclosure Policy https://www.syss.de/en/responsible-disclosure-policy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Credits This security vulnerability was found by Henry Weckermann of SySS GmbH. E-Mail: henry.weckermann (at) syss.de Public Key: https://www.syss.de/fileadmin/dokumente/PGPKeys/Henry_Weckermann.asc Key fingerprint = 716D DC05 47A5 08B5 F348 6ED6 7FB4 16F5 EDE2 6AF3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Disclaimer The information provided in this security advisory is provided "as is" and without warranty of any kind. Details of this security advisory may be updated in order to provide as accurate information as possible. The latest version of this security advisory is available on the SySS website. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright: Creative Commons - Attribution (by) - Version 4.0 URL: https://creativecommons.org/licenses/by/4.0/deed.en -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcW3cBUelCLXzSG7Wf7QW9e3iavMFAmrhxogACgkQf7QW9e3i avMIQxAAtj2183nZmJosIonmnYCUeeHy5OER7Unz5eYSjOfx35wX26MoOClQrgBv 5txLeIDLxo3zxz3Y9f5qJk6k3G9RglzxbKYI51H+zc4WvO4xtRcdpa9g0PjVJi4F skTVrQ2EnhH1gHZ/7U+jPFCs2i8LmfBUPGxzHQLSYWAXTGcJ4KYuf2xesk80RLB6 10xxZ5qOgSCn1xtGv8d836fXUzeDQplvMQwEnxXsrRVtyxmzYEpIszH6C2772H79 KUeZ7DHD1IVQ/5FC8RduuiTGX4pTmd4mEqAYueWHhkbpSPaP5Fqp9mP+wAKOS2mn V+EHkDg42m24F9nSQc/HjlQtkv+DEzTo+634e5bA+y4cVID/xlAgS2SKMhP+xEIK e7p1oJN8ZzYxNVWWXy+3X6YBDx0i1Kbt+Zq48YxEAUtFa93lkpekTIZwcZRPhgv9 H6txPqHwIPvFQKqA+lfgNj9ItDzxK129ObAM3iOZe8DEQXhClvXxqj75kk2SBQLW jwpYlA8eDVKt/nRtt5/1tX4kr6KwhY9JzRRlwppQCgGW0x4OxuFVpc9aTQjZaCwk ntjDBUXuCOt6fYaqRNHmUSbgmAvz5vwW/M2ycvBFpupdJMZh9S1uZZht9ydvjza5 E8GYeqnIgdvVvSnksucVh2Qp8erJ/1yb9tQSWrsJ1TlxDw6PSEU= =9p6u -----END PGP SIGNATURE-----