{"answers":{"affected":"2 open source packages ship an affected version, including grumpydictator/firefly-iii.","exploited":"There is no known exploitation of GHSA-29w6-c52g-m8jc in the wild and no public exploit code.","fix":"Upgrade grumpydictator/firefly-iii to 6.1.7 or later.","what":"GHSA-29w6-c52g-m8jc is a code injection vulnerability in grumpydictator/firefly-iii, published on 31 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-29w6-c52g-m8jc and fix it if it is affected.\n\nWhat it is: GHSA-29w6-c52g-m8jc is a code injection vulnerability in grumpydictator/firefly-iii, published on 31 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-29w6-c52g-m8jc in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- grumpydictator/firefly-iii (Packagist): affected all versions; fixed in 6.1.7\n- grumpydictator/firefly-iii (Packagist): affected all versions; fixed in 6.1.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-29w6-c52g-m8jc/ (Markdown: https://insights.sbomify.com/GHSA-29w6-c52g-m8jc/index.md)","id":"GHSA-29w6-c52g-m8jc","markdown":"https://insights.sbomify.com/GHSA-29w6-c52g-m8jc/index.md","name":"GHSA-29w6-c52g-m8jc","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Firefly III","requires_auth":"low_privilege","summary":"Attacker injects malicious formulas into exported CSV files, leading to remote code execution when victims open the file in Excel.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\nCSV injection is a vulnerability where untrusted user input in CSV files can lead to unauthorized access or data manipulation. \nIn my subsequent testing of the application.\n\n### Details\nI discovered that there is an option to \"Export Data\" from the web app to your personal computer, which exports a \"csv\" file that can be opened with Excel software that supports macros.\n\nP.S \nI discovered that the web application's is offering a demo-site that anyone may access to play with the web application. So, there's a chance that someone will export the data (CVS) from the demo site and execute it on their PC, giving the malicious actor a complete control over their machine. (if a user enters a malicious payload to the website).\n\n### PoC\nYou can check out my vulnerability report if you need more details/PoC with screenshots: (removed by JC5)\n\n### Impact\nAn attacker can exploit this by entering a specially crafted payload to one of the fields, and when a user export the csv file using the \"Export Data\" function, the attacker can potentiality can RCE.\n\n### Addendum by JC5, the developer of Firefly III\nThere is zero impact on normal users, even on vulnerable versions.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"C5 Firefly III CSV Injection.","id":"GHSA-29w6-c52g-m8jc","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["6.1.7"],"introduced":["0"],"last_affected":[],"package":"grumpydictator/firefly-iii","purl":null,"source":"GHSA-29w6-c52g-m8jc"},{"ecosystem":"Packagist","fixed":["6.1.7"],"introduced":["0"],"last_affected":[],"package":"grumpydictator/firefly-iii","purl":"pkg:composer/grumpydictator/firefly-iii","source":"GHSA-29w6-c52g-m8jc"}],"products":null,"published":"2024-01-31","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attacker injects malicious formulas into exported CSV files, leading to remote code execution when victims open the file in Excel.","url":"https://insights.sbomify.com/GHSA-29w6-c52g-m8jc/"}