CVE-2021-3846
PHP vulnerability analysis and mitigation

Overview

A vulnerability identified as CVE-2021-3846 was discovered in Firefly III, related to file upload functionality (CWE-434). The issue was identified and documented in 2021 (NVD).

Technical details

The vulnerability is classified as CWE-434, which relates to Unrestricted Upload of File with Dangerous Type. The issue was specifically found in the attachment handling functionality of Firefly III, where temporary files were not being properly closed and deleted (GitHub Commit).

Impact

The vulnerability could potentially lead to resource exhaustion due to temporary files not being properly cleaned up in the system.

Mitigation and workarounds

A fix was implemented through a code commit that ensures temporary files are properly closed and deleted after processing. The specific change added a fclose($resource) call to properly handle file resources (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-68954HIGH7.5
  • PHPPHP
  • github.com/pterodactyl/wings
NoYesJan 06, 2026
CVE-2025-68456HIGH7
  • PHPPHP
  • cpe:2.3:a:craftcms:craft_cms
NoYesJan 05, 2026
CVE-2025-69197MEDIUM6.5
  • PHPPHP
  • pterodactyl/panel
NoYesJan 06, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management