GHSA-c84h-w6cr-5v8q

Suggest an improvement
Source
https://github.com/advisories/GHSA-c84h-w6cr-5v8q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/10/GHSA-c84h-w6cr-5v8q/GHSA-c84h-w6cr-5v8q.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-c84h-w6cr-5v8q
Aliases
Published
2020-10-27T17:59:54Z
Modified
2024-09-30T20:23:20.428304Z
Severity
  • 9.3 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N CVSS Calculator
Summary
Markdown-supplied Shell Command Execution
Details

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

  • https://github.com/d0c-s4vage/lookatme/pull/110
  • https://github.com/d0c-s4vage/lookatme/releases/tag/v2.3.0

For more information

If you have any questions or comments about this advisory:

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-78"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2020-10-26T18:07:46Z"
}
References

Affected packages

PyPI / lookatme

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.0

Affected versions

0.*

0.0.2
0.1.0
0.1.1
0.2.0
0.3.0
0.4.0
0.5.0

1.*

1.0.0
1.0.1
1.1.0
1.1.1
1.2.0
1.2.1
1.3.0

2.*

2.0.0
2.1.0
2.2.0

Ecosystem specific

{
    "affected_functions": [
        "lookatme.contrib.load_contribs"
    ]
}