NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-48488: phpMyFAQ has Weak Cryptography - SHA1 for Password Hashing

lowCVSS 4.0 2.7GHSA-58fg-62fg-3fcj

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 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…

Published Jun 23, 2026

Affected packages

thorsten/phpmyfaq

Ecosystem
Composer (PHP)
Affected
<= 4.1.3
Fixed in
4.1.4
Check
composer show thorsten/phpmyfaq

phpmyfaq/phpmyfaq

Ecosystem
Composer (PHP)
Affected
<= 4.1.3
Fixed in
4.1.4
Check
composer show phpmyfaq/phpmyfaq

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

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 = password_hash($password, PASSWORD_BCRYPT);
}

public function verifyPassword(string $plainPassword): bool
{
    return password_verify($plainPassword, $this->passwordHash);
}

Credited to N0tFix3d.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries