CVE-2023-35169
published 2023-06-23CVE-2023-35169: 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…
PriorityP261critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
3.19%
86.5th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| webklex | laravel-imap | >= 0 < 5.3.0 | 5.3.0 |
| webklex | php-imap | < 5.3.0 | 5.3.0 |
| webklex | php-imap | >= 0 < 5.3.0 | 5.3.0 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vendor_oracle9.1CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2023-35169: PHP-IMAP is a wrapper for common IMAP communication without the need to have the php-imap module installed / enabled
osv·2023-06-23·CVSS 9.8
CVE-2023-35169 [CRITICAL] CVE-2023-35169: PHP-IMAP is a wrapper for common IMAP communication without the need to have the php-imap module installed / enabled
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
GHSA
php-imap vulnerable to RCE through a directory traversal vulnerability
ghsa·2023-06-21
CVE-2023-35169 [CRITICAL] CWE-22 php-imap vulnerable to RCE through a directory traversal vulnerability
php-imap vulnerable to RCE through a directory traversal vulnerability
### Summary
An unsanitized attachment filename allows any unauthenticated user to leverage a directory traversal vulnerability which results in a remote code execution vulnerability.
### Details
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)` (https://github.com/Webklex/php-imap/blob/5.2.0/src/Attachment.php#L251-L255).
In this case, where no `$filename` gets passed into the `Attachment::save()` method, the package wo
OSV
php-imap vulnerable to RCE through a directory traversal vulnerability
osv·2023-06-21
CVE-2023-35169 [CRITICAL] php-imap vulnerable to RCE through a directory traversal vulnerability
php-imap vulnerable to RCE through a directory traversal vulnerability
### Summary
An unsanitized attachment filename allows any unauthenticated user to leverage a directory traversal vulnerability which results in a remote code execution vulnerability.
### Details
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)` (https://github.com/Webklex/php-imap/blob/5.2.0/src/Attachment.php#L251-L255).
In this case, where no `$filename` gets passed into the `Attachment::save()` method, the package wo
Oracle
Oracle Oracle Communications Applications Risk Matrix: BRM Server (BSAFE Crypto-c) — CVE-2020-35169
vendor_oracle·2023-07-15·CVSS 9.1
CVE-2020-35169 [CRITICAL] Oracle Oracle Communications Applications Risk Matrix: BRM Server (BSAFE Crypto-c) — CVE-2020-35169
Oracle Oracle Communications Applications Risk Matrix: BRM Server (BSAFE Crypto-c) vulnerability
CVE: CVE-2020-35169
CVSS: 9.1
Protocol: XMPP
Remote exploit: Yes
Affected versions: Network
Advisory: cpujul2023 (JUL 2023)
Oracle
Oracle Oracle Blockchain Platform Risk Matrix: BCS Console (Dell BSAFE Micro Edition Suite) — CVE-2020-35169
vendor_oracle·2023-04-15·CVSS 7.4
CVE-2020-35169 [CRITICAL] Oracle Oracle Blockchain Platform Risk Matrix: BCS Console (Dell BSAFE Micro Edition Suite) — CVE-2020-35169
Oracle Oracle Blockchain Platform Risk Matrix: BCS Console (Dell BSAFE Micro Edition Suite) vulnerability
CVE: CVE-2020-35169
CVSS: 7.4
Protocol: Oracle Net
Remote exploit: Yes
Affected versions: Network
Advisory: cpuapr2023 (APR 2023)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/Webklex/php-imap/blob/5.2.0/src/Attachment.php#L251-L255https://github.com/Webklex/php-imap/blob/5.2.0/src/Attachment.php#L252https://github.com/Webklex/php-imap/pull/414https://github.com/Webklex/php-imap/releases/tag/5.3.0https://github.com/Webklex/php-imap/security/advisories/GHSA-47p7-xfcc-4pv9https://github.com/Webklex/php-imap/blob/5.2.0/src/Attachment.php#L251-L255https://github.com/Webklex/php-imap/blob/5.2.0/src/Attachment.php#L252https://github.com/Webklex/php-imap/pull/414https://github.com/Webklex/php-imap/releases/tag/5.3.0https://github.com/Webklex/php-imap/security/advisories/GHSA-47p7-xfcc-4pv9
2023-06-23
Published