{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "17.2"
              },
              {
                "fixed": "17.3.7"
              }
            ]
          },
          "events": [
            {
              "introduced": "f1ebbe522423b514610449d0f6dc7a262f855314"
            },
            {
              "fixed": "d8f6f1674158117b616f0e80f619625a9e9c79f8"
            }
          ],
          "repo": "https://gitlab.com/gitlab-org/gitlab",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "17.4"
              },
              {
                "fixed": "17.4.4"
              }
            ]
          },
          "events": [
            {
              "introduced": "22193b3da887c1fa5e49021fa8f87b74e6539a7a"
            },
            {
              "fixed": "c13d003f863842e516b15fd68a2ea24ce5fe15fb"
            }
          ],
          "repo": "https://gitlab.com/gitlab-org/gitlab",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "17.5"
              },
              {
                "fixed": "17.5.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "173959793c1163052d16c2158773ea9504aa712e"
            },
            {
              "fixed": "9811944b4765ce728036941e549faf72e58e2acd"
            }
          ],
          "repo": "https://gitlab.com/gitlab-org/gitlab",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "GitLab",
    "cwe_ids": [
      "CWE-1021"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7404.json"
  },
  "details": "An issue was discovered in GitLab CE/EE affecting all versions starting from 17.2 prior to 17.3.7, starting from 17.4 prior to 17.4.4 and starting from 17.5 prior to 17.5.2, which could have allowed an attacker gaining full API access as the victim via the Device OAuth flow.",
  "id": "CVE-2024-7404",
  "modified": "2026-04-01T23:08:57.710132033Z",
  "published": "2024-11-14T13:02:23.587Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://about.gitlab.com/releases/2024/11/13/patch-release-gitlab-17-5-2-released/#device-oauth-flow-allows-for-cross-window-forgery"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7404.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-7404"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.com/gitlab-org/gitlab/-/issues/476670"
    },
    {
      "type": "REPORT",
      "url": "https://hackerone.com/reports/2627925"
    },
    {
      "type": "PACKAGE",
      "url": "git://git@gitlab.com:gitlab-org/gitlab.git"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Improper Restriction of Rendered UI Layers or Frames in GitLab"
}