CVE-2025-62519
phpMyFAQ has Authenticated SQL Injection in Configuration Update Functionality
phpMyFAQ is an open source FAQ web application. Prior to version 4.0.14, an authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration. This issue has been patched in version 4.0.14.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.2
phpMyFAQ has Authenticated SQL Injection in Configuration Update Functionality
phpMyFAQ is an open source FAQ web application. Prior to version 4.0.14, an authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration. This issue has been patched in version 4.0.14.
- Record
CVE-2025-62519- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
EUVDEUVD-2025-197804
7.2
phpMyFAQ is an open source FAQ web application. Prior to version 4.0.14, an authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration. This issue has been patched in version 4.0.14.
- Record
EUVD-2025-197804- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-fxm2-cmwj-qvx4
7.2
phpMyFAQ has Authenticated SQL Injection in Configuration Update Functionality
Summary
An authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ (v4.0.13 and prior) allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration.
Details
The vulnerability exists in the save method within the src/phpMyFAQ/Controller/Administration/ConfigurationTabController.php controller. This method handles the saving of application-wide configuration settings. It retrieves all submitted form data as an associative array via $request->get('edit').
The core of the issue is that while the values of this array are processed, the keys are trusted implicitly and are not sanitized or validated.
File: src/phpMyFAQ/Controller/Administration/ConfigurationTabController.php
// ...
public function save(Request $request): JsonResponse
{
$this->userHasPermission(PermissionType::CONFIGURATION_EDIT);
$configurationData = $request->get('edit');
// ...
foreach ($configurationData as $key => $value) {
// The key from the user input is used to build the $newConfigValues array.
$newConfigValues[$key] = (string) $value;
// ...
}
// ...
// The array, containing user-controlled keys, is passed to the model.
$this->configuration->update($newConfigValues);
return $this->json(['success' => Translation::get('ad_config_saved')], Response::HTTP_OK);
}
The $newConfigValues array, which contains user-controlled keys, is then passed to the update method in the src/phpMyFAQ/Configuration.php model. Here, the key ($name) is directly concatenated into a raw SQL query string.
File: src/phpMyFAQ/Configuration.php
public function update(array $newConfigs): bool
{
// ...
foreach ($newConfigs as $name => $value) {
if ($name != 'main.phpMyFAQToken' && !in_array($name, $runtimeConfigs)) {
// VULNERABLE CODE: The array key '$name' is not escaped and is directly
// concatenated into the SQL query string. The value is escaped, but not the name.
$update = sprintf(
"UPDATE %s%s SET config_value = '%s' WHERE config_name = '%s'",
Database::getTablePrefix(),
$this->tableName,
$this->getDb()->escape(trim($value)),
$name
);
$this->getDb()->query($update);
// ...
}
}
return true;
}
An attacker can craft a malicious form parameter name (which becomes the array key) to break out of the single quotes in the WHERE clause and inject arbitrary SQL commands.
PoC (Proof of Concept)
Prerequisites:
- A running instance of phpMyFAQ (v4.0.13 confirmed vulnerable).
- An authenticated user session with permissions to edit the configuration.
Execution: Due to the application's CSRF protection, the easiest way to reproduce this is by capturing a legitimate request to save the configuration and modifying it using a proxy tool like Burp Suite's Repeater.
- Log in as an administrator and navigate to Administration -> Configuration.
- Make a trivial change (e.g., toggle a setting) and click "Save configuration". Capture this
POSTrequest to/admin/api/configuration. - Send the captured request to Repeater. The request will contain a valid
Cookieheader and apmf-csrf-tokenparameter. - Modify the request body to inject a malicious key. Add a new
multipart/form-datapart with a craftednameattribute.
Example Malicious Request Body Part (Error-Based):
------WebKitFormBoundaryRandomString
Content-Disposition: form-data; name="edit[dummykey' and updatexml(1, concat(0x7e, (SELECT table_name FROM information_schema.tables WHERE table_schema =…
- Record
GHSA-fxm2-cmwj-qvx4- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
NVD
7.2
phpMyFAQ is an open source FAQ web application. Prior to version 4.0.14, an authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration. This issue has been patched in version 4.0.14.
- Record
CVE-2025-62519- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
OSV
7.2
phpMyFAQ has Authenticated SQL Injection in Configuration Update Functionality
phpMyFAQ is an open source FAQ web application. Prior to version 4.0.14, an authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration. This issue has been patched in version 4.0.14.
- Record
CVE-2025-62519- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVGHSA-fxm2-cmwj-qvx4
7.2
phpMyFAQ has Authenticated SQL Injection in Configuration Update Functionality
Summary
An authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ (v4.0.13 and prior) allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration.
Details
The vulnerability exists in the save method within the src/phpMyFAQ/Controller/Administration/ConfigurationTabController.php controller. This method handles the saving of application-wide configuration settings. It retrieves all submitted form data as an associative array via $request->get('edit').
The core of the issue is that while the values of this array are processed, the keys are trusted implicitly and are not sanitized or validated.
File: src/phpMyFAQ/Controller/Administration/ConfigurationTabController.php
// ...
public function save(Request $request): JsonResponse
{
$this->userHasPermission(PermissionType::CONFIGURATION_EDIT);
$configurationData = $request->get('edit');
// ...
foreach ($configurationData as $key => $value) {
// The key from the user input is used to build the $newConfigValues array.
$newConfigValues[$key] = (string) $value;
// ...
}
// ...
// The array, containing user-controlled keys, is passed to the model.
$this->configuration->update($newConfigValues);
return $this->json(['success' => Translation::get('ad_config_saved')], Response::HTTP_OK);
}
The $newConfigValues array, which contains user-controlled keys, is then passed to the update method in the src/phpMyFAQ/Configuration.php model. Here, the key ($name) is directly concatenated into a raw SQL query string.
File: src/phpMyFAQ/Configuration.php
public function update(array $newConfigs): bool
{
// ...
foreach ($newConfigs as $name => $value) {
if ($name != 'main.phpMyFAQToken' && !in_array($name, $runtimeConfigs)) {
// VULNERABLE CODE: The array key '$name' is not escaped and is directly
// concatenated into the SQL query string. The value is escaped, but not the name.
$update = sprintf(
"UPDATE %s%s SET config_value = '%s' WHERE config_name = '%s'",
Database::getTablePrefix(),
$this->tableName,
$this->getDb()->escape(trim($value)),
$name
);
$this->getDb()->query($update);
// ...
}
}
return true;
}
An attacker can craft a malicious form parameter name (which becomes the array key) to break out of the single quotes in the WHERE clause and inject arbitrary SQL commands.
PoC (Proof of Concept)
Prerequisites:
- A running instance of phpMyFAQ (v4.0.13 confirmed vulnerable).
- An authenticated user session with permissions to edit the configuration.
Execution: Due to the application's CSRF protection, the easiest way to reproduce this is by capturing a legitimate request to save the configuration and modifying it using a proxy tool like Burp Suite's Repeater.
- Log in as an administrator and navigate to Administration -> Configuration.
- Make a trivial change (e.g., toggle a setting) and click "Save configuration". Capture this
POSTrequest to/admin/api/configuration. - Send the captured request to Repeater. The request will contain a valid
Cookieheader and apmf-csrf-tokenparameter. - Modify the request body to inject a malicious key. Add a new
multipart/form-datapart with a craftednameattribute.
Example Malicious Request Body Part (Error-Based):
------WebKitFormBoundaryRandomString
Content-Disposition: form-data; name="edit[dummykey' and updatexml(1, concat(0x7e, (SELECT table_name FROM information_schema.tables WHERE table_schema =…
- Record
GHSA-fxm2-cmwj-qvx4- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
thorsten/phpmyfaqPackagist |
through 4.0.13 | 4.0.14 |
phpmyfaq/phpmyfaqPackagist |
through 4.0.13 | 4.0.14 |
thorsten/phpmyfaqPackagist |
before 4.0.14, plus listed versions 2.10.0-alpha2.8.02.8.0-RC2.8.0-RC22.8.0-RC3 Show 45 moreShow less2.8.0-RC42.8.0-alpha22.8.0-alpha32.8.0-beta2.8.0-beta22.8.0-beta32.8.12.8.102.8.112.8.122.8.132.8.142.8.152.8.162.8.172.8.182.8.192.8.22.8.202.8.212.8.222.8.232.8.242.8.252.8.262.8.272.8.282.8.292.8.32.8.42.8.52.8.62.8.72.8.82.8.92.9.02.9.0-alpha2.9.0-alpha22.9.0-alpha32.9.0-alpha42.9.0-beta2.9.0-beta22.9.0-rc2.9.0-rc22.9.0-rc3 |
4.0.14 |
phpmyfaq/phpmyfaqPackagist |
before 4.0.14, plus listed versions 2.10.0-alpha2.8.02.8.0-RC2.8.0-RC22.8.0-RC3 Show 45 moreShow less2.8.0-RC42.8.0-alpha22.8.0-alpha32.8.0-beta2.8.0-beta22.8.0-beta32.8.12.8.102.8.112.8.122.8.132.8.142.8.152.8.162.8.172.8.182.8.192.8.22.8.202.8.212.8.222.8.232.8.242.8.252.8.262.8.272.8.282.8.292.8.32.8.42.8.52.8.62.8.72.8.82.8.92.9.02.9.0-alpha2.9.0-alpha22.9.0-alpha32.9.0-alpha42.9.0-beta2.9.0-beta22.9.0-rc2.9.0-rc22.9.0-rc3 |
4.0.14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-62519 is a high vulnerability (CVSS 7.2) in Phpmyfaq, published November 17, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.80%, the 56th percentile. Fixed in thorsten/phpmyfaq 4.0.14.
References
github.com/thorsten/phpMyFAQ/security/advisories/GHSA-fxm2-cmwj-qvx4
github.com/thorsten/phpMyFAQ/compare/4.0.13...4.0.14
nvd.nist.gov/vuln/detail/CVE-2025-62519
github.com/advisories/GHSA-fxm2-cmwj-qvx4
github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62519.json
github.com/thorsten/phpMyFAQ
Left out here: 204 versions and the rest of 2 source descriptions. The JSON record has them.