High severityNVD Advisory· Published Oct 19, 2021· Updated Aug 3, 2024
Unrestricted Upload of File with Dangerous Type in firefly-iii/firefly-iii
CVE-2021-3846
Description
firefly-iii is vulnerable to Unrestricted Upload of File with Dangerous Type
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
grumpydictator/firefly-iiiPackagist | < 5.6.2 | 5.6.2 |
Affected products
1- Range: unspecified
Patches
1a85b6420c19aMake sure temp file is closed (and thus deleted)
1 file changed · +1 −0
app/Helpers/Attachments/AttachmentHelper.php+1 −0 modified@@ -171,6 +171,7 @@ public function saveAttachmentFromApi(Attachment $attachment, string $content): $allowedMime = config('firefly.allowedMimes'); if (!in_array($mime, $allowedMime, true)) { Log::error(sprintf('Mime type %s is not allowed for API file upload.', $mime)); + fclose($resource); return false; }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4- github.com/advisories/GHSA-5gq7-826w-8282ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-3846ghsaADVISORY
- github.com/firefly-iii/firefly-iii/commit/a85b6420c19ace35134f896e094e1971d8c7954bghsax_refsource_MISCWEB
- huntr.dev/bounties/5267ec1c-d204-40d2-bd4f-6c2dd495ee18ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.