Arbitrary Command Injection Affecting billiob/terminology package, versions [,1.3.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.68% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-BILLIOBTERMINOLOGY-2367193
  • published26 Jan 2022
  • disclosed17 Dec 2018
  • creditUnknown

Introduced: 17 Dec 2018

CVE-2018-20167  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade billiob/terminology to version 1.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection. Terminology before 1.3.1 allows Remote Code Execution because popmedia is mishandled, as demonstrated by an unsafe "cat README.md" command when \e}pn is used. A popmedia control sequence can allow the malicious execution of executable file formats registered in the X desktop share MIME types (/usr/share/applications). The control sequence defers unknown file types to the handle_unknown_media() function, which executes xdg-open against the filename specified in the sequence. The use of xdg-open for all unknown file types allows executable file formats with a registered shared MIME type to be executed. An attacker can achieve remote code execution by introducing an executable file and a plain text file containing the control sequence through a fake software project (e.g., in Git or a tarball). When the control sequence is rendered (such as with cat), the executable file will be run.

CVSS Base Scores

version 3.1