FOSSBilling
FOSSBilling: Server-side template injection in Twig template rendering enables information disclosure and RCE
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.8.0
Fixed in 0.8.0
Mitigation
Upgrade FOSSBilling to 0.8.0 or later.
References
- Vendor advisory github.com/FOSSBilling/FOSSBilling/security/ad…
- Vendor advisory github.com/FOSSBilling/FOSSBilling/security/ad…
Timeline
Days relative to CVE publicationFirst public PoC 7 h before publication; not in CISA KEV. First PoC: nuclei template: FOSSBilling - Server-Side Template Injection (nuclei template, 23 Jun 2026).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| rootdirective-sec/CVE-2026-28496-Lab | 29 Jun 2026 +6 d | 1 | PoC |
| ivanesk315/CVE-2026-28496 | 10 Sep 2026 +79 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: FOSSBilling - Server-Side Template Injection | 23 Jun 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /api/system/system/string_render
- Key headers
Cookie: XDEBUG_TRIGGER=VSCODE- Body markers
"_tpl":"test""_tpl""_tpl":"{{ 7*7 }}"inapplication/json- Ports
- 8081, 8082
- PoC User-Agent
cve-debug-trigger- Seen in
- 2 repos: ivanesk315/CVE-2026-28496, rootdirective-sec/CVE-2026-28496-Lab
- Evidence
- ivanesk315/CVE-2026-28496/CVE-2026-27604-28496.md:255 ivanesk315/CVE-2026-28496/CVE-2026-27604-28496.md:275 ivanesk315/CVE-2026-28496/CVE-2026-27604-28496.md:291 ivanesk315/CVE-2026-28496/CVE-2026-27604-28496.md:307 ivanesk315/CVE-2026-28496/README.md:441 ivanesk315/CVE-2026-28496/README.md:458
POST /api/admin/system/string_render
- Body markers
"_tpl"inapplication/json- Ports
- 8081
- Seen in
- 1 repo: ivanesk315/CVE-2026-28496
- Evidence
- ivanesk315/CVE-2026-28496/CVE-2026-27604-28496.md:239
POST /api/guest/system/string_render
- Body markers
"_tpl"inapplication/json- Ports
- 8081
- Seen in
- 1 repo: ivanesk315/CVE-2026-28496
- Evidence
- ivanesk315/CVE-2026-28496/CVE-2026-27604-28496.md:223 ivanesk315/CVE-2026-28496/README.md:432 ivanesk315/CVE-2026-28496/README.md:561
POST /
- Body markers
"_tpl":"{{ 7*7 }}"inapplication/json- Ports
- 8081, 8082, 8401, 8402
- Seen in
- 1 repo: rootdirective-sec/CVE-2026-28496-Lab
- Evidence
- rootdirective-sec/CVE-2026-28496-Lab/scripts/auto-install.sh:33 rootdirective-sec/CVE-2026-28496-Lab/scripts/auto-install.sh:68
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/system/system/string_render(?:[?#].*)?$
(?i)^/api/admin/system/string_render(?:[?#].*)?$
(?i)^/api/guest/system/string_render(?:[?#].*)?$
(?i)^/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8081,8082] (msg:"GG PoC-Monitor CVE-2026-28496 FOSSBilling FOSSBilling exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/system/system/string_render"; http.header; content:"Cookie: XDEBUG_TRIGGER=VSCODE"; nocase; http.request_body; content:"|22|_tpl|22|:|22|test|22|"; http.request_body; content:"|22|_tpl|22|"; http.request_body; content:"|22|_tpl|22|:|22|{{ 7*7 }}|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28496; classtype:web-application-attack; sid:9151392; rev:1;)
alert http any any -> $HOME_NET [8081] (msg:"GG PoC-Monitor CVE-2026-28496 FOSSBilling FOSSBilling exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/admin/system/string_render"; http.request_body; content:"|22|_tpl|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28496; classtype:web-application-attack; sid:9065682; rev:1;)
alert http any any -> $HOME_NET [8081] (msg:"GG PoC-Monitor CVE-2026-28496 FOSSBilling FOSSBilling exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/guest/system/string_render"; http.request_body; content:"|22|_tpl|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28496; classtype:web-application-attack; sid:9244891; rev:1;)
alert http any any -> $HOME_NET [8081,8082,8401,8402] (msg:"GG PoC-Monitor CVE-2026-28496 FOSSBilling FOSSBilling exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:"|22|_tpl|22|:|22|{{ 7*7 }}|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28496; classtype:web-application-attack; sid:9129067; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: FOSSBilling FOSSBilling exploit attempt (CVE-2026-28496)
id: gg-pocmon-cve-2026-28496-9151392
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28496. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28496
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/system/system/string_render'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28496
title: FOSSBilling FOSSBilling exploit attempt (CVE-2026-28496)
id: gg-pocmon-cve-2026-28496-9065682
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28496. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28496
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/admin/system/string_render'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28496
title: FOSSBilling FOSSBilling exploit attempt (CVE-2026-28496)
id: gg-pocmon-cve-2026-28496-9244891
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28496. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28496
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/guest/system/string_render'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28496
title: FOSSBilling FOSSBilling exploit attempt (CVE-2026-28496)
id: gg-pocmon-cve-2026-28496-9129067
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28496. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28496
logsource:
category: webserver
detection:
selection:
cs-method: POST
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28496