Skip to main content

LibrePhotos EUVDEUVD-2026-135541

| CVE-2026-136697 MEDIUM
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-11-25 VulDB GHSA-3mhc-9p94-xg95
5.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to LibrePhotos web app
  2. Delivery
    Set person name with embedded newline + ExifTool option
  3. Exploit
    Trigger metadata write-back on a photo
  4. Execution
    ExifTool parses injected -if Perl argument
  5. Impact
    Execute 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 \n/\r) followed by an ExifTool option; because PyExifTool feeds exiftool -stay_open True -@ - one argument per line, the injected line becomes a new ExifTool argument (e.g. -if <perl>, -IFD0:Copyright=...). Limiting factors: exploitation needs valid authentication, depends on the write-back code path being exercised against a file the attacker's name reaches, and is fully remediated only by upgrading to 1.3.0 (which flattens names to single lines and refuses values containing line breaks).

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 exiftool -stay_open True -@ -, so an injected newline followed by -if <perl> becomes a new ExifTool option whose Perl expression ExifTool evaluates (the test uses system('id') and injects -IFD0:Copyright=INJECTED). That is argument injection (CWE-88) with a demonstrated path to arbitrary ExifTool arguments and Perl code execution on the backend - a severity notably higher than VulDB's VC:L/VI:L/VA:L suggests, which is the main conflict to verify with the vendor. No EPSS score was provided; KEV=NO; no confirmed working exploit code is listed (only a vendor GHSA advisory, PR and patch commit). The vuln.today decision label is 'this_month', consistent with a real but not emergency priority. Net: a credible, patch-this-month issue whose true impact (argument injection enabling code execution) likely exceeds the headline 5.3; prioritize per the demonstrated mechanism, not the Low CVSS impact sub-scores.

Exploit ScenarioDerived

An authenticated LibrePhotos user (≤1.2.1) assigns a face/person name such as Joe\n-if\nsystem('id')#. When the backend runs ExifTool metadata write-back to embed that name into an image's tags, the newline splits the value so ExifTool treats the trailing text as a separate -if option and evaluates the attacker's Perl expression. No public working exploit is listed in the input, but the vendor's own regression tests demonstrate the injection concretely.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

librephotos 1.2.0
librephotos 1.2.1

Affected Packages

euvd librephotos no fix

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

Vendor (VulDB) PRIMARY 5.3 MEDIUM
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
vuln.today AI 8.8 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.5%
Top 63% exploitable
Prevalence
Low
self-hosted hobby/niche photo manager, limited enterprise footprint
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy