LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50897: mPDF 7.0 - Local File Inclusion

mPDF 7.0 contains a local file inclusion vulnerability that allows attackers to read arbitrary system files by manipulating annotation file parameters. Attackers can generate URL-encoded or base64 payloads to include local files through crafted annotation content with file path specifications.

HighCVSS 8.7Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2022-50897 affects mPDF 7.0, a PHP library used to generate PDFs. A malicious user could craft PDF annotation content that makes the library read local system files. The main business risk is exposure of sensitive files from servers that process untrusted PDF or annotation input.

Executive priority

Prioritize review if mPDF 7.0 is used in customer-facing or partner-facing document workflows. The vulnerability can expose server-side files without authentication according to the CVSS vector. If mPDF is not used or input is fully trusted, urgency is lower.

Technical view

The issue is a local file inclusion flaw in mPDF 7.0 involving annotation file parameters. The CVE describes URL-encoded or base64-crafted annotation content with file path specifications that can include arbitrary local files. CVSS v4.0 is 8.7, with network attack vector, low complexity, no privileges, and no user interaction.

Likely exposure

Most relevant to applications using mPDF 7.0 to process attacker-controlled HTML, PDF annotation content, or document-generation inputs. Exposure is lower where mPDF is not present, not version 7.0, or only processes trusted server-side templates.

Exploitation context

A public Exploit-DB entry is referenced, so proof-of-concept information appears publicly available. The provided sources do not show CISA KEV listing or confirmed active exploitation. Treat internet-facing document-generation workflows accepting untrusted input as higher priority.

Researcher notes

Evidence is limited to the CVE description, VulnCheck advisory reference, Exploit-DB reference, and mPDF project page. The source bundle identifies mPDF 7.0 only. No official fixed version or vendor mitigation is provided in the supplied sources, so remediation should be verified against current mPDF guidance.

Mitigation direction

  • Inventory applications and services using mPDF and identify any mPDF 7.0 deployments.
  • Check official mPDF project guidance and release notes for upgrade or remediation direction.
  • Restrict untrusted annotation or document-generation input until vendor guidance is applied.
  • Limit filesystem permissions for PDF-generation processes to reduce readable sensitive files.
  • Monitor logs for unusual document-generation requests referencing local file paths.

Validation and detection

  • Confirm the exact mPDF version in application dependencies and deployed artifacts.
  • Map whether users can influence annotation content or file parameters.
  • Review application paths that pass external input into mPDF PDF generation.
  • Verify runtime permissions prevent reading secrets, configuration files, and OS-sensitive files.
  • Document compensating controls if upgrade guidance is not yet available.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-98: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-50897 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.7 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.7CVSS 4.0HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NPrimary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

8.7High
CVSS 4.0 vector shape for CVE-2022-50897Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
mPDFmPDF7.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-98 · source CWE mapping

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.