Skip to main content

FacturaScripts CVE-2026-27892

MEDIUM
Information Exposure (CWE-200)
2026-05-07 https://github.com/NeoRazorX/facturascripts GHSA-q7f2-rv22-2xgr
6.5
CVSS 3.1 · Vendor: https://github.com/NeoRazorX/facturascripts
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to FacturaScripts with valid credentials
  2. Delivery
    Navigate to Library module
  3. Exploit
    Locate and download image file
  4. Execution
    Extract metadata using exiftool or online EXIF viewer
  5. Persist
    Resolve GPS coordinates to physical address
  6. Impact
    Correlate with device serial numbers and timestamps for profiling

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires valid FacturaScripts user credentials with access to the Library module's download functionality. The Library module must be enabled in the deployment (default for standard FacturaScripts installations). An image containing EXIF/metadata must have been uploaded previously by any user (the vulnerability affects all images, including those uploaded before the vulnerability was discovered). No special configuration, non-standard settings, or feature flags are required-this occurs on default FacturaScripts deployments. The attacker does not need administrator privileges; any authenticated user with Library download access can extract metadata. The attack is completely passive: the attacker simply downloads the image file and analyzes it locally with free tools (exiftool). Exploitation is not hindered by authentication complexity, access control granularity, or file format restrictions-images of all types (JPEG, PNG, TIFF, HEIC, WebP) retain and expose metadata equally. Factors limiting exploitation are: (1) attacker must be authenticated to the FacturaScripts instance (rules out anonymous attacks), (2) attacker must have Library module access (deployments with strict role-based access control may limit who can download), (3) the image must contain meaningful metadata (if a user manually strips metadata before uploading, leakage is prevented-but users are not typically trained to do this and have no UI indication that they should). These limitations are weak: in any multi-user ERP, most staff will have Library access; most smartphone/camera photos contain rich EXIF; and users have zero expectation to pre-strip metadata before uploading to an ERP system.

Impact

CVSS 6.5 (network-accessible, low complexity, authenticated, high confidentiality impact, no integrity or availability impact) mechanically understates real-world risk. Multiple signals confirm elevated severity: (1) Attack vector is unauthenticated-to-download after login-passive file retrieval requires no exploitation toolkit; (2) No public exploit required-any authenticated user simply downloads an image and runs free exiftool; (3) The leaked data (GPS, author identity) is irrevocable and retroactive across all historical uploads; (4) Regulatory exposure under GDPR and CCPA (GPS and author names = personal data); (5) Physical safety risk in sectors like law enforcement, journalism, and NGOs where home addresses are weaponizable. EPSS score and KEV status are not provided in input; however, the ease of exploitation (no special configuration required, works on default deployments) and the severity of leaked data (precise geolocation) suggest this would receive high EPSS if scored. The vulnerability is not dependent on non-default configuration-any Library use on default FacturaScripts exposes this. Exploitation conditions are minimal: the attacker needs only valid credentials and Library download access, both typical in multi-user ERP deployments. The gap between CVSS (6.5 Medium) and business impact (high) is resolved by recognizing this as a passive, unrestricted, retroactive data leak affecting every image ever uploaded.

Exploit ScenarioDerived

An employee with valid FacturaScripts credentials uploads a photo taken at their home to the Library module (e.g., for use in a product listing or internal documentation). The photo retains embedded GPS coordinates (e.g., 48.8566°N, 2.3522°E), author name (John Doe), camera model (iPhone 15 Pro Max), and timestamp (2025-01-15 09:30:00). A second user (colleague, contractor, or malicious insider) with Library download access downloads the same image and runs exiftool on the file. The tool immediately reveals the home address GPS coordinates, personal name, device model, and timestamp-enabling physical targeting, device fingerprinting, or behavioral profiling. No alerting, logging, or user notification occurs.

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

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

Alert me

AnalysisAIv1 – May 07, 2026

FacturaScripts fails to strip EXIF and metadata from user-uploaded images in the Library module, allowing any authenticated user with download access to extract GPS coordinates, device information, timestamps, author names, and other personally identifiable information from downloaded files. An employee uploading a photo taken at their home inadvertently discloses their precise home address to all users with Library access. This affects all image uploads retroactively, with no patched version currently available.

RemediationAI

No vendor-released patch is currently available. Immediate remediation requires implementing server-side EXIF and metadata stripping on all image uploads before storage. For PHP environments, use GD's re-encoding (imagecreatefromjpeg + imagejpeg, which discards EXIF) or Imagick's stripImage() method. Command-line remediation for retroactively cleaning existing library files: exiftool -all= -overwrite_original /path/to/library/uploads/*.jpg. Extend metadata stripping to all upload endpoints across the application (email attachments, profile photos, product images), not just Library. Configure Content-Disposition: attachment headers and Content Security Policy to prevent inline metadata leakage during download. Implement a centralized file upload processing pipeline to ensure consistent sanitization across all modules. Monitor vendor repository (https://github.com/NeoRazorX/facturascripts) for patched release and apply immediately upon availability. As a temporary mitigation, restrict Library download access to only essential users and consider disabling image uploads in Library until a patch is deployed; note that this reduces functionality and does not address retroactive exposure of already-uploaded files.

Affected Packages

composer facturascripts/facturascripts fix: 2026

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FacturaScripts is a PHP-based open-source ERP application (pkg:composer/facturascripts/facturascripts) that provides file upload and collaborative library functionality across multiple modules. The Library module accepts image uploads without server-side metadata sanitization. JPEG, PNG, TIFF, HEIC, and WebP images automatically embed EXIF (Exchangeable Image File Format), XMP (Extensible Metadata Platform), and IPTC metadata at creation time. This metadata includes GPS coordinates (GPSLatitude, GPSLongitude, GPSAltitude), device fingerprints (camera make/model/serial numbers), embedded comments (UserComment, ImageDescription, XPComment), author fields (XPAuthor, Creator), and thumbnail previews. The root cause (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, and CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer) is a design-level omission - the application stores uploaded files byte-for-byte without any metadata stripping at upload, storage, or download stages. No re-encoding, EXIF removal libraries (Imagick::stripImage, Intervention Image, Python Pillow), or selective metadata whitelisting is implemented anywhere in the pipeline.

Know when Python 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 (https://github.com/NeoRazorX/facturascripts) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (https://github.com/NeoRazorX/facturascripts) · only source for this CVE.

CVSS VectorVendor: https://github.com/NeoRazorX/facturascripts

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Summary

Fectura Scripts is an open-source ERP application, a sensitive information disclosure vulnerability was identified in the Library module's image upload and download pipeline. The application fails to strip EXIF and other embedded metadata from user-uploaded image files before storing them and serving them for download. As a result, any authenticated user who downloads an image from the Library can extract the original uploader's GPS coordinates, device information, timestamps, embedded comments/notes, thumbnail previews, and other personally identifiable information (PII) preserved in the image metadata.

This vulnerability carries significant real-world impact: an employee uploading a photo taken at their home inadvertently discloses their precise home address to every user with Library download access.

---

Affected Functionality Overview

Fectura Scripts exposes image upload capabilities across several modules (e.g., email composition, profile settings, etc.). During testing, the Library section was identified as the only module that provides:

  • Full image upload (unrestricted image types observed)
  • Persistent storage of uploaded files
  • Direct download capability for any authenticated user with access
  • No server-side metadata sanitization at any point in the pipeline (upload, storage, or delivery)

Other modules (e.g., email attachments) were also tested but either did not render images or had limited upload/download exposure.

---

Technical Background

What Is EXIF/Image Metadata?

Most modern image formats (JPEG, TIFF, PNG with ancillary chunks, HEIC, WebP with XMP) embed metadata automatically at creation time. This metadata can include:

Metadata CategoryExample FieldsPrivacy Risk
GPS / GeolocationGPSLatitude, GPSLongitude, GPSAltitude, GPSTimestampCritical - reveals exact physical location
Device InformationMake, Model, Software, LensModelMedium - device fingerprinting
TimestampsDateTimeOriginal, CreateDate, ModifyDateMedium - behavioral profiling
User CommentsUserComment, ImageDescription, XPComment, XPAuthorHigh - may contain names, notes, PII
ThumbnailsThumbnailImage (embedded JPEG preview)High - may preserve original uncropped image
Serial NumbersBodySerialNumber, LensSerialNumber, InternalSerialNumberMedium - unique device tracking
Network/SoftwareHostComputer, Software, ProcessingSoftwareLow-Medium - infrastructure disclosure
XMP / IPTCCreator, Rights, Description, KeywordsMedium - organizational/authorship leakage

Why This Matters in an ERP Context

ERP platforms are used by businesses with multiple employees, contractors, clients, and sometimes external partners accessing shared resources. The Library module is inherently a collaborative, shared-access feature. Any image uploaded by one party is downloadable by many others - creating a one-to-many PII exposure vector.

---

Step-by-Step Reproduction

Prerequisites

  • A valid user account with access to the Library module (tested with Admin role; lower-privilege roles should also be tested)
  • A test image file containing rich EXIF/metadata (see Step 1)
  • An EXIF analysis tool: exiftool (CLI), or any online EXIF viewer

---

Step 1: Prepare a Metadata-Rich Test Image

Create or obtain a JPEG image with embedded GPS and descriptive metadata. You can inject test metadata using exiftool:

bash
exiftool \
  -GPSLatitude="48.8566" \
  -GPSLatitudeRef="N" \
  -GPSLongitude="2.3522" \
  -GPSLongitudeRef="E" \
  -GPSAltitude="35" \
  -UserComment="Confidential: Taken at employee home address" \
  -XPAuthor="John Doe" \
  -Make="Apple" \
  -Model="iPhone 15 Pro Max" \
  -DateTimeOriginal="2025:01:15 09:30:00" \
  test_image.jpg

Verify metadata is present:

bash
exiftool test_image.jpg

Expected output should show all injected fields including GPS coordinates resolving to Paris, France (48.8566°N, 2.3522°E).

---

Step 2: Log in to Fectura Scripts

  1. Navigate to the Fectura Scripts login page.
  2. Authenticate with valid credentials.
  3. Confirm access to the application dashboard.

---

Step 3: Navigate to the Library Section

  1. From the main navigation/sidebar, click on "Library" (or equivalent menu entry).
  2. Confirm the Library module loads and displays existing files/images (if any).

---

Step 4: Upload the Test Image

  1. Click the "Upload" button/action within the Library interface.
  2. Select the prepared test_image.jpg file.
  3. Complete the upload process (fill any required fields such as title/description if prompted).
  4. Confirm the image appears in the Library listing.

---

Step 5: Download the Image (as the Same or Different User)

  1. Locate the uploaded image in the Library.
  2. Click the "Download" button/link (or right-click → Save As on the rendered image, depending on UI).
  3. Save the file locally as downloaded_image.jpg.

> Note: For stronger proof of impact, perform this step logged in as a different user account with Library access, demonstrating cross-user information leakage.

---

Step 6: Extract and Analyze Metadata from the Downloaded File

Run exiftool on the downloaded file:

bash
exiftool downloaded_image.jpg

Observed Result (Vulnerable):

GPS Latitude                    : 48 deg 51' 23.76" N
GPS Longitude                   : 2 deg 21' 7.92" E
GPS Altitude                    : 35 m
GPS Position                    : 48.8566°N, 2.3522°E
User Comment                    : Confidential: Taken at employee home address
XP Author                       : John Doe
Make                            : Apple
Model                           : iPhone 15 Pro Max
Date/Time Original              : 2025:01:15 09:30:00
...
[ALL original metadata preserved in full]

Expected Result (Secure):

All EXIF, XMP, IPTC, GPS, and comment fields should be stripped or neutralized before storage or at download time. Only essential image rendering data should remain.

---

Step 7: Confirm GPS Resolution to Physical Location

Take the extracted GPS coordinates and resolve them:

https://www.google.com/maps?q=48.8566,2.3522

This confirms the metadata resolves to a precise, real-world physical location - demonstrating the severity of the leak.

---

Root Cause Analysis

The application's image upload handler in the Library module stores the uploaded file byte-for-byte without any server-side processing to remove metadata. The download handler then serves the identical file. At no point in the pipeline is any of the following performed:

  1. EXIF stripping (e.g., via libraries like Intervention Image, Imagick::stripImage(), Python Pillow's .save() without EXIF, or jpegtran -copy none)
  2. Re-encoding / reprocessing of the image (which would naturally discard non-image data)
  3. Selective metadata whitelisting (preserving only color profile / orientation data)
  4. Content-Disposition header enforcement to prevent inline rendering with metadata intact

This is a design-level omission rather than a bypassable control - there is simply no metadata handling logic present.

---

Impact Assessment

Direct Impacts

ImpactDescriptionSeverity
Geolocation DisclosureGPS coordinates in uploaded photos can reveal home addresses, office locations, client sites, travel patterns of employeesHigh
PII LeakageAuthor names, comments, device owner names embedded in metadata expose personal identityHigh
Device FingerprintingCamera make/model, serial numbers, and software versions enable tracking and targeting of specific individuals or devicesMedium
Behavioral ProfilingTimestamps and sequential GPS data across multiple uploads can reconstruct an individual's movements and scheduleHigh
Embedded Thumbnail LeakageThumbnails may preserve the original uncropped image, potentially exposing content the user intentionally cropped out (documented in prior CVEs)Medium-High

Contextual / Escalated Impacts

  • Regulatory Exposure: GPS coordinates and author names constitute personal data under GDPR (Art. 4(1)), CCPA, and similar frameworks. Failure to strip this data from shared/downloadable resources may constitute a data protection violation for organizations using Fectura Scripts.
  • Insider Threat Amplification: A malicious insider (employee, contractor) with Library download access can silently harvest geolocation and identity data of colleagues without any logging or indication to the victim.
  • Physical Security Risk: In sectors where employee physical safety is paramount (e.g., legal, law enforcement, journalism, NGOs, domestic violence support), leaking home GPS coordinates through an ERP system represents a direct physical safety threat.
  • Supply Chain Risk: If the Library is shared with external partners/vendors, the exposure surface extends beyond the organization.

Why CVSS 6.5 Understates the Risk

The CVSS base score of 6.5 reflects the mechanical characteristics of the vulnerability (network-accessible, low complexity, authenticated). However, the contextual severity is higher because:

  1. Users have no expectation that uploading an image to an ERP system will broadcast their home coordinates.
  2. The attack is completely passive - the attacker simply downloads a file; no exploitation toolkit or special skills are required.
  3. The leaked data (GPS, PII) is irrevocable - once downloaded, the victim cannot "un-leak" their location.
  4. The vulnerability affects every image ever uploaded to the Library, creating a retroactive exposure of historical data.

Recommended effective severity: HIGH for any deployment handling real employee/client data.

---

Recommended Remediation

Immediate (Short-Term)

PriorityAction
P0Implement server-side EXIF/metadata stripping on all image uploads in the Library module before storage.
P0Retroactively strip metadata from all existing images already stored in the Library.
P1Extend metadata stripping to all other upload endpoints across the application (email attachments, profile photos, product images, etc.).

Implementation Guidance (by Language/Stack)

PHP (likely stack for Fectura Scripts):

php
// Using GD (built-in, no dependencies)
function stripMetadata($sourcePath, $destPath) {
    $image = imagecreatefromjpeg($sourcePath);
    imagejpeg($image, $destPath, 95); // Re-encodes, discarding all EXIF
    imagedestroy($image);
}

// Using Imagick (if available)
$img = new Imagick($sourcePath);
$img->stripImage(); // Removes all EXIF, IPTC, XMP profiles
$img->writeImage($destPath);

Python:

python
from PIL import Image
img = Image.open("uploaded.jpg")
data = list(img.getdata())
clean = Image.new(img.mode, img.size)
clean.putdata(data)
clean.save("clean.jpg")

Command-line (for retroactive cleanup):

bash
# Strip all metadata from all JPEGs in the library storage directory
exiftool -all= -overwrite_original /path/to/library/uploads/*.jpg

Long-Term (Architectural)

PriorityAction
P1Establish a centralized file upload processing pipeline that all modules route through, ensuring consistent sanitization.
P1Add Content Security Policy and Content-Disposition: attachment headers on all file downloads to reduce inline rendering risks.
P2Implement a configurable metadata policy (e.g., allow admins to choose between full strip, preserve orientation only, or preserve color profile).
P2Add file type validation (magic byte checking, not just extension) to the upload pipeline.
P3Consider adding a user-facing warning at upload time: "Note: Image metadata will be stripped for privacy."

---

9. References

ResourceURL
CWE-200: Exposure of Sensitive Informationhttps://cwe.mitre.org/data/definitions/200.html
CWE-212: Improper Removal of Sensitive Information Before Storage or Transferhttps://cwe.mitre.org/data/definitions/212.html
NIST NVD CVSS v3.1 Calculatorhttps://www.first.org/cvss/calculator/3.1
GDPR Art. 4(1) - Definition of Personal Datahttps://gdpr-info.eu/art-4-gdpr/
ExifTool by Phil Harveyhttps://exiftool.org/
Related CVEhttps://nvd.nist.gov/vuln/detail/CVE-2023-29850

---

11. Conclusion

The absence of image metadata sanitization in Fectura Scripts' Library module is a clear, easily exploitable, and high-impact information disclosure vulnerability. It requires no technical skill to exploit (just a file download and a free tool), it leaks data that users never intended to share (home GPS coordinates, personal identity), and it affects every image ever uploaded to the platform retroactively.

While the CVSS base score of 6.5 categorizes this as "Medium," the real-world privacy consequences - particularly under GDPR and in contexts where physical safety is relevant - warrant treating this with High urgency. The fix is straightforward, well-documented, and should be implemented immediately across all upload endpoints.

<img width="1920" height="1020" alt="image" src="https://github.com/user-attachments/assets/80cbdd80-fc80-45f2-b125-e0557e94ac40" />

<img width="1920" height="1020" alt="image" src="https://github.com/user-attachments/assets/53fd80bb-cd41-48d6-a9b8-3129f307bce6" />

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

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.0%
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

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

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:composer/facturascripts_facturascripts

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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