{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:lycheeorg:lychee:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "7.5.4"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9ec2bfd3928ae6262df88051520acc83b4a5b5e0"
            },
            {
              "fixed": "76a3f0513eca6458bf7f8c337c1ad65e59b22bcb"
            }
          ],
          "repo": "https://github.com/lycheeorg/lychee",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4v4c-g2jv-4g25"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39957.json"
  },
  "details": "Lychee is a free, open-source photo-management tool. Prior to 7.5.4, a SQL operator-precedence bug in SharingController::listAll() causes the orWhereNotNull('user_group_id') clause to escape the ownership filter applied by the when() block. Any authenticated non-admin user with upload permission who owns at least one album can retrieve all user-group-based sharing permissions across the entire instance, including private albums owned by other users. This vulnerability is fixed in 7.5.4.",
  "id": "CVE-2026-39957",
  "modified": "2026-08-12T03:51:19.549235772Z",
  "published": "2026-04-09T16:14:56.133Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39957.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-4v4c-g2jv-4g25"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-39957"
    },
    {
      "type": "FIX",
      "url": "https://github.com/LycheeOrg/Lychee/commit/76a3f0513eca6458bf7f8c337c1ad65e59b22bcb"
    },
    {
      "type": "FIX",
      "url": "https://github.com/LycheeOrg/Lychee/pull/4264"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Lychee has Broken Access Control in SharingController::listAll() leaks private album sharing metadata to unauthorized users"
}