All vulnerabilities

Servers and applications

CVE-2026-41229

PHP Code Injection via Unescaped Single Quotes in userdata.inc.php Generation (MysqlServer API)

Severity
Critical 9.1
Published
15 Apr 2026
Last changed
11 Nov 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.3.6
Exploit chance
0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Code injection (CWE-94)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Also known as
GHSA-gc9w-cc93-rjv8
Sources
NVD, Project advisories (GitHub)

Description

PhpHelper::parseArrayToString() writes string values into single-quoted PHP string literals without escaping single quotes. When an admin with change_serversettings permission adds or updates a MySQL server via the API, the privileged_user parameter (which has no input validation) is written unescaped into lib/userdata.inc.php. Since this file is required on every request via Database::getDB(), an attacker can inject arbitrary PHP code that executes as the web server user on every subsequent page load.

The root cause is in PhpHelper::parseArrayToString() at lib/Froxlor/PhpHelper.php:486:

Note that the password key receives special treatment via nowdoc syntax (line 484), which is safe because nowdoc does not interpret any escape sequences or variable interpolation. However, all other string keys — including user, caption, and caFile — are written directly into single-quoted PHP string literals with no escaping.

From froxlor/froxlor's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
FroxlorServers and applications · cpe:a:froxlor:froxlor
  • Every version before 2.3.6
FroxlorServers and applications · github:froxlor/froxlor
  • Every version before 2.3.6

About Froxlor

The server administration software for your needs - The official Froxlor development Git repository

From its GitHub repository.
Monthly downloads (Packagist)
159Packagist, 15 Nov 2026
Total downloads (Packagist)
406Packagist, 15 Nov 2026
GitHub stars
1,752GitHub, 15 Nov 2026
Forks
467GitHub, 15 Nov 2026
Latest release
2.3.17GitHub, 15 Nov 2026
Released
8 Nov 2026GitHub
License
GNU Lesser General Public License, version 2.1Wikidata
Written in
PHPWikidata
First published on GitHub
6 Mar 2012GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-41229
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-41229
  • GitHub Advisory Database https://github.com/advisories/GHSA-gc9w-cc93-rjv8
  • github.com https://github.com/froxlor/froxlor/security/advisories/GHSA-gc9w-cc93-rjv8