CVE-2019-10780 BibTeX-Ruby vulnerable to OS command injection
Critical 9.8
Published
Updated
Check this codebase for CVE-2019-10780 and fix it if it is affected.
What it is: CVE-2019-10780 is a critical vulnerability in BibTeX-ruby, published on 22 Jan 2020.
Exploitation: There is no known exploitation of CVE-2019-10780 in the wild and no public exploit code.
Affected packages and fixed versions:
- bibtex-ruby (RubyGems): affected all versions; fixed in 5.1.0
- bibtex-ruby (RubyGems): affected all versions; fixed in 5.1.0
Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/CVE-2019-10780/ (Markdown: https://insights.sbomify.com/CVE-2019-10780/index.md)
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2019-10780?
CVE-2019-10780 is a critical vulnerability in BibTeX-ruby, published on 22 Jan 2020.
Official description
BibTeX-ruby before 5.1.0 allows shell command injection due to unsanitized user input being passed directly to the built-in Ruby Kernel.open method through BibTeX.open.
Weakness: CWE-78
Which versions are affected by CVE-2019-10780?
2 open source packages ship an affected version, including bibtex-ruby. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bibtex-ruby RubyGems | All versions | 5.1.0 |
bibtex-ruby RubyGems | All versions | 5.1.0 |
Products include Bibtex-Ruby Project Bibtex-Ruby.
How do I fix CVE-2019-10780?
Upgrade bibtex-ruby to 5.1.0 or later.
Is CVE-2019-10780 being exploited?
There is no known exploitation of CVE-2019-10780 in the wild and no public exploit code.
Sources
Also known as GHSA-c5r5-7pfh-6qg6, SNYK-RUBY-BIBTEXRUBY-542602.