FacturaScripts: Authenticated Remote Code Execution (RCE) via GIF Image Upload in Product Images
FacturaScripts is an open source accounting and invoicing software. In 2025.81 and earlier, an authenticated unrestricted file upload vulnerability exists in FacturaScripts' product image upload functionality. An attacker with valid credentials can upload a PHP file disguised as a GIF image (using a GIF89a header), bypassing MIME type validation. The file is stored with its original extension, including executable extensions such as .php. The vulnerability exists the addImageAction() method of Core/Lib/ExtendedController/ProductImagesTrait.php.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-42879
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 09:46 UTC · Revision 1
Source evidence
FacturaScripts: Authenticated Remote Code Execution (RCE) via GIF Image Upload in Product Images
core-osv · Original sourcePublished 27 May 2026, 18:29 UTC
FacturaScripts is an open source accounting and invoicing software. In 2025.81 and earlier, an authenticated unrestricted file upload vulnerability exists in FacturaScripts' product image upload functionality. An attacker with valid credentials can upload a PHP file disguised as a GIF image (using a GIF89a header), bypassing MIME type validation. The file is stored with its original extension, including executable extensions such as .php. The vulnerability exists the addImageAction() method of Core/Lib/ExtendedController/ProductImagesTrait.php.
osv:CVE-2026-42879
Complete source record
{
"id": "be9ce0b9f4716f5ac88cf1a01da8c3110ee0addf20cf135580e81dbcb7674aad",
"url": "https://osv.dev/vulnerability/CVE-2026-42879",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "FacturaScripts: Authenticated Remote Code Execution (RCE) via GIF Image Upload in Product Images",
"summary": "FacturaScripts is an open source accounting and invoicing software. In 2025.81 and earlier, an authenticated unrestricted file upload vulnerability exists in FacturaScripts' product image upload functionality. An attacker with valid credentials can upload a PHP file disguised as a GIF image (using a GIF89a header), bypassing MIME type validation. The file is stored with its original extension, including executable extensions such as .php. The vulnerability exists the addImageAction() method of Core/Lib/ExtendedController/ProductImagesTrait.php.",
"evidence": "osv:CVE-2026-42879",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-42879",
"aliases": [
"CVE-2026-42879",
"GHSA-vf3q-frmr-vrr9"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/neorazorx/facturascripts",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "bd1d482c803ea94f76bb58bc5004df14d7379675"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2025.81"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2025.81"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v2025.81",
"v2025.8",
"v2025.71",
"v2025.7",
"v2025.43",
"v2025.41",
"v2025.4",
"v2025.3",
"v2025.2",
"v2025.11",
"v2025",
"c2024.92",
"v2024.91",
"v2024.9",
"v2024.8",
"v2024.7",
"v2024.5",
"v2024.3",
"v2024.2",
"v2024.1",
"v2024",
"v2023.21",
"v2023.16",
"v2023.08",
"v2022.51",
"v2022.4",
"v2022.2",
"v2022.08",
"v2022.06",
"v2021.81",
"v2021.71",
"v2021.51",
"v2021.4",
"v2021.2",
"v2021.1",
"v2021",
"v2020.80",
"v2020.71",
"v2020.61",
"v2020.51",
"v2020.4",
"v2020.3",
"v2020.2",
"v2020.01",
"v2018.16",
"v2018.15",
"v2018.14",
"v2018.13",
"v2018.12",
"2018.11",
"2018.05",
"2018.04",
"2018.03"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42879.json"
}
}
],
"modified": "2026-10-28T02:30:27.695917198Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42879.json",
"https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-vf3q-frmr-vrr9",
"https://nvd.nist.gov/vuln/detail/CVE-2026-42879"
],
"provider_metadata": {
"cwe_ids": [
"CWE-434",
"CWE-94"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42879.json"
}
},
"related_cves": [
{
"value": "CVE-2026-42879",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494313,
"published_at": "2026-05-27T18:29:46.718+00:00"
}