GIMP through 2.10.2 makes ggettmpdir calls to establish temporary filenames, which may result in a filename that already exists, as demonstrated by the gimpwriteandread_file function in app/tests/test-xcf.c. This might be leveraged by attackers to overwrite files or read file content that was intended to be private.
[
{
"id": "CVE-2018-12713-3642012a",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"302901949475160063291166101529738444603",
"180336650635012902928322728999906428166",
"28486985560848891885235672062341994466",
"158273357039027028393830014356843302026",
"128625577424982431000831071240210830750",
"5241181887966751265866766636745923479",
"145861882277219364620732936226584907881",
"304807386349986218258873917128084067134"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://github.com/gnome/gimp/commit/c21eff4b031acb04fb4dfce8bd5fdfecc2b6524f",
"target": {
"file": "app/tests/test-xcf.c"
}
},
{
"id": "CVE-2018-12713-445f4776",
"signature_version": "v1",
"digest": {
"function_hash": "13436723696371480992353462687333387978",
"length": 689.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://github.com/gnome/gimp/commit/c21eff4b031acb04fb4dfce8bd5fdfecc2b6524f",
"target": {
"file": "app/tests/test-xcf.c",
"function": "gimp_write_and_read_file"
}
}
]