CVE-2026-136697 in LibrePhotosinfo

Summary

by MITRE • 11/25/2026

A flaw has been found in LibrePhotos up to 1.2.1. Affected by this issue is the function write_metadata of the file apps/backend/api/metadata/writer.py of the component ExifTool Metadata Write-Back. This manipulation of the argument person_name causes argument injection. The attack may be initiated remotely. Upgrading to version 1.3.0 can resolve this issue. Patch name: f83dafca9f1a6dd0441b7e4d5c13992896a7d76f. Upgrading the affected component is advised.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/28/2026

The vulnerability identified in LibrePhotos versions up to 1.2.1 represents a critical security flaw within the ExifTool Metadata Write-Back component, specifically located in the write_metadata function of the file apps/backend/api/metadata/writer.py. This issue stems from improper neutralization of special elements used in an operating system command argument, commonly referred to as OS Command Injection or Argument Injection. The root cause lies in the handling of the person_name argument, which is passed directly into external commands without adequate sanitization or validation. When a user provides input for this field, the application fails to properly escape or filter special characters that could be interpreted by the underlying shell environment rather than treated as literal data. This lack of rigorous input validation allows an attacker to inject arbitrary operating system commands through the person_name parameter, effectively bypassing intended security controls and executing code with the privileges of the LibrePhotos process.

From a technical perspective, this vulnerability aligns closely with CWE-78 Improper Neutralization of Special Elements used in an OS Command, often categorized under CWE-94 as Code Injection when it leads to arbitrary code execution. The attack vector is remote, meaning that an authenticated user or potentially an unauthenticated attacker if the endpoint is accessible without strict authentication can exploit this flaw. By crafting a malicious person_name value containing shell metacharacters such as semicolons, pipes, or backticks, an adversary can manipulate the command line constructed by ExifTool. This manipulation allows for the execution of arbitrary system commands on the host server running LibrePhotos. The severity is compounded by the fact that metadata writing operations often run with elevated privileges to ensure file integrity and accessibility, thereby increasing the potential impact of a successful exploitation attempt.

The operational impact of this vulnerability extends beyond simple data corruption or application crashes. Successful exploitation can lead to complete compromise of the underlying server infrastructure. An attacker could use this entry point to exfiltrate sensitive photo metadata, modify existing images by altering their EXIF tags maliciously, or escalate privileges further within the system. In worst-case scenarios, the injected commands could be used to install backdoors, launch denial-of-service attacks against internal services, or pivot into other parts of the network if the server is not properly isolated. The integrity of the photo library itself may also be compromised, as attackers might alter timestamps, locations, and tags associated with images, leading to significant data reliability issues for users relying on LibrePhotos for personal archiving.

Mitigation strategies focus primarily on immediate patching and long-term secure coding practices. The most effective remediation is upgrading LibrePhotos to version 1.3.0 or later, where the specific commit f83dafca9f1a6dd0441b7e4d5c13992896a7d76f addresses this argument injection flaw by implementing proper input validation and sanitization for the person_name field. Until an upgrade is feasible, administrators should consider restricting access to the metadata API endpoints through network-level controls such as firewalls or reverse proxy configurations that limit exposure to trusted IP ranges only. Additionally, running the LibrePhotos service under a restricted user account with minimal permissions can help mitigate the impact of successful exploitation by limiting the scope of commands an attacker can execute. Future development should adhere to secure coding standards that mandate strict whitelisting of allowed characters for metadata fields and avoid direct concatenation of user input into system command strings, instead utilizing parameterized APIs or safe libraries designed specifically for handling external process execution securely.

Responsible

VulDB

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00515

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!