FOSSBilling: Server-side template injection in Twig template rendering enables information disclosure and RCE
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-1336.
Summary
FOSSBilling is a free, open-source billing and client management system. Versions prior to 0.8.0 have a Server-Side Template Injection (SSTI) vulnerability in the template rendering system. Administrators with access to features that render Twig templates (email templates, mass mail campaigns, custom payment adapters, and the `string_render` API endpoint) can inject arbitrary Twig expressions, leading to information disclosure and remote code execution. The vulnerability exists because Twig templates are rendered without a sandbox, allowing access to the full Twig environment, API context, and the application's dependency injection container. Version 0.8.0 patches the issue. Some workarounds are available. Audit existing email templates for suspicious Twig expressions, rotate all admin and client API tokens, and/or block external access to /api/system/* at reverse proxy/WAF to mitigate chaining with GHSA-78x5-c8gw-8279.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FOSSBilling | FOSSBilling | before 0.8.0 | 0.8.0 | Patch available | CNA |
- FOSSBilling VendorFOSSBilling Affected before 0.8.0 Fixed in 0.8.0 Patch available CNA
Remediation
- Fix · CNA FOSSBilling (FOSSBilling) Fixed in 0.8.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-28496
References
More FOSSBilling vulnerabilities
- TI-2023-03258 SQL Injection in fossbilling/fossbilling CVSS 3.1CRITICAL 9.8
- TI-2023-03719 Insufficient Session Expiration in fossbilling/fossbilling CVSS 3.1CRITICAL 9.8
- TI-2023-03259 Unrestricted Upload of File with Dangerous Type in fossbilling/fossbilling CVSS 3.1HIGH 8.8
- TI-2023-03261 Improper Neutralization of Formula Elements in a CSV File in fossbilling/fossbilling CVSS 3.1HIGH 8.0
- TI-2026-30636 FOSSBilling missing authorization in guest Invoice API endpoints CVSS 4.0HIGH 7.7
- TI-2023-03173 Code Injection in fossbilling/fossbilling CVSS 3.1HIGH 7.2
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences