{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.99.1"
                  },
                  {
                    "last_affected": "2.99.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "2.99.2"
                  },
                  {
                    "last_affected": "2.99.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "2.99.3"
                  },
                  {
                    "last_affected": "2.99.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "2.99.5"
                  },
                  {
                    "last_affected": "2.99.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "2.99.6"
                  },
                  {
                    "last_affected": "2.99.6"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "2.99.7"
                  },
                  {
                    "last_affected": "2.99.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "fixed": "cd0c64b5e80ca6dc7327f6a5a68434d3d20c8df6"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v2.100.0",
                "range": [
                  {
                    "fixed": "2b6a396d04ddf71ea491c441403f440636b9ff50"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "dee610aad614bcdc041707f873b40a2a70758c27"
            },
            {
              "last_affected": "527683611f65a5739a13f39a8229c2e1db65530f"
            },
            {
              "fixed": "cd0c64b5e80ca6dc7327f6a5a68434d3d20c8df6"
            },
            {
              "fixed": "2b6a396d04ddf71ea491c441403f440636b9ff50"
            }
          ],
          "repo": "https://github.com/marcpope/borgbackupserver",
          "type": "GIT"
        }
      ],
      "versions": [
        "2.99.1",
        "2.99.2",
        "2.99.3",
        "2.99.5",
        "2.99.6",
        "2.99.7"
      ]
    }
  ],
  "aliases": [
    "GHSA-wq74-jrrv-f584"
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140131.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "2.99.0"
              },
              {
                "last_affected": "2.99.0"
              },
              {
                "introduced": "2.99.4"
              },
              {
                "last_affected": "2.99.4"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
          }
        ]
      }
    ]
  },
  "details": "A vulnerability has been found in marcpope borgbackupserver up to 2.99.7. This impacts the function restoreOrphan of the file src/Controllers/RepositoryController.php. Such manipulation of the argument repo_name leads to path traversal. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.100.0 will fix this issue. The name of the patch is cd0c64b5e80ca6dc7327f6a5a68434d3d20c8df6. You should upgrade the affected component.",
  "id": "CVE-2026-140131",
  "modified": "2026-12-01T08:45:35.914281007Z",
  "published": "2026-12-01T07:00:25.613Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140131.json"
    },
    {
      "type": "WEB",
      "url": "https://github.com/marcpope/borgbackupserver/"
    },
    {
      "type": "FIX",
      "url": "https://github.com/marcpope/borgbackupserver/commit/cd0c64b5e80ca6dc7327f6a5a68434d3d20c8df6"
    },
    {
      "type": "FIX",
      "url": "https://github.com/marcpope/borgbackupserver/releases/tag/v2.100.0"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/marcpope/borgbackupserver/security/advisories/GHSA-wq74-jrrv-f584"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140131"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/cve/CVE-2026-140131"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/1084393"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/446841"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/446841/cti"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P",
      "type": "CVSS_V4"
    }
  ],
  "summary": "marcpope borgbackupserver RepositoryController.php restoreOrphan path traversal"
}