CVEBrief

Home / Webklex / php-imap / CVE-2023-35169

CVE-2023-35169: is it exploited, and which versions of Webklex php-imap are affected and fixed?

CVE-2023-35169 is a path traversal (reading or writing files outside the intended folder) vulnerability in Webklex php-imap. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: webklex/php-imap before 5.3.0 and webklex/laravel-imap before 5.3.0 (GitHub advisory GHSA-47p7-xfcc-4pv9). Fixed in 5.3.0 (GitHub advisory GHSA-47p7-xfcc-4pv9). Severity: Critical (9.1, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:38 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 14:08 UTC
Affected
webklex/php-imap before 5.3.0 and webklex/laravel-imap before 5.3.0
GitHub advisory GHSA-47p7-xfcc-4pv9
Fixed in
5.3.0
GitHub advisory GHSA-47p7-xfcc-4pv9
Severity
Critical 9.1
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
3.19% in 30 days
higher than 88% of CVEs; FIRST, December 2, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2023-35169?

php-imap vulnerable to RCE through a directory traversal vulnerability

PHP-IMAP is a wrapper for common IMAP communication without the need to have the php-imap module installed / enabled. Prior to version 5.3.0, an unsanitized attachment filename allows any unauthenticated user to leverage a directory traversal vulnerability, which results in a remote code execution vulnerability. Every application that stores attachments with `Attachment::save()` without providing a `$filename` or passing unsanitized user input is affected by this attack. An attacker can send an email with a malicious attachment to the inbox, which gets crawled with `webklex/php-imap` or `webklex/laravel-imap`. Prerequisite for the vulnerability is that the script stores the attachments without providing a `$filename`, or providing an unsanitized `$filename`, in `src/Attachment::save(string $path, string $filename = null)`. In this case, where no `$filename` gets passed into the `Attachment::save()` method, the package would use a series of unsanitized and insecure input values from the mail as fallback. Even if a developer passes a `$filename` into the `Attachment::save()` method, e.g. by passing the name or filename of the mail attachment itself (from email headers), the input values never get sanitized by the package. There is also no restriction about the file extension (e.g. ".php") or the contents of a file. This allows an attacker to upload malicious code of any type and content at any location where the underlying user has write permissions. The attacker can also overwrite existing files and inject malicious code into files that, e.g. get executed by the system via cron or requests. Version 5.3.0 contains a patch for this issue.

From the CVE record by GitHub_M, last updated November 27, 2024, 20:22 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
Webklexphp-imap< 5.3.0

As the CVE record by GitHub_M states it, last updated November 27, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
Packagistwebklex/php-imap< 5.3.05.3.0GHSA-47p7-xfcc-4pv9
Packagistwebklex/laravel-imap< 5.3.05.3.0GHSA-47p7-xfcc-4pv9

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 21, 2023. Summary: php-imap vulnerable to RCE through a directory traversal vulnerability.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
webklexphp-imapbefore 5.3.0application

NVD analysis (status Modified), last modified June 17, 2026, 06:04 UTC.

How severe is CVE-2023-35169?

ScoreVersionVectorSource
Critical 9.1CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HGitHub_M
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2023-35169 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: no; technical impact: total (CISA ADP, November 27, 2024)
EPSS
3.19% probability of exploitation activity in the next 30 days, percentile 88.5 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
June 14, 2023
Published
June 23, 2023, 20:37 UTC
CVE record updated
November 27, 2024, 20:22 UTC by GitHub_M
NVD
Modified, last modified June 17, 2026, 06:04 UTC
Last checked
CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:38 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

Questions about CVE-2023-35169

Is CVE-2023-35169 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 3.19% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Webklex php-imap are affected by CVE-2023-35169?

webklex/php-imap before 5.3.0 and webklex/laravel-imap before 5.3.0, per the GitHub advisory GHSA-47p7-xfcc-4pv9. The tables above give every range the sources list.

Which version fixes CVE-2023-35169?

5.3.0, per the GitHub advisory GHSA-47p7-xfcc-4pv9. Check the vendor's advisory before you rely on it.

How severe is CVE-2023-35169?

Critical (9.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2023-35169?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.