Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials or chain GHSA-78x5-c8gw-8279
-
DeliveryReach Twig-rendering surface (email template or string_render)
-
ExploitInject Twig expression accessing DI container
-
ExecutionTrigger render via test email or API call
-
PersistExecute arbitrary code as web user
-
ImpactExfiltrate billing data and pivot
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Requires authenticated access to a FOSSBilling administrator account (or another principal able to reach the string_render API endpoint and template-rendering features such as email templates, mass-mail campaigns, or custom payment adapters). Limiting factors: the target must be running FOSSBilling below 0.8.0 with the default unsandboxed Twig configuration, and the attacker must reach an administrative template-edit surface - either by holding legitimate admin credentials, or by chaining the separate auth-bypass advisory GHSA-78x5-c8gw-8279 to reach /api/system/* without authentication. UI:N applies because once the payload is stored, rendering is triggered server-side without victim interaction. |
| Impact | The CVSS 4.0 base score of 9.4 (AV:N/AC:L/AT:N/PR:H/UI:N, VC/VI/VA:H, SC/SI/SA:H) accurately reflects that an admin-level attacker achieves both vulnerable-system and subsequent-system compromise, but the PR:H requirement is the dominant limiting factor - this is not a drive-by issue. Exploitation status is no public exploit identified at time of analysis, and the CVE is not in CISA KEV; EPSS data was not provided. The real-world risk rises sharply when chained with the companion advisory GHSA-78x5-c8gw-8279 (referenced by VulnCheck) which reportedly enables auth bypass against /api/system/*, effectively reducing PR:H to PR:N for unpatched deployments - defenders should treat the pair as a single critical exposure rather than weighing this CVE in isolation. |
| Exploit ScenarioDerived | An attacker who has obtained admin credentials (via phishing, password reuse, or by chaining the related auth-bypass advisory GHSA-78x5-c8gw-8279 against /api/system/*) edits an email template or posts to the string_render API endpoint with a Twig payload that walks from the rendering context into the dependency injection container, retrieves a service capable of executing shell commands or reading arbitrary files, and triggers rendering by sending a test email or invoking the endpoint. The payload runs in the web server's user context, yielding RCE and full database access. No public PoC is referenced in the input data, though VulnCheck's writeup describes the chain conceptually. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 23, 2026
Server-side template injection in FOSSBilling versions prior to 0.8.0 allows authenticated administrators to execute arbitrary code and disclose sensitive information by injecting Twig expressions into template-rendering features. The unsandboxed Twig environment exposes the application's dependency injection container, turning any admin-accessible template surface into a full RCE primitive. No public exploit identified at time of analysis, but a related auth-bypass chain (GHSA-78x5-c8gw-8279) is documented by VulnCheck and could lower the practical privilege bar.
RemediationAI
Vendor-released patch: upgrade FOSSBilling to 0.8.0 or later per advisory GHSA-57mv-jm88-66jc (https://github.com/FOSSBilling/FOSSBilling/security/advisories/GHSA-57mv-jm88-66jc). If immediate upgrade is not possible, audit all stored email templates, mass-mail campaign bodies, and custom payment adapter templates for unexpected Twig expressions such as {{ ... }} blocks referencing _self, app, or container services, then rotate every admin and client API token to invalidate credentials potentially harvested by prior abuse. To prevent chaining with the auth-bypass issue tracked as GHSA-78x5-c8gw-8279, block external access to /api/system/* at the reverse proxy or WAF - note the trade-off that this will also break any legitimate integrations that rely on the system API surface, so allowlist trusted internal IPs rather than dropping the rule entirely if such integrations exist.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FOSSBilling is a PHP-based open-source billing and client management platform that uses the Twig templating engine to render email templates, mass-mail campaigns, custom payment adapters, and content passed to the string_render API endpoint. CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) applies here because Twig is invoked without the sandbox extension, so rendered templates have unrestricted access to the full Twig environment, the API context, and the Symfony-style dependency injection container - including service objects that wrap filesystem, database, and shell-adjacent functionality. The affected CPE is cpe:2.3:a:fossbilling:fossbilling:*:*:*:*:*:*:*:* covering all versions before 0.8.0.
Know when Fossbilling gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Network-reachable admin endpoints (AV:N/AC:L), administrator role required (PR:H), no user interaction, and template engine breakout impacts other components (S:C) with full CIA loss.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Executive ViewAI
A critical vulnerability in FOSSBilling versions prior to 0.8.0 enables authenticated administrators to execute arbitrary code within the billing system infrastructure; no public exploit identified at time of analysis. The unsandboxed Twig template engine exposes the full application context to any admin user, transforming template access into a complete system compromise vector. A documented authentication bypass chain (GHSA-78x5-c8gw-8279) potentially enables non-admin attackers to reach this vulnerability, elevating organizational risk despite the absence of an available patch.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict FOSSBilling administrator privileges to minimum necessary personnel and enforce multi-factor authentication; (2) Implement network segmentation isolating the billing system from corporate infrastructure; (3) Deploy comprehensive logging and real-time alerting on administrator activities, particularly template modifications; (4) Operationally disable template-editing features if business requirements permit; (5) Establish rapid-response process for immediate deployment of FOSSBilling 0.8.0 upon vendor release; (6) Monitor GHSA-78x5-c8gw-8279 for indicators of the related authentication bypass being actively exploited.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Fossbilling
View allAuthorization bypass in FOSSBilling versions 0.5.4 through 0.7.x allows unauthenticated remote attackers to invoke privi
SQL Injection in GitHub repository fossbilling/fossbilling prior to 0.5.3. Rated critical severity (CVSS 9.8), this vuln
Unrestricted Upload of File with Dangerous Type in GitHub repository fossbilling/fossbilling prior to 0.5.3. Rated high
Missing Authorization in GitHub repository fossbilling/fossbilling prior to 0.5.0. Rated high severity (CVSS 7.5), this
Code Injection in GitHub repository fossbilling/fossbilling prior to 0.5.1. Rated high severity (CVSS 7.2), this vulnera
Business Logic Errors in GitHub repository fossbilling/fossbilling prior to 0.5.0. Rated medium severity (CVSS 6.5), thi
Cross-site Scripting (XSS) - Reflected in GitHub repository fossbilling/fossbilling prior to 0.5.4. Rated medium severit
Insufficient Session Expiration in GitHub repository fossbilling/fossbilling prior to 0.5.5. Rated critical severity (CV
Business Logic Errors in GitHub repository fossbilling/fossbilling prior to 0.5.0. Rated medium severity (CVSS 5.7), thi
Insufficient Granularity of Access Control in GitHub repository fossbilling/fossbilling prior to 0.5.0. Rated medium sev
Session Fixation in GitHub repository fossbilling/fossbilling prior to 0.5.1. Rated medium severity (CVSS 5.4), this vul
Unauthenticated payment bypass in FOSSBilling 0.6.0 through 0.7.2 lets a remote attacker mark any unpaid invoice as paid
EUVD-2026-38455
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB