CVE-2026-43921: FOSSBilling vulnerable to arbitrary PHP code injection via unescaped config serialization

Published Jul 6, 2026
·
Updated

FOSSBilling is a free, open-source billing and client management system. Versions 0.6.10 through 0.7.2 have a PHP code injection vulnerability in FOSSBilling's Config::prettyPrintArrayToPHP() method. When configuration values are updated, string values are written into config.php without escaping single quotes. Because config.php is loaded via a bare include on every HTTP request, an attacker with admin privileges can inject arbitrary PHP code that executes on every subsequent request. Version 0.8.0 contains a patch. Some workarounds are available. Restrict admin access to trusted personnel only; audit config.php for unexpected PHP code; and/ or at the reverse proxy/WAF level, restrict access to admin API endpoints that modify configuration.

Affected Software

1 affected component
FOSSBilling>=0.6.10<=0.7.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FOSSBilling to a version that resolves this vulnerability.

    Fixed in 0.8.0
  2. Configuration

    Ensure FOSSBilling config.php writes updated configuration string values with proper escaping for single quotes to prevent arbitrary PHP code injection via unescaped config serialization (described for Config::prettyPrintArrayToPHP() in versions 0.6.10 through 0.7.2).

    FOSSBilling (config.php generation) escaping of string values when writing to config.php = escape/encode single quotes in string values before writing to config.php (instead of writing raw values)
  3. Compensating control

    Restrict access to FOSSBilling admin functionality/API endpoints that modify configuration to trusted personnel only.

  4. Compensating control

    At the reverse proxy/WAF level, restrict access to the FOSSBilling admin API endpoints that modify configuration.

  5. Operational

    Audit FOSSBilling config.php for unexpected/previously injected PHP code after applying the patch/upgrade.

Event History

Jul 6, 2026
CVE Published
via MITRE·09:38 PM
Data Sourced
via MITRE·09:38 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-43921?

The severity of CVE-2026-43921 is rated at risk level 60.

2

What type of vulnerability is CVE-2026-43921?

CVE-2026-43921 is a code injection vulnerability affecting FOSSBilling.

3

How do I fix CVE-2026-43921?

To fix CVE-2026-43921, you should upgrade FOSSBilling to a version later than 0.7.2.

4

Which versions of FOSSBilling are affected by CVE-2026-43921?

FOSSBilling versions 0.6.10 through 0.7.2 are affected by CVE-2026-43921.

5

What is the impact of exploiting CVE-2026-43921?

Exploiting CVE-2026-43921 allows an attacker to inject arbitrary PHP code into the configuration files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203