Intermesh GroupOffice
GroupOffice Vulnerable to RCE in TemplateParser eval() via Contact/labels
Group-Office is an enterprise customer relationship management and groupware tool. Prior to versions 6.8.167, 25.0.102, and 26.0.27, the Contact/labels JMAP endpoint in GroupOffice accepts a fully attacker-controlled template string (tpl parameter) that is passed without restriction to TemplateParser::parse(). When the template contains an [assign] block whose expression includes a {{...}} variable reference, the engine calls eval() on the expanded expression after running it through a validateExpression() guard. The guard double-quotes unrecognized tokens, but PHP 7+ allows a string enclosed in parentheses to be invoked as a function ("system")("id") is valid PHP and calls system("id"). A single authenticated HTTP request is sufficient to execute arbitrary OS commands as the web server user (www-data). This issue has been patched in versions 6.8.167, 25.0.102, and 26.0.27.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 6.8.167
- < 25.0.102
- < 26.0.27
Fixed in 6.8.167, 25.0.102, 26.0.27
Mitigation
Upgrade groupoffice to 6.8.167 or 25.0.102 or 26.0.27 or later.
References
- Vendor advisory github.com/Intermesh/groupoffice/security/advi…
- Release notes github.com/Intermesh/groupoffice/releases/tag/…
- Release notes github.com/Intermesh/groupoffice/releases/tag/…
1 more
- Release notes github.com/Intermesh/groupoffice/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.