VYPR
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.

PackageAffected versionsPatched versions
grumpydictator/firefly-iiiPackagist
< 5.6.25.6.2

Affected products

1

Patches

1
a85b6420c19a

Make sure temp file is closed (and thus deleted)

https://github.com/firefly-iii/firefly-iiiJames ColeOct 1, 2021via ghsa
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

News mentions

0

No linked articles in our index yet.