Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to LibrePhotos web app
-
DeliverySet person name with embedded newline + ExifTool option
-
ExploitTrigger metadata write-back on a photo
-
ExecutionExifTool parses injected -if Perl argument
-
ImpactExecute attacker code / write arbitrary metadata on server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Requires an authenticated LibrePhotos account (CVSS PR:L) on an instance running ≤1.2.1 with the ability to set a face/person name, and the ExifTool metadata write-back feature in apps/backend/api/metadata/writer.py must actually be invoked to embed tags into image files. The concrete trigger, per the vendor diff, is a person_name value containing a control character (line break |
| Impact | Signals are moderate-to-serious but non-urgent. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) and base score 5.3 describe a network-reachable, low-complexity flaw that requires some privilege (PR:L), with the official rating capping impact at Low across confidentiality, integrity and availability (VC:L/VI:L/VA:L). However, the supplied GitHub source evidence materially contradicts that Low impact rating: the fix code and tests show that a person name containing a line break is passed one-argument-per-line to |
| Exploit ScenarioDerived | An authenticated LibrePhotos user (≤1.2.1) assigns a face/person name such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Argument injection in LibrePhotos 1.2.1 and earlier lets an authenticated user smuggle attacker-chosen ExifTool options through a face/person name that is written back into image metadata. Because PyExifTool feeds ExifTool one argument per line, a line break inside person_name ends the intended -TAG=value argument and starts a new one, so a crafted name such as "Joe\n-IFD0:Copyright=INJECTED" (or an -if Perl expression) is interpreted as an ExifTool command rather than data. The issue is reachable remotely by any account able to set a person name on an instance where the metadata write-back path in apps/backend/api/metadata/writer.py is exercised; there is confirmed actively exploited status absent (no CISA KEV listing) and no public exploit identified at time of analysis, and the vendor has released 1.3.0 as the fix.
RemediationAI
Vendor-released patch: upgrade LibrePhotos to 1.3.0 (https://github.com/LibrePhotos/librephotos/releases/tag/1.3.0), which contains PR #2299 / commit f83dafca9f1a6dd0441b7e4d5c13992896a7d76f; the independent assessment concludes the issue is fully remediated only by this upgrade, since 1.3.0 both flattens person names to a single line and makes write_metadata refuse any value containing a line break. Instances that cannot move immediately should reduce exposure by restricting who can create or edit face/person names, because the flaw requires an authenticated account (PR:L) with that capability and a write-back operation on a file the crafted name reaches; this lowers reachability but does not remove the flaw, since a legitimate user can still supply a control character and the only complete fix remains the upgrade. Follow the vendor advisory GHSA-8mp5-4hjr-x3gw for any additional guidance, and review logs for person names or ExifTool invocations containing -if or unexpected -TAG= sequences as an indicator of attempted abuse.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LibrePhotos writes tags into photo files through PyExifTool, which drives the ExifTool binary in persistent mode as exiftool -stay_open True -@ -. In that mode ExifTool consumes one argument per line from stdin, so any newline embedded in a value terminates the current argument and begins a new, independently parsed one. The ExifTool option namespace is powerful: -if <perl> evaluates a Perl expression and, per the project's own regression test, arbitrary assignments such as -IFD0:Copyright=... can be appended. The vulnerable sink is write_metadata() in apps/backend/api/metadata/writer.py, reached with values derived from user-supplied face region names built in apps/backend/api/metadata/face_regions.py. This is CWE-88 (argument injection/delimiter neutralization), not shell command injection: no shell is involved, the delimiter is the newline that separates ExifTool @-file arguments. The upstream fix (PR #2299, commit f83dafca9f1a6dd0441b7e4d5c13992896a7d76f) adds a defense-in-depth _argument() helper that raises ValueError when a rendered -TAG=value string contains \n or \r, and a _single_line() helper in face_regions.py that replaces Unicode general-category "Cc" control characters in names with spaces, plus regression tests covering CR, LF and the injected -if payload.
Know when Librephotos gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Authenticated low-priv user (PR:L) over the network injects arbitrary ExifTool arguments including -if Perl evaluation, so AC:L and high C/I/A on the backend host; same process scope (S:U).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-135541
GHSA-3mhc-9p94-xg95
NVD
CVE.org
EPSS
VulDB
Exploit-DB