Skip to content

Markdown-supplied Shell Command Execution

Critical severity GitHub Reviewed Published Oct 23, 2020 in d0c-s4vage/lookatme • Updated Sep 7, 2023

Package

pip lookatme (pip)

Affected versions

< 2.3.0

Patched versions

2.3.0

Description

Impact

lookatme versions prior to 2.3.0 automatically loaded the built-in "terminal" and "file_loader" extensions. Users that use lookatme to render untrusted markdown may have malicious shell commands automatically run on their system.

Patches

Users should upgrade to lookatme versions 2.3.0 or above.

Workarounds

The lookatme/contrib/terminal.py and lookatme/contrib/file_loader.py files may be manually deleted. Additionally, it is always recommended to be aware of what is being rendered with lookatme.

References

For more information

If you have any questions or comments about this advisory:

References

@d0c-s4vage d0c-s4vage published to d0c-s4vage/lookatme Oct 23, 2020
Reviewed Oct 26, 2020
Published to the GitHub Advisory Database Oct 27, 2020
Last updated Sep 7, 2023

Severity

Critical
9.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Weaknesses

CVE ID

CVE-2020-15271

GHSA ID

GHSA-c84h-w6cr-5v8q

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.