CVE-2026-48488: phpMyFAQ has Weak Cryptography - SHA1 for Password Hashing
Summary
Attachment passwords are hashed using SHA-1, a cryptographically broken algorithm. SHA-1 has been vulnerable to collision attacks since 2017 (SHAttered).
Details
Affected File : phpmyfaq/src/phpMyFAQ/Attachment/AbstractAttachment.php
<img width="810" height="427" alt="image" src="https://github.com/user-attachments/assets/6499a008-3ece-4291-8296-f1d3303ba35c" />
Impact
- An attacker can generate SHA-1 collisions to bypass attachment protection - Risk of password cracking if database is compromised - Estimated cracking time: < 1 minute for standard attachment
Solution
Use bcrypt:
public function setPassword(string $password): void { $this->passwordHash = passwordhash($password, PASSWORDBCRYPT); }
public function verifyPassword(string $plainPassword): bool { return passwordverify($plainPassword, $this->passwordHash); }
Other sources
phpMyFAQ is an open source FAQ web application. Prior to version 4.1.4, attachment passwords are hashed using SHA-1, a cryptographically broken algorithm. SHA-1 has been vulnerable to collision attacks since 2017 (SHAttered). Version 4.1.4 fixes the issue.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/phpmyfaq/phpmyfaqto a version that resolves this vulnerability.Fixed in 4.1.4 - Upgrade
Upgrade
composer/thorsten/phpmyfaqto a version that resolves this vulnerability.Fixed in 4.1.4 - Upgrade
Upgrade
phpMyFAQto a version that resolves this vulnerability.Fixed in 4.1.4
Event History
Frequently Asked Questions
What is the severity of CVE-2026-48488?
CVE-2026-48488 has a severity rating of low, with a CVSS score of 4.0.
How do I fix CVE-2026-48488?
To fix CVE-2026-48488, upgrade phpMyFAQ to version 4.1.4 or later to ensure secure password hashing.
What vulnerability is associated with CVE-2026-48488?
CVE-2026-48488 refers to weak cryptography as it involves using SHA-1 for password hashing, which is considered broken.
What are the risks of using SHA-1 as seen in CVE-2026-48488?
Using SHA-1, as noted in CVE-2026-48488, exposes passwords to potential collision attacks, compromising security.
Which versions of phpMyFAQ are affected by CVE-2026-48488?
Versions of phpMyFAQ prior to 4.1.4 are affected by CVE-2026-48488 due to the use of SHA-1 for password hashing.