Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-12713

GIMP through 2.10.2 makes g_get_tmp_dir calls to establish temporary filenames, which may result in a filename that already exists, as demonstrated by the gimp_write_and_read_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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-12713
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:11 UTC · Revision 1

Source evidence

CVE-2018-12713

core-osv · Original source

Published 24 Jun 2018, 22:29 UTC

GIMP through 2.10.2 makes g_get_tmp_dir calls to establish temporary filenames, which may result in a filename that already exists, as demonstrated by the gimp_write_and_read_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.

osv:CVE-2018-12713
Complete source record
{
  "id": "c81224c1069601fc178437055bac12d6cc05a9fdc054a58706916257e09af634",
  "url": "https://osv.dev/vulnerability/CVE-2018-12713",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-12713",
    "summary": "GIMP through 2.10.2 makes g_get_tmp_dir calls to establish temporary filenames, which may result in a filename that already exists, as demonstrated by the gimp_write_and_read_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.",
    "evidence": "osv:CVE-2018-12713",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2018-12713",
      "aliases": [
        "CVE-2018-12713"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gnome/gimp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "be7f9b433aeaa8164219320a36a1e76730abdbda"
                },
                {
                  "fixed": "c21eff4b031acb04fb4dfce8bd5fdfecc2b6524f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gimp:gimp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.10.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c21eff4b031acb04fb4dfce8bd5fdfecc2b6524f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "GIMP_2_10_2",
            "GIMP_2_10_0",
            "GIMP_2_10_0_RC2",
            "GIMP_2_10_0_RC1",
            "GIMP_2_9_8",
            "GIMP_2_9_6",
            "GIMP_2_9_2",
            "soc-2012-unified-transform-after-gsoc",
            "soc-2012-unified-transform-before-gsoc",
            "GIMP_2_8_0",
            "GIMP_2_8_0_RC1",
            "GIMP_2_7_5",
            "GIMP_2_7_4",
            "GIMP_2_7_3",
            "GIMP_2_7_2",
            "GIMP_2_7_1",
            "GIMP_2_6_1",
            "GIMP_2_6_0",
            "GIMP_2_5_4",
            "GIMP_2_5_3",
            "GIMP_2_5_2",
            "GIMP_2_5_1",
            "GIMP_2_5_0",
            "GIMP_2_4_1",
            "GIMP_2_4_0_RC3",
            "GIMP_2_4_0_RC2",
            "GIMP_2_4_0_RC1",
            "GIMP_2_3_19",
            "GIMP_2_3_18",
            "GIMP_2_3_17",
            "GIMP_2_3_16",
            "GIMP_2_3_14",
            "SCRIPT_FU_MERGE",
            "GIMP_2_3_13",
            "GIMP_2_3_12",
            "SCRIPT_FU_BEFORE_TINYSCHEME",
            "TINY_FU_1_1_0",
            "GIMP_2_3_11",
            "gimp",
            "GIMP_2_3_10",
            "GIMP_2_3_9",
            "NEEDS_GIMP_2_3_10",
            "TINY_FU_1_0_RC1",
            "TINY_FU_1_0_1",
            "TINY_FU_1_0_0",
            "GIMP_2_3_8",
            "GIMP_2_3_7",
            "GIMP_2_3_6",
            "GIMP_2_3_5",
            "GIMP_2_3_4",
            "GIMP_2_3_3",
            "GIMP_2_3_2",
            "GIMP_2_3_1",
            "GIMP_2_3_0",
            "TINY_FU_0_9_8",
            "TINY_FU_0_9_7",
            "GIMP_2_2_1",
            "GIMP_2_2_0",
            "TINY_FU_0_9_6",
            "GIMP_2_2_PRE2",
            "GIMP_2_2_PRE1",
            "TINY_FU_0_9_5",
            "GIMP_2_1_7",
            "TINY_FU_0_9_4",
            "TINY_FU_0_9_3",
            "GIMP_2_1_6",
            "GIMP_2_1_5",
            "GIMP_2_1_4",
            "GIMP_2_1_3",
            "GIMP_2_1_2",
            "GIMP_2_1_1",
            "GIMP_2_1_0",
            "GIMP_2_0_1",
            "GIMP_2_0_0",
            "GIMP_2_0_RC1",
            "GIMP_1_3_27",
            "GIMP_1_3_26",
            "GIMP_1_3_25",
            "GIMP_1_3_24",
            "GIMP_1_3_23",
            "GIMP_1_3_22",
            "GIMP_1_3_21",
            "GIMP_1_3_20",
            "GIMP_1_3_19",
            "GIMP_1_3_18",
            "GNOME_2_4_BRANCHPOINT",
            "release-2-4-0",
            "GIMP_1_3_17",
            "GIMP_1_3_16",
            "GIMP_1_3_15",
            "GIMP_1_3_14",
            "release-2-3-0",
            "GIMP_1_3_13",
            "release-2-2-5",
            "GIMP_1_3_12",
            "release-2-2-4",
            "LIBRSVG_2_2_0",
            "LIBRSVG_2_1_5",
            "LIBRSVG_2_1_4",
            "GIMP_1_3_11",
            "GIMP_1_3_10",
            "GIMP_1_3_9",
            "LIBRSVG_2_1_3",
            "LIBRSVG_2_1_2",
            "LIBRSVG_2_1_1",
            "GIMP_1_3_8",
            "GIMP_1_3_7",
            "GIMP_1_3_6",
            "GIMP_1_3_5",
            "GIMP_1_3_4",
            "GIMP_1_3_3",
            "GIMP_1_3_2",
            "GIMP_1_3_1",
            "GIMP_1_3_0",
            "GIMP_BEFORE_GTK_2_0",
            "GIMP_1_2_0",
            "GIMP_1_1_32",
            "GIMP_1_1_31",
            "GIMP_1_1_30",
            "GIMP_1_1_29",
            "GIMP_1_1_28",
            "GIMP_1_1_27",
            "GNOME_PRINT_0_24",
            "GIMP_1_1_26",
            "GIMP_1_1_25",
            "GIMP_1_1_24",
            "GIMP_1_1_23",
            "GIMP_1_1_22",
            "GIMP_1_1_21",
            "GIMP_1_1_20",
            "GIMP_1_1_19",
            "GIMP_1_1_18",
            "GIMP_1_1_17",
            "GIMP_1_1_16",
            "GIMP_1_1_15",
            "GIMP_1_1_14",
            "GIMP_1_1_13",
            "GIMP_1_1_12",
            "GIMP_1_1_11",
            "GIMP_1_1_10",
            "GIMP_19990910",
            "GIMP_1_1_9",
            "GIMP_1_1_8",
            "GIMP_1_1_7",
            "PROJECT_SUNLIGHT_ANCHOR",
            "GIMP_1_1_6",
            "GIMP_1_1_5",
            "FOR_PANEL",
            "GIMP_1_1_4",
            "GIMP_1_1_3",
            "GIMP_1_1_2",
            "GIMP_1_1_1",
            "GIMP_1_1_0",
            "BEFORE_GIMAGE_IS_FLAT_REMOVAL",
            "BEFORE_TILE_MADNESS",
            "GIMP_1_0_0",
            "GNOME_BASE",
            "GIMP_0_99_29",
            "GIMP_0_99_28",
            "GIMP_0_99_27",
            "GIMP_0_99_25",
            "GIMP_0_99_24",
            "BEFORE_MATTS_CRAZY_TOOL_PATCH",
            "GIMP_0_99_23",
            "GIMP_0_99_22",
            "GIMP_0_99_21",
            "GIMP_0_99_20",
            "GIMP_0_99_19",
            "ROSALIA_BEFORE_COMMITTING_DL_AND_GNOME_HELLO",
            "GIMP_0_99_18",
            "BASE_ZERO",
            "GIMP_0_99_17",
            "GIMP_0_99_16",
            "SNAP_19971121"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12713.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-12713-3642012a",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "302901949475160063291166101529738444603",
                    "180336650635012902928322728999906428166",
                    "28486985560848891885235672062341994466",
                    "158273357039027028393830014356843302026",
                    "128625577424982431000831071240210830750",
                    "5241181887966751265866766636745923479",
                    "145861882277219364620732936226584907881",
                    "304807386349986218258873917128084067134"
                  ]
                },
                "source": "https://github.com/gnome/gimp/commit/c21eff4b031acb04fb4dfce8bd5fdfecc2b6524f",
                "target": {
                  "file": "app/tests/test-xcf.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-12713-445f4776",
                "digest": {
                  "length": 689,
                  "function_hash": "13436723696371480992353462687333387978"
                },
                "source": "https://github.com/gnome/gimp/commit/c21eff4b031acb04fb4dfce8bd5fdfecc2b6524f",
                "target": {
                  "file": "app/tests/test-xcf.c",
                  "function": "gimp_write_and_read_file"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:11:25Z"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.gnome.org/gnome/gimp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "be7f9b433aeaa8164219320a36a1e76730abdbda"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gimp:gimp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.10.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "GIMP_2_10_2",
            "GIMP_2_10_0",
            "GIMP_2_10_0_RC2",
            "GIMP_2_10_0_RC1",
            "GIMP_2_9_8",
            "GIMP_2_9_6",
            "GIMP_2_9_2",
            "soc-2012-unified-transform-after-gsoc",
            "soc-2012-unified-transform-before-gsoc",
            "GIMP_2_8_0",
            "GIMP_2_8_0_RC1",
            "GIMP_2_7_5",
            "GIMP_2_7_4",
            "GIMP_2_7_3",
            "GIMP_2_7_2",
            "GIMP_2_7_1",
            "GIMP_2_6_1",
            "GIMP_2_6_0",
            "GIMP_2_5_4",
            "GIMP_2_5_3",
            "GIMP_2_5_2",
            "GIMP_2_5_1",
            "GIMP_2_5_0",
            "GIMP_2_4_1",
            "GIMP_2_4_0_RC3",
            "GIMP_2_4_0_RC2",
            "GIMP_2_4_0_RC1",
            "GIMP_2_3_19",
            "GIMP_2_3_18",
            "GIMP_2_3_17",
            "GIMP_2_3_16",
            "GIMP_2_3_14",
            "SCRIPT_FU_MERGE",
            "GIMP_2_3_13",
            "GIMP_2_3_12",
            "SCRIPT_FU_BEFORE_TINYSCHEME",
            "TINY_FU_1_1_0",
            "GIMP_2_3_11",
            "gimp",
            "GIMP_2_3_10",
            "GIMP_2_3_9",
            "NEEDS_GIMP_2_3_10",
            "TINY_FU_1_0_RC1",
            "TINY_FU_1_0_1",
            "TINY_FU_1_0_0",
            "GIMP_2_3_8",
            "GIMP_2_3_7",
            "GIMP_2_3_6",
            "GIMP_2_3_5",
            "GIMP_2_3_4",
            "GIMP_2_3_3",
            "GIMP_2_3_2",
            "GIMP_2_3_1",
            "GIMP_2_3_0",
            "TINY_FU_0_9_8",
            "TINY_FU_0_9_7",
            "GIMP_2_2_1",
            "GIMP_2_2_0",
            "TINY_FU_0_9_6",
            "GIMP_2_2_PRE2",
            "GIMP_2_2_PRE1",
            "TINY_FU_0_9_5",
            "GIMP_2_1_7",
            "TINY_FU_0_9_4",
            "TINY_FU_0_9_3",
            "GIMP_2_1_6",
            "GIMP_2_1_5",
            "GIMP_2_1_4",
            "GIMP_2_1_3",
            "GIMP_2_1_2",
            "GIMP_2_1_1",
            "GIMP_2_1_0",
            "GIMP_2_0_1",
            "GIMP_2_0_0",
            "GIMP_2_0_RC1",
            "GIMP_1_3_27",
            "GIMP_1_3_26",
            "GIMP_1_3_25",
            "GIMP_1_3_24",
            "GIMP_1_3_23",
            "GIMP_1_3_22",
            "GIMP_1_3_21",
            "GIMP_1_3_20",
            "GIMP_1_3_19",
            "GIMP_1_3_18",
            "GNOME_2_4_BRANCHPOINT",
            "release-2-4-0",
            "GIMP_1_3_17",
            "GIMP_1_3_16",
            "GIMP_1_3_15",
            "GIMP_1_3_14",
            "release-2-3-0",
            "GIMP_1_3_13",
            "release-2-2-5",
            "GIMP_1_3_12",
            "release-2-2-4",
            "LIBRSVG_2_2_0",
            "LIBRSVG_2_1_5",
            "LIBRSVG_2_1_4",
            "GIMP_1_3_11",
            "GIMP_1_3_10",
            "GIMP_1_3_9",
            "LIBRSVG_2_1_3",
            "LIBRSVG_2_1_2",
            "LIBRSVG_2_1_1",
            "GIMP_1_3_8",
            "GIMP_1_3_7",
            "GIMP_1_3_6",
            "GIMP_1_3_5",
            "GIMP_1_3_4",
            "GIMP_1_3_3",
            "GIMP_1_3_2",
            "GIMP_1_3_1",
            "GIMP_1_3_0",
            "GIMP_BEFORE_GTK_2_0",
            "GIMP_1_2_0",
            "GIMP_1_1_32",
            "GIMP_1_1_31",
            "GIMP_1_1_30",
            "GIMP_1_1_29",
            "GIMP_1_1_28",
            "GIMP_1_1_27",
            "GNOME_PRINT_0_24",
            "GIMP_1_1_26",
            "GIMP_1_1_25",
            "GIMP_1_1_24",
            "GIMP_1_1_23",
            "GIMP_1_1_22",
            "GIMP_1_1_21",
            "GIMP_1_1_20",
            "GIMP_1_1_19",
            "GIMP_1_1_18",
            "GIMP_1_1_17",
            "GIMP_1_1_16",
            "GIMP_1_1_15",
            "GIMP_1_1_14",
            "GIMP_1_1_13",
            "GIMP_1_1_12",
            "GIMP_1_1_11",
            "GIMP_1_1_10",
            "GIMP_19990910",
            "GIMP_1_1_9",
            "GIMP_1_1_8",
            "GIMP_1_1_7",
            "PROJECT_SUNLIGHT_ANCHOR",
            "GIMP_1_1_6",
            "GIMP_1_1_5",
            "FOR_PANEL",
            "GIMP_1_1_4",
            "GIMP_1_1_3",
            "GIMP_1_1_2",
            "GIMP_1_1_1",
            "GIMP_1_1_0",
            "BEFORE_GIMAGE_IS_FLAT_REMOVAL",
            "BEFORE_TILE_MADNESS",
            "GIMP_1_0_0",
            "GNOME_BASE",
            "GIMP_0_99_29",
            "GIMP_0_99_28",
            "GIMP_0_99_27",
            "GIMP_0_99_25",
            "GIMP_0_99_24",
            "BEFORE_MATTS_CRAZY_TOOL_PATCH",
            "GIMP_0_99_23",
            "GIMP_0_99_22",
            "GIMP_0_99_21",
            "GIMP_0_99_20",
            "GIMP_0_99_19",
            "ROSALIA_BEFORE_COMMITTING_DL_AND_GNOME_HELLO",
            "GIMP_0_99_18",
            "BASE_ZERO",
            "GIMP_0_99_17",
            "GIMP_0_99_16",
            "SNAP_19971121"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12713.json"
          }
        }
      ],
      "modified": "2026-10-24T14:11:25.098132781Z",
      "provider": "osv",
      "references": [
        "https://gitlab.gnome.org/GNOME/gimp/issues/1689",
        "https://github.com/GNOME/gimp/commit/c21eff4b031acb04fb4dfce8bd5fdfecc2b6524f"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-12713",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443245,
  "published_at": "2018-06-24T22:29:00.267+00:00"
}