{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.0.0"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c2120d02a0587ff701beac27e19be1c391e83963"
            },
            {
              "fixed": "325bd1f5fda71c6d56737aa09cfce0cb8106675a"
            }
          ],
          "repo": "https://github.com/librephotos/librephotos",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-639"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57943.json"
  },
  "details": "LibrePhotos before 1.0.0 contains a broken object level authorization vulnerability in the SetPhotosShared endpoint that allows authenticated users to grant themselves access to other users' private photos by bypassing ownership validation. Attackers can manipulate shared_to relations without proper owner checks to read arbitrary private photos belonging to other users.",
  "id": "CVE-2026-57943",
  "modified": "2026-08-07T11:31:23.600073092Z",
  "published": "2026-06-29T17:17:32.739Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57943.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/LibrePhotos/librephotos/releases/tag/1.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-57943"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/librephotos-insecure-direct-object-reference-in-setphotosshared-endpoint"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/LibrePhotos/librephotos/issues/1860"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/LibrePhotos/librephotos/pull/1866"
    },
    {
      "type": "FIX",
      "url": "https://github.com/LibrePhotos/librephotos/commit/325bd1f5fda71c6d56737aa09cfce0cb8106675a"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/LibrePhotos/librephotos"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "LibrePhotos \u003c 1.0.0 - Insecure Direct Object Reference in SetPhotosShared Endpoint"
}