Description
Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a <t> or <v> element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| leo-editor | Leo | ≤ 6.8.10 | — |
References
- https://github.com/leo-editor/leo-editor/issues/5078 issue-tracking
- https://github.com/leo-editor/leo-editor/pull/5079 issue-tracking patch
- https://github.com/leo-editor/leo-editor/commit/2cdc3b1f6933c293c0f50343cadfc39b4417a613 patch
- https://github.com/leo-editor/leo-editor/blob/v6.8.10/leo/core/leoFileCommands.py#L220-L260 technical-description
- VulnCheck Advisory: Leo through 6.8.10 Insecure Deserialization RCE via .leo Outline Attributes third-party-advisory