MEDIUM 5.9

CVE-2026-57943: LibrePhotos Authentication Bypass Exposes Private Photos

LibrePhotos versions before 1.0.0 contain an authorization flaw that lets authenticated users view other people's private photos. The vulnerability exists in the SetPhotosShared endpoint, where the application fails to properly verify that only a photo's owner can change who it's shared with. An attacker with a valid LibrePhotos account can manipulate the sharing settings to grant themselves access to private photos belonging to any other user on the system, effectively reading arbitrary private image collections without permission.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.9 MEDIUM · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
Weaknesses (CWE)
CWE-639
Affected products
0 configuration(s)
Published / Modified
2026-06-29 / 2026-07-14

NVD description (verbatim)

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.

6 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-57943 is a broken object-level authorization (BOLA) vulnerability classified under CWE-639. The SetPhotosShared endpoint in LibrePhotos before version 1.0.0 lacks adequate ownership validation when modifying the shared_to relations of photos. An authenticated attacker can craft requests to alter sharing relationships without the application checking whether the requester owns the photo being shared. This allows circumvention of access controls that should restrict photo visibility to owners and explicitly authorized users. The vulnerability requires valid authentication credentials but no additional special privileges or complex interaction.

Business impact

This vulnerability creates a privacy breach vector for any LibrePhotos deployment. Users cannot trust that their private photos remain confidential; any authenticated user on the platform poses a risk. For organizations using LibrePhotos as a photo management solution—whether for personal archives, family sharing, or collaborative workflows—this represents a material confidentiality loss. Regulatory implications may include GDPR, CCPA, and other privacy frameworks if user data is exposed. Reputation damage, user trust erosion, and potential legal exposure are direct consequences if the flaw is exploited at scale.

Affected systems

LibrePhotos versions prior to 1.0.0 are affected. The vulnerability requires that the attacker has valid authentication credentials on a vulnerable LibrePhotos instance. Any deployment running pre-1.0.0 releases should be considered at risk, particularly those storing sensitive or regulated personal imagery.

Exploitability

The CVSS 3.1 score of 5.9 (MEDIUM) reflects a vulnerability that is exploitable but with moderate friction. Exploitation requires an authenticated account on the target system (PR:L), which means external attackers cannot exploit this directly without first obtaining valid credentials. However, insider threats, compromised accounts, or legitimate users with malicious intent can trivially exercise this flaw. The attack complexity is high (AC:H), suggesting some technical nuance in the exploitation process—likely related to correctly formatting the shared_to relationship manipulation—but this does not significantly raise the practical barrier. No user interaction is needed (UI:N), and the attack works over the network (AV:N). The vulnerability is not widely tracked in active exploitation databases; however, the relative simplicity of the logical flaw means proof-of-concept development by a competent attacker would be straightforward.

Remediation

Upgrade LibrePhotos to version 1.0.0 or later. This version includes fixes to the SetPhotosShared endpoint that enforce proper ownership validation before allowing any modifications to photo sharing relationships. Organizations should verify the patch version against the official LibrePhotos release notes. In the interim, restricting access to LibrePhotos to trusted users, implementing network-level monitoring of share-modification requests, and conducting access logs for anomalous sharing changes may provide temporary mitigation, but are not substitutes for patching.

Patch guidance

Apply the upgrade to LibrePhotos 1.0.0 as soon as practicable. Organizations should test the upgrade in a non-production environment first to ensure compatibility with custom integrations or data migrations. The patch directly addresses the authorization bypass, so no configuration changes are required post-upgrade. Verify the official LibrePhotos repository and announcements for the exact release artifact and any migration guidance. After patching, conduct a brief audit of sharing logs to identify any suspicious permission changes during the vulnerable window.

Detection guidance

Monitor LibrePhotos logs for SetPhotosShared endpoint requests, particularly those that modify shared_to relations for photos not owned by the requesting user. Look for patterns such as a single account rapidly changing sharing permissions on photos across multiple user collections, or requests that reference photo IDs outside the attacker's own collection. Review authentication logs for unusual login patterns or credential reuse. If you have access to raw request logs, search for POST/PATCH requests to SetPhotosShared with shared_to parameters that reference objects the authenticated user did not create. Forensic review of sharing history tables in the database can reveal backdated or anomalous permission grants that predate the vulnerability discovery.

Why prioritize this

Although the CVSS score is MEDIUM, this vulnerability warrants prompt attention because it directly violates user privacy expectations and is easily exploitable by any authenticated user. Privacy breaches carry disproportionate reputational and legal risk compared to availability or integrity flaws. The presence of a working patch and the clear, logical nature of the flaw make this a high-priority remediation target. Organizations handling regulated personal data or maintaining user trust should treat this as a near-term fix, ideally within 30 days of the 1.0.0 release.

Risk score, explained

The CVSS 3.1 score of 5.9 reflects a network-accessible vulnerability that requires authentication and has high attack complexity, yet results in a high confidentiality impact (reading arbitrary private photos) with limited integrity impact (manipulation of sharing metadata). The MEDIUM severity is appropriate for a privacy-focused vulnerability; however, the actual business and regulatory risk may be higher depending on the data classification and use case. Organizations handling healthcare, financial, or child-related imagery should escalate this to HIGH priority regardless of the base CVSS.

Frequently asked questions

Can someone outside the organization exploit this without an account?

No. The vulnerability requires a valid authenticated account on the LibrePhotos instance. External attackers must first obtain or compromise user credentials to exploit it. However, this does include any insider, contractor, or user with an account—not just administrators.

What exactly can an attacker see or do?

An authenticated attacker can read (view) arbitrary private photos belonging to other users by manipulating the sharing endpoint. They cannot modify the photos themselves, delete them, or change the original owner, but they can circumvent privacy controls to gain visual access to sensitive imagery.

Is there a workaround if we cannot patch immediately?

Patching is strongly recommended, but interim controls include restricting LibrePhotos access to a minimal, trusted user set and implementing detailed logging of all sharing changes. However, these do not eliminate the vulnerability—they only reduce the attack surface. Do not rely on workarounds as a long-term solution.

How do we know if we were exploited before patching?

Audit the sharing_history or access_log tables for SetPhotosShared requests where a user granted themselves access to photos they do not own. Cross-reference authenticated user IDs against photo ownership records to identify unauthorized permission grants. A forensic timeline may reveal exploitation patterns before the vulnerability was public.

This analysis is provided for informational purposes and reflects the vulnerability details as of the modification date (2026-07-14). Specific patch version numbers, compatibility information, and vendor guidance should be verified against the official LibrePhotos security advisory and release notes. This page does not constitute legal, compliance, or incident response advice. Organizations should conduct their own risk assessment based on their specific deployment, data sensitivity, and regulatory obligations. No exploit code or weaponized proof-of-concept is provided; this document is intended for defensive security planning only. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).