Friday, February 3, 2023
  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Glossary
  • Community Forum
  • Web Hosting Directory
  • Login
  • Register
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Network/Internet
    • Windows
    • Software
    • Hardware
    • Blockchain
    • Policy/Legislation
    • How-Tos
    • Troubleshooting
No Result
View All Result
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Network/Internet
    • Windows
    • Software
    • Hardware
    • Blockchain
    • Policy/Legislation
    • How-Tos
    • Troubleshooting
No Result
View All Result
Cloud7 News
No Result
View All Result

Home > Cybersecurity > Apache Cassandra DB software is vulnerable

Apache Cassandra DB software is vulnerable

A high-severity vulnerability is reported in Apache Cassandra database software, allowing remote code execution.


Rusen Gobel Rusen Gobel
February 16, 2022
3 min read
Apache Cassandra DB software is vulnerable

Apache Cassandra database software has a high-severity vulnerability that allows RCE (Remote Code Execution). The software is used for managing very large amounts of structured data across commodity servers. The vulnerability targets the system with only specific configurations related to user-defined functions.

CVSS score: 8.4

The vulnerability on Cassandra software can be tracked with CVE-2021-44521 and it has a CVSS score of 8.4, which makes it a high severity flaw. Thankfully, the flaw can only be exploited on the systems with user-defined functions are enabled. Those functions are disabled as default. If the “cassandra.yaml” configuration file contains the definitions below, the system is vulnerable to CVE-2021-44521:

enable_user_defined_functions: true
enable_scripted_user_defined_functions: true
enable_user_defined_functions_threads: false

The vulnerability has been found and explained by the researchers of JFrog. According to the whitepaper written by Omer Kaspi, enable_user_defined_functions_threads: false line is the key to the vulnerability. Omer Kaspi, Security Researcher at JFrog said;

Omer Kaspi, security researcher of JFrog
Omer Kaspi, Security Researcher at JFrog

« When enable_user_defined_functions_threads is set to false, our UDF code runs in the daemon thread, which specifically has the permission to invoke setSecurityManager. This immediately allows us to turn off the security manager, so now we just need to bypass the class filtering mechanism.

When running JavaScript code on top of Nashorn we can use this.engine to access the Nashorn instance engine. This actually allows us to bypass any class filter by creating a new script engine, which is not restricted by the class filtering mechanism. »

Fixing this issue is possible by applying the following patches to Apache Cassandra database software:

  • 3.0.x versions to 3.0.26
  • 3.11.x versions to 3.11.12
  • 4.0.x versions to 4.0.2

If updating Cassandra instances is not possible due to some integration reasons, it is also possible to mitigate the vulnerability by following the steps below:

  • If UDFs are not actively used, they can be completely disabled by setting enable_user_defined_functions to false
  • If UDFs are needed, set enable_user_defined_functions_threads to true
  • Remove the permissions of creating, altering, and executing functions for untrusted users by removing the following permissions by using the code below, with replacing the role_name with the desired role:
    revoke CREATE ON ALL FUNCTIONS,ALL FUNCTIONS IN KEYSPACE,FUNCTION from <role_name>;
    revoke CREATE ON ALL ALL FUNCTIONS IN KEYSPACE from <role_name>;
    revoke CREATE ON FUNCTION from <role_name>;
    revoke ALTER ON ALL FUNCTIONS,ALL FUNCTIONS IN KEYSPACE,FUNCTION from <role_name>;
    revoke ALTER ON ALL ALL FUNCTIONS IN KEYSPACE from <role_name>;
    revoke ALTER ON FUNCTION from <role_name>;
    revoke EXECUTE ON ALL FUNCTIONS,ALL FUNCTIONS IN KEYSPACE,FUNCTION from <role_name>;
    revoke EXECUTE ON ALL ALL FUNCTIONS IN KEYSPACE from <role_name>;
    revoke EXECUTE ON FUNCTION from <role_name>;

    See more Cybersecurity News


    Tags: Cassandra
    Rusen Gobel

    Rusen Gobel

    Rusen Gobel is a news editor at Cloud7 News. With more than 10 years of experience, Rusen worked as a hardware and software news editor for technology sites such as Shiftdelete, Teknokolis, Hardware Plus, BT Haber. In addition, Rusen publishes consumer product reviews on his YouTube channel. While consumer electronics has been his main focus for years, now Rusen is more interested in WordPress and software development. He had contributed different web application projects in his professional career. Rusen had graduated from Istanbul University, department of Computer Engineering. Rusen has a very high passion for learning and writing for every kind of technology. That's why he has been working as a tech editor for more than ten years on several different technology magazines and online news portals.

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    I agree to the Terms & Conditions and Privacy Policy.

    Next Post
    Imunify360 version 6.3 released

    Imunify360 version 6.3 released

    Related News

    LockBit encryptor source code is updated

    LockBit encryptor source code is updated

    February 3, 2023 4:40 pm
    Fortinet is expanding its SOC offerings portfolio

    Fortinet is expanding its SOC offerings portfolio

    February 3, 2023 2:00 pm
    Radware announces a new partner program

    Radware announces a new partner program

    February 3, 2023 1:30 pm
    APTs are looking for developers to hire with hefty paychecks

    APTs are looking for developers to hire with hefty paychecks

    February 1, 2023 2:30 pm
    Get free daily newsletters from Cloud7 News Get the Cloud7 Newsletter
    Select list(s):

    Check your inbox or spam folder to confirm your subscription.

    By subscribing, you agree to our
    Copyright Policy and Privacy Policy

    Get the free newsletter

    Subscribe to receive the latest IT business updates straight to your inbox.

    Select list(s):

    Check your inbox or spam folder to confirm your subscription.

    Editor's Choice

    What’s new in Linux kernel 6.2 rc6?

    10 Best Web Hosting Services of 2023

    Ubuntu 22.04 LTS is available for download. What is new?

    CERN and Fermilab recommend AlmaLinux

    7 best hosting control panels of 2023

    How to update Linux Kernel without rebooting?

    7 best Linux mail servers of 2023

    7 best cPanel alternatives for 2023

    7 best Linux web browsers for 2023

    7 best CentOS alternatives

    7 best Linux server distros of 2023

    Interview with Igor Seletskiy on AlmaLinux

    How to create a VM on VMware Workstation

    Recent News

    • LockBit encryptor source code is updated
    • LibreOffice 7.5 Community is released. What’s new?
    • NTT to add Palo Alto Networks’ solution to its portfolio
    • Gcore announces partnership with Super Protocol
    • Fortinet is expanding its SOC offerings portfolio

    Cloud7 News
    Cloud7 is a news source that publishes the latest news, reviews, comparisons, opinions, and exclusive interviews to help tech users of high-experience levels in the IT industry.

    EXPLORE

    • Web Hosting
    • Cloud Computing
    • Data Center
    • Cybersecurity
    • Linux
    • Network/Internet
    • Software
    • Hardware
    • How-Tos
    • Troubleshooting

    RESOURCES

    • Events
    • Interviews
    • Jobs
    • Opinion
    • Whitepapers
    • Glossary
    • Community Forum
    • Web Hosting Directory

    Get the Cloud7 Newsletter

    Get FREE daily newsletters from Cloud7 delivering the latest news and reviews.

    • About
    • Privacy & Policy
    • Copyright Policy
    • Contact

    © 2023, Cloud7 News. All rights reserved.

    No Result
    View All Result
    • Cloud Computing
    • Web Hosting
    • Data Center
    • Linux
    • Cybersecurity
    • More
      • Network/Internet
      • Windows
      • Software
      • Hardware
      • Blockchain
      • Policy/Legislation
      • How-Tos
      • Troubleshooting
    • Events
    • Interviews
    • Jobs
    • Opinion
    • Whitepapers
    • Glossary
    • Community Forum
    • Web Hosting Directory

    © 2023, Cloud7 News. All rights reserved.

    Welcome Back!

    Sign In with Facebook
    Sign In with Google
    Sign In with Linked In
    OR

    Login to your account below

    Forgotten Password? Sign Up

    Create New Account!

    Sign Up with Facebook
    Sign Up with Google
    Sign Up with Linked In
    OR

    Fill the forms below to register

    *By registering into our website, you agree to the Terms & Conditions and Privacy Policy.
    All fields are required. Log In

    Retrieve your password

    Please enter your username or email address to reset your password.

    Log In
    This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.