{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "8.5"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b81570c690d79ebc1a03708dc17d33caa9639a5f"
            },
            {
              "fixed": "972cdc560e339d70c0ee5fb70ec636ab78f00bca"
            }
          ],
          "repo": "https://github.com/frrouting/frr",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "cwe_ids": [
      "CWE-367"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42917.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "4.5"
          }
        ],
        "source": "AFFECTED_FIELD"
      },
      {
        "extracted_events": [
          {
            "fixed": "4.5"
          }
        ],
        "source": "CPE_FIELD"
      }
    ]
  },
  "details": "In FRRouting FRR before 8.5, the service user (usually frr) can escalate its privileges to root by monitoring the configuration directory (/etc/frr) and replacing config files upon creation with, for example, symlinks to change the ownership of arbitrary files. This is a TOCTOU Race Condition caused by a combination of touch and chown.",
  "id": "CVE-2022-42917",
  "modified": "2026-09-16T03:31:01.875679319Z",
  "published": "2026-09-13T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://frrouting.org/security/cve-2022-42917/"
    },
    {
      "type": "WEB",
      "url": "https://github.com/FRRouting/frr/compare/frr-8.4...frr-8.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42917.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-42917"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.suse.com/show_bug.cgi?id=1204124"
    },
    {
      "type": "FIX",
      "url": "https://github.com/FRRouting/frr/commit/972cdc560e339d70c0ee5fb70ec636ab78f00bca"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}