CVE-2022-50897 mPDF 7.0 - Local File Inclusion
Attackers can read arbitrary system files by manipulating annotation file parameters in the mPDF library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-50897?
CVE-2022-50897 is a high-severity path traversal vulnerability in mPDF, published on 13 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-98
Which versions are affected by CVE-2022-50897?
It affects 1 product.
Products include Mpdf Project Mpdf.
How do I fix CVE-2022-50897?
No fix has been published for CVE-2022-50897 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-50897 being exploited?
There is no known exploitation of CVE-2022-50897 in the wild and no public exploit code.
Other vulnerabilities in mPDF
Sources
Also known as GHSA-r9c5-x9r9-f4w3.