EJB Bad Practices: Use of Synchronization Primitives Affecting farm-haystack package, versions [0,1.16.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.32% (55th 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-PYTHON-FARMHAYSTACK-5296700
  • published30 Mar 2023
  • disclosed30 Mar 2023
  • creditNikolaos Raftogiannis

Introduced: 30 Mar 2023

CVE-2023-1712  (opens in a new tab)
CWE-574  (opens in a new tab)

How to fix?

Upgrade farm-haystack to version 1.16.0 or higher.

Overview

farm-haystack is a Neural Question Answering & Semantic Search at Scale. Use modern transformer based models like BERT to find answers in large document collections

Affected versions of this package are vulnerable to EJB Bad Practices: Use of Synchronization Primitives via the hard coded value of config.jwt.secret. Using this value it is possible to create new jwt tokens that have the super_admin role and allow a low level user to make previously restricted actions.

References

CVSS Base Scores

version 3.1