9.5 C
New York
Tuesday, March 11, 2025

Meta’s Llama Framework Flaw Exposes AI Methods to Distant Code Execution Dangers


Meta’s Llama Framework Flaw Exposes AI Methods to Distant Code Execution Dangers

A high-severity safety flaw has been disclosed in Meta’s Llama giant language mannequin (LLM) framework that, if efficiently exploited, might enable an attacker to execute arbitrary code on the llama-stack inference server.

The vulnerability, tracked as CVE-2024-50050, has been assigned a CVSS rating of 6.3 out of 10.0. Provide chain safety agency Snyk, then again, has assigned it a vital severity ranking of 9.3.

“Affected variations of meta-llama are weak to deserialization of untrusted knowledge, that means that an attacker can execute arbitrary code by sending malicious knowledge that’s deserialized,” Oligo Safety researcher Avi Lumelsky mentioned in an evaluation earlier this week.

The shortcoming, per the cloud safety firm, resides in a element referred to as Llama Stack, which defines a set of API interfaces for synthetic intelligence (AI) utility growth, together with utilizing Meta’s personal Llama fashions.

Particularly, it has to do with a distant code execution flaw within the reference Python Inference API implementation, was discovered to mechanically deserialize Python objects utilizing pickle, a format that has been deemed dangerous as a result of the potential of arbitrary code execution when untrusted or malicious knowledge is loading utilizing the library.

Cybersecurity

“In eventualities the place the ZeroMQ socket is uncovered over the community, attackers might exploit this vulnerability by sending crafted malicious objects to the socket,” Lumelsky mentioned. “Since recv_pyobj will unpickle these objects, an attacker might obtain arbitrary code execution (RCE) on the host machine.”

Following accountable disclosure on September 24, 2024, the problem was addressed by Meta on October 10 in model 0.0.41. It has additionally been remediated in pyzmq, a Python library that gives entry to the ZeroMQ messaging library.

In an advisory issued by Meta, the corporate mentioned it mounted the distant code execution danger related to utilizing pickle as a serialization format for socket communication by switching to the JSON format.

This isn’t the primary time such deserialization vulnerabilities have been found in AI frameworks. In August 2024, Oligo detailed a “shadow vulnerability” in TensorFlow’s Keras framework, a bypass for CVE-2024-3660 (CVSS rating: 9.8) that would end in arbitrary code execution as a result of using the unsafe marshal module.

The event comes as safety researcher Benjamin Flesch disclosed a high-severity flaw in OpenAI’s ChatGPT crawler, which might be weaponized to provoke a distributed denial-of-service (DDoS) assault towards arbitrary web sites.

The difficulty is the results of incorrect dealing with of HTTP POST requests to the “chatgpt[.]com/backend-api/attributions” API, which is designed to just accept an inventory of URLs as enter, however neither checks if the identical URL seems a number of occasions within the listing nor enforces a restrict on the variety of hyperlinks that may be handed as enter.

Llama Framework

This opens up a state of affairs the place a nasty actor might transmit 1000’s of hyperlinks inside a single HTTP request, inflicting OpenAI to ship all these requests to the sufferer website with out trying to restrict the variety of connections or forestall issuing duplicate requests.

Relying on the variety of hyperlinks transmitted to OpenAI, it offers a major amplification issue for potential DDoS assaults, successfully overwhelming the goal website’s assets. The AI firm has since patched the issue.

“The ChatGPT crawler may be triggered to DDoS a sufferer web site by way of HTTP request to an unrelated ChatGPT API,” Flesch mentioned. “This defect in OpenAI software program will spawn a DDoS assault on an unsuspecting sufferer web site, using a number of Microsoft Azure IP deal with ranges on which ChatGPT crawler is working.”

The disclosure additionally follows a report from Truffle Safety that fashionable AI-powered coding assistants “suggest” hard-coding API keys and passwords, a dangerous piece of recommendation that would mislead inexperienced programmers into introducing safety weaknesses of their tasks.

“LLMs are serving to perpetuate it, seemingly as a result of they have been skilled on all of the insecure coding practices,” safety researcher Joe Leon mentioned.

Information of vulnerabilities in LLM frameworks additionally follows analysis into how the fashions might be abused to empower the cyber assault lifecycle, together with putting in the ultimate stage stealer payload and command-and-control.

Cybersecurity

“The cyber threats posed by LLMs will not be a revolution, however an evolution,” Deep Intuition researcher Mark Vaitzman mentioned. “There’s nothing new there, LLMs are simply making cyber threats higher, quicker, and extra correct on a bigger scale. LLMs may be efficiently built-in into each section of the assault lifecycle with the steerage of an skilled driver. These talents are prone to develop in autonomy because the underlying expertise advances.”

Latest analysis has additionally demonstrated a brand new technique referred to as ShadowGenes that can be utilized for figuring out mannequin family tree, together with its structure, sort, and household by leveraging its computational graph. The method builds on a beforehand disclosed assault method dubbed ShadowLogic.

“The signatures used to detect malicious assaults inside a computational graph might be tailored to trace and determine recurring patterns, referred to as recurring subgraphs, permitting them to find out a mannequin’s architectural family tree,” AI safety agency HiddenLayer mentioned in a press release shared with The Hacker Information.

“Understanding the mannequin households in use inside your group will increase your total consciousness of your AI infrastructure, permitting for higher safety posture administration.”

Discovered this text attention-grabbing? Observe us on Twitter and LinkedIn to learn extra unique content material we submit.



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles