Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with document-upload rights
-
DeliveryUpload crafted SVG disguised as PDF
-
Exploitdol_convert_file passes file to Imagick
-
ExecutionImagick MSL/SVG delegate parses malicious markup
-
ImpactCode injection executes on server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Requires an authenticated account with document-upload capability (PR:L) that can reach a code path invoking dol_convert_file for image/PDF preview generation. Critically, code execution only occurs if the server has the ImageMagick/Imagick extension installed with the MSL (Magick Scripting Language) or SVG delegate enabled and a permissive /etc/ImageMagick*/policy.xml - the commit notes these policy options can be disabled, which blocks exploitation. The attacker supplies a file that is not a genuine PDF (e.g. an SVG embedding scripting) but is processed as one. Limiting factors: valid authentication is required, the vulnerable ImageMagick configuration must be present (default-restrictive policies prevent it), and the install must be at or below version 23.0.4. |
| Impact | The decision signals converge on low operational priority despite the alarming 'code injection' label. The vendor (VulDB) CVSS 4.0 base score is only 2.1, with PR:L (authenticated), limited VC:L/VI:L/VA:L impacts and no subsequent-system impact, and the vuln.today Decision label is 'monitor' - not act_now or emergency. There is no CISA KEV listing and no EPSS score was provided, so there is no evidence of active or widespread exploitation. The exploitation maturity is E:P (proof-of-concept) and a public PoC reference is claimed by VulDB, but it is not verified as working exploit code. The low score is consistent with the mechanism shown in the commit: the flaw only yields code execution when the server runs ImageMagick/Imagick with the MSL (Magick Scripting Language) or SVG delegate enabled and a permissive policy.xml, so the severe CWE-74 outcome is gated behind a non-default, hardening-dependent configuration - this is why a 'code injection' bug carries a low real-world score rather than a critical one. Conflict to note: the CWE-74 class and 'code injection' wording imply high severity, but the CVSS vector and required Imagick configuration imply a much narrower, conditional impact - verify your own ImageMagick policy hardening before prioritizing. |
| Exploit ScenarioDerived | An authenticated Dolibarr user with document-upload rights uploads a malicious SVG (or other non-PDF payload) renamed to look like a PDF; when Dolibarr calls dol_convert_file to generate an image preview, the file is handed to Imagick, which - if MSL/SVG delegate support is enabled and policy.xml is permissive - parses attacker-controlled markup and executes code on the server. A public PoC reference exists but is not verified as working exploit code. Exploitation is remote over the network but requires low-privilege authentication (PR:L) and the specific ImageMagick configuration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
Code injection is possible in Dolibarr ERP CRM up to and including 23.0.4 through the dol_convert_file() preview routine in htdocs/core/lib/files.lib.php, which hands uploaded files to ImageMagick/Imagick for conversion to PNG without first verifying that the file is genuinely a PDF. An authenticated user holding document-upload capability can therefore submit a crafted non-PDF (for example an SVG carrying Magick Scripting Language or embedded scripting) that Imagick processes as a document, yielding limited code execution in the context of the web server. Exploitation is not confirmed active (no CISA KEV listing) and depends on a permissive ImageMagick delegate configuration; the vendor description states that exploit code is publicly available, and the reporter's CVSS 4.0 score is 2.1 while the vuln.today decision label is monitor.
RemediationAI
Upgrade Dolibarr ERP CRM to version 24.0.0, which contains the isRealPdf() magic-header guard in htdocs/core/lib/files.lib.php; sites that cannot upgrade immediately can apply the upstream commit 9b6368b2a9eae3eec690b2ce22c4f291f0051540 (PR https://github.com/Dolibarr/dolibarr/pull/38020) as a backport. As the commit itself points out, the code path only becomes dangerous when the ImageMagick policy allows the relevant coders, so hardening /etc/ImageMagick*/policy.xml to disable the MSL and SVG delegate/coder entries blocks the injection at the interpreter - with the trade-off that any legitimate workflow relying on SVG or MSL conversion through ImageMagick will stop working - and the fix additionally logs a warning for every rejected file, so monitoring Dolibarr's syslog for 'not a real PDF file (hack attempt ?)' gives detection coverage. Restricting document-upload privileges to trusted roles reduces exposure only partially, since the vulnerable function is invoked from ordinary authenticated upload flows. Reference material: https://github.com/Dolibarr/dolibarr/releases/tag/24.0.0 and https://vuldb.com/vuln/440553.
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
Dolibarr's files.lib.php implements document handling for the ERP, and dol_convert_file() renders the first page of an upload into a PNG thumbnail using the PHP Imagick extension. Because the wrapper only received a filename and assumed PDF input, Imagick's delegate and coder resolution could be steered by the file's actual content rather than its extension - Imagick supports the Magick Scripting Language (MSL) coder and SVG handling that can carry executable directives, so a file that is not a real PDF but is routed to the converter can execute code inside the ImageMagick process. The upstream fix (commit 9b6368b2a9eae3eec690b2ce22c4f291f0051540, PR 38020, released in 24.0.0) adds an isRealPdf() helper that opens the target file, reads the first five bytes and requires the '%PDF-' magic header, returning -4 and writing a 'hack attempt?' warning to the Dolibarr syslog when the check fails; it also narrows the globals used by dol_add_file_process() and comments out a basename() call in deleteFilesIntoDatabaseIndex(). A PHPUnit test (FilesLibTest::testDolConvertFile) asserts that an SVG with JavaScript named as a PDF is rejected with -4 while a legitimate PDF still converts. CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) captures the root cause: untrusted upload content reaching a downstream interpreter. Crucially, the commit itself notes that Imagick policy options in /etc/ImageMagick*/policy.xml can restrict these coders, which is why default-restrictive distributions are not exploitable.
Know when PHP 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/E:P
Remote but requires an authenticated uploader (PR:L) and a non-default ImageMagick MSL/SVG configuration outside attacker control (AC:H); impact is real but limited (C/I/A:L) per the commit mechanism.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability was identified in Dolibarr ERP CRM up to 23.0.4. This affects the function dol_convert_file in the library htdocs/core/lib/files.lib.php of the component Document Upload. Such manipulation leads to code injection. The attack can be launched remotely. The exploit is publicly available and might be used. Upgrading to version 24.0.0 is able to mitigate this issue. The name of the patch is 9b6368b2a9eae3eec690b2ce22c4f291f0051540. 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.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-130791
GHSA-g7wp-wmgv-cvc9
NVD
CVE.org
EPSS
VulDB
Exploit-DB