Command Injection Affecting bibtex-ruby package, versions <5.1.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
2.81% (85th 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-RUBY-BIBTEXRUBY-542602
  • published17 Jan 2020
  • disclosed17 Jan 2020
  • creditSnyk Security Team

Introduced: 17 Jan 2020

CVE-2019-10780  (opens in a new tab)
CWE-78  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade bibtex-ruby to version 5.1.0 or higher.

Overview

bibtex-ruby is a BibTeX library, parser, and converter for Ruby.

Affected versions of this package are vulnerable to Command Injection due to unsanitized user input being passed directly to the built-in dangerous Ruby Kernel.open method through BibTeX.open.

PoC by Snyk:

require ‘bibtex’
BibTeX.open("| echo pwned > hacked_file")

References

CVSS Base Scores

version 3.1