Skip to content

Commit 94de353

Browse files
committed
Security release
1 parent f25879c commit 94de353

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
1515
- NaN
1616

1717

18+
## [5.3.0] - Security patch - 2023-06-20
19+
### Fixed
20+
- Potential RCE through path traversal fixed [#414](https://github.com/Webklex/php-imap/pull/414) (special thanks @angelej)
21+
22+
### Security Impact and Mitigation
23+
Impacted are all versions below v5.3.0.
24+
If possible, update to >= v5.3.0 as soon as possible. Impacted was the `Attachment::save`
25+
method which could be used to write files to the local filesystem. The path was not
26+
properly sanitized and could be used to write files to arbitrary locations.
27+
28+
However, the `Attachment::save` method is not used by default and has to be called
29+
manually. If you are using this method without providing a sanitized path, you are
30+
affected by this vulnerability.
31+
If you are not using this method or are providing a sanitized path, you are not affected
32+
by this vulnerability and no immediate action is required.
33+
34+
If you have any questions, please feel to join this issue: https://github.com/Webklex/php-imap/issues/416
35+
36+
1837
## [5.2.0] - 2023-04-11
1938
### Fixed
2039
- The message uid and message number will only be fetched if accessed and wasn't previously set (thanks @szymekjanaczek)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"require": {
2525
"php": "^8.0.2",
26-
"webklex/php-imap": "^5.2.0",
26+
"webklex/php-imap": "^5.3.0",
2727
"laravel/framework": ">=6.0.0"
2828
},
2929
"autoload": {

0 commit comments

Comments
 (0)