Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Urgent security issue] FreeImage arbitrary code execution vulnerability #8261

Open
2 tasks done
MissLavender-LQ opened this issue Mar 31, 2024 · 2 comments
Open
2 tasks done

Comments

@MissLavender-LQ
Copy link

Prerequisites

  • I have verified this issue is present in the develop branch
  • I have searched open and closed issues to ensure it has not already been reported.

MonoGame Version

na

Which MonoGame platform are you using?

N/A

Operating System

na

Description

main 2 I think is the most important to point out

both of these can run arbitrary code one of them being from the BMP plugin
so I am assuming a person could get a user to load a malicious BMP or a file with a malicious bpm inside of it

Free Image should either be forked and fixed asap or abandoned for a different library

active project i could find that use freeimage
https://github.com/sirjuddington/SLADE
https://github.com/TrenchBroom/TrenchBroom
https://github.com/RetroPie/EmulationStation
https://github.com/MonoGame/MonoGame
https://github.com/meganz/MEGAsync
https://github.com/OGRECave/ogre
https://github.com/OGRECave/ogre-next
https://github.com/Open-Cascade-SAS/OCCT
https://github.com/arrayfire/forge
https://git.sr.ht/~exec64/imv
https://github.com/arrayfire/arrayfire

Free Image v3.18.0

Free Image before v1.18.0

Steps to Reproduce

na

Minimal Example Repo

No response

Expected Behavior

na

Resulting Behavior

na

Files

na

@dpasukhi
Copy link

dpasukhi commented Apr 8, 2024

FreeImage out of maintance for a while.
It is not clear how to fix all of them beeng out of maintance.
Probably only one alive solution is https://github.com/WinMerge/freeimage

@mrhelmut
Copy link
Contributor

mrhelmut commented Apr 9, 2024

Nothing alarming in my book and there is no action to take from developers using MonoGame. Games made with MonoGame are not exposed (because freeimage is not used by games themselves).


It should be easy to replace freeimage with StbImageSharp, which MonoGame already uses in other places. That would be a native dependency that we don't need anymore, which is always good.

Note that freeimage is only used by the content pipeline when importing image files (i.e. building XNBs). It is never used at runtime (and does not ship with games) and therefore games made with MonoGame are unbothered by this vulnerability (unless someone explicitly embed the content pipeline into a game, which is very unlikely).

TL;DR; it is very unlikely that this vulnerability can be exploited with MonoGame and if it does it would affect only developers, not players. It's easy to replace freeimage entirely, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants