blog

What you need to know about  Apache’s CVE-2023-46604 Exploit and Its Impact on Apache ActiveMQ

CVE-2023-46604 Apache ActiveMQ Vulnerability ActiveMQ Security Patch Ransomware Attack Vector HelloKitty Ransomware Cybersecurity Threat Alert Vulnerability Management Application Security Best Practices Network Access Exploit Remote Code Execution Insecure Deserialization Cyber Attack Indicators Rapid7 MDR Insights ActiveMQ Exploit Code Security Patch Update Cyber Threat Mitigation ActiveMQ Version 5.18.3 Encrypted File Recovery Cybersecurity Defense Strategy ActiveMQ Configuration Security


Phoenix Security
CISA KEV
Vulnerability News
Vulnerability Weekly 
CVE-2023-46604
Apache ActiveMQ Vulnerability
ActiveMQ Security Patch
Ransomware Attack Vector
HelloKitty Ransomware
Cybersecurity Threat Alert
Vulnerability Management
Application Security Best Practices
Network Access Exploit
Remote Code Execution
Insecure Deserialization
Cyber Attack Indicators
Rapid7 MDR Insights
ActiveMQ Exploit Code
Security Patch Update
Cyber Threat Mitigation
ActiveMQ Version 5.18.3
Encrypted File Recovery
Cybersecurity Defense Strategy
ActiveMQ Configuration Security
application security
vulnerability management

With a very large deployment base, the Apache ActiveMQ and a ransomware group, Hello Kitty targeting it, CVE-2023-46604, have raised the alert, and both applications security experts and vulnerability management team should be aware of this vulnerability as is nested in dependencies and native systems. With a recent increase of exploitation since Exploit was published, CISA KEV and IBM joint advisory for nation-state-sponsored ransomware group Hello Kitty using this vulnerability, the alert should raise

With the recent exploitation of Atlassian, Cisco XE, Curl, Http/2, and many others, the end of the year feels like an endless sprint, except the hurdles are Zero-Day exploits, and the runners are cybersecurity professionals.


Data Visualization of and exploitation in various datasets and in the wild

To discover this and other vulnerabilities exploited in the wild and the data behind it explore


CVE-2023-46604 has raised the alert on application security community and vulnerability management. The recent publication of advisories from vulnerability management and application security teams from NHS digital and active exploitation has raised the alert

The vulnerability affecting Apache ActiveMQ, identified as CVE-2023-46604, on October 27, 2023. This vulnerability has not only highlighted the critical need for robust vulnerability management but has also exposed the relentless ingenuity of cyber adversaries. This blog post aims to dissect the CVE-2023-46604 vulnerability, its exploitation, and the imperative measures organizations must adopt to shield their applications and data from such cyber onslaughts.

The Discovery of CVE-2023-46604: 

On a seemingly ordinary Friday, the cybersecurity world was put on high alert as Rapid7 reported suspected exploitation of CVE-2023-46604. This remote code execution vulnerability, resulting from insecure deserialization within Apache ActiveMQ, could allow attackers to run arbitrary shell commands, leading to full system compromise.

The Mechanics of CVE-2023-46604: 

CVE-2023-46604 is not your run-of-the-mill vulnerability; it’s a convoluted one with its roots in the insecure deserialization of the OpenWire protocol. Attackers cleverly manipulate serialized class types, causing the broker to instantiate any class on the classpath, leading to the execution of malicious commands.

During a successful exploitation of the vulnerability, Java.exe will contain the specific Apache application being targeted — in this case, D:\Program files\ActiveMQ\apache-activemq-5.15.3\bin\win64The adversary attempt a Post-exploitation, rapid 7 observed, load remote binaries named M2.png and M4.png using MSIExec.

Understanding CVE-2023-46604 : 

If you are running Apache ActiveMQ, patches are available to address CVE-2023-46604 for the following versions: 5.15.16, 5.16.7, 5.17.6, and 5.18.3. To determine the version of ActiveMQ you are running, a command line tool is available. The version will be listed by running the command activemq –version

Patches can be found here: https://activemq.apache.org/components/classic/download/ 

If you cannot patch these systems, you should immediately block the systems from being accessible from the Internet, which will significantly limit the attack surface.

Apache Active MQ Affected Versions by CVE-2023-46604 : 

Apache disclosed the vulnerability and released new versions of ActiveMQ on October 25, 2023. Proof-of-concept exploit code and vulnerability details are both publicly available. 

Affected Products

According to Apache’s advisory, CVE-2023-46604 affects the following:

  • Apache ActiveMQ 5.18.0 before 5.18.3
  • Apache ActiveMQ 5.17.0 before 5.17.6
  • Apache ActiveMQ 5.16.0 before 5.16.7
  • Apache ActiveMQ before 5.15.16
  • Apache ActiveMQ Legacy OpenWire Module 5.18.0 before 5.18.3
  • Apache ActiveMQ Legacy OpenWire Module 5.17.0 before 5.17.6
  • Apache ActiveMQ Legacy OpenWire Module 5.16.0 before 5.16.7
  • Apache ActiveMQ Legacy OpenWire Module 5.8.0 before 5.15.16

Apache Active MQ Remediation:

Users are recommended to upgrade to version 5.15.16, 5.16.7, 5.17.6, or 5.18.3, which fixes this issue.

The HelloKitty Ransomware Connection:

Exploit origin and ransomware are linked to HelloKitty ransomware group. The HelloKitty group is perhaps most infamous for its 2021 attack on CD Projekt Red. HelloKitty reportedly sold the company’s data – which was claimed to include source code for its flagship games – to an unnamed bidder following an auction, the buyout sum set at $7 million.

The HelloKitty ransomware family, notorious for its disruptive antics, was linked to this vulnerability. With its source code leaked just a month prior, the ransomware was observed encrypting files and demanding ransom through a note that pointed to a specific email address for communication.

Decoding the CVE-2023-46604 Exploit Code and active exploitation: 

The official exploit, published on 27, with the poc published shortly after led to an increased exploitation activity of CVE-2023-46604

  • EPSS: Low 0.00053 (new)
  • Base 8.6 (rescored)
  • CTI 1.72 (low)
Phoenix Security
CISA KEV 
Security Patch
Ransomware Attack Vector
HelloKitty Ransomware
Cybersecurity Threat Alert
Network Access Exploit
Remote Code Execution
Insecure Deserialization
Cyber Attack Indicators
Security Patch Update
Cyber Threat Mitigation
Cybersecurity Defense Strategy Configuration Security

Shadowserver has seen an increase in exploitation since the publication of explotis; the increase of exploitation is also confirmed from Shadowserver:

Phoenix Security
CISA KEV
Security Patch
Ransomware Attack Vector
HelloKitty Ransomware
Cybersecurity Threat Alert
Network Access Exploit
Remote Code Execution
Insecure Deserialization
Cyber Attack Indicators
Security Patch Update
Cyber Threat Mitigation
Cybersecurity Defense Strategy Configuration Security
shadowserver
exploitation
Shadowserver Evidence of Exploitation

With a large distribution of systems using ActiveMQ embedded version of Apache, the ransomware group could cause automated ransomware deployment at scale, with the majority in China.

Number of active Exploited Apache Systems
Vulnerable ActiveMQ servers as of October 30
Vulnerable ActiveMQ servers as of October 30 (ShadowServer)

Vulnerable ActiveMQ servers as of October 30 (Shodan)

Indicators of Compromise for Apache ActiveMQ CVE-2023-46604

Rapid7’s analysis provided a glimpse into the attacker’s modus operandi, including the use of Java.exe and the deployment of remote binaries disguised as innocuous .png files. The indicators of compromise (IoCs) were clear, from specific IP addresses to file hashes, painting a picture of the attack’s digital footprint.

The investigation detected a number of attacking IP addresses for CVE-2023-46604 and available public exploit code. This is an example of an exploitation result nonetheless, please note that the log can be modified after a successful exploitation

2023-10-31 05:04:58,736 | WARN  | Transport Connection to: tcp://192.168.86.35:15871 failed: java.net.SocketException: An established connection was aborted by the software in your host machine | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ Transport: tcp:///192.168.86.35:15871@61616

In the above example, the attacker’s (i.e., the researcher’s) IP was 192.168.86.35, and the target TCP port was 61616. More or less information may be available depending on the logging settings, which can be modified.

Other IOCs:

Conclusion

CVE-2023-46604 is a stark reminder of the dynamic and perilous nature of cybersecurity and the compromise of the digital supply chain. 

Organisations must adopt a proactive stance, staying abreast of the latest threats and fortifying their defences with both technology and awareness. By understanding the intricacies of such vulnerabilities, who owns which assets, and which system is more exposed to those attacks, organizations can react fast and raise the alert when needed.

How Phoenix Security Can Help

attack graph phoenix security
ASPM

Phoenix Security helps organizations identify and trace which systems have vulnerabilities, understanding the relation between code and cloud. One of the significant challenges in securing applications is knowing where and how frameworks like Struts are used. ASPM tools can scan the application portfolio to identify instances of Struts, mapping out where it is deployed across the organization. This information is crucial for targeted security measures and efficient patch management. Phoenix Security’s robust Application Security Posture Management (ASPM) system is adept at not just managing, but preempting the exploitation of vulnerabilities through its automated identification system. This system prioritises critical vulnerabilities, ensuring that teams can address the most pressing threats first, optimising resource allocation and remediation efforts.

The Role of Application Security Posture Management (ASPM):

ASPM plays a vital role in managing and securing applications like those built with Apache Struts. It involves continuous assessment, monitoring, and improvement of the security posture of applications. ASPM tools can:

  1. Identify and Track Struts Components: Locate where Struts is implemented within the application infrastructure.
  2. Vulnerability Management: Detect known vulnerabilities in Struts and prioritize them for remediation.
  3. Configuration Monitoring: Ensure Struts configurations adhere to best security practices.
  4. Compliance: Check if the usage of Struts aligns with relevant cybersecurity regulations and standards.

By leveraging Phoenix Security, you not only unravel the potential threats but also take a significant stride in vulnerability management, ensuring your application security remains up to date and focuses on the key vulnerabilities.

Get an overview of your asset lineage

Previous Issues of Vulnerability Weekly


Other Useful resources

Data Visualization of vulnerabilities in the wild

CISA KEV: https://phoenix.security/what-is-cisa-kev-main/ 

Exploit in the wild: https://phoenix.security/what-is-exploitability/ 

OWASP/Appsec Vulnerability: https://phoenix.security/what-is-owasp-main/

CWE/Appsec Vulnerabilities: https://phoenix.security/what-is-cwe-main/ 


Francesco is an internationally renowned public speaker, with multiple interviews in high-profile publications (eg. Forbes), and an author of numerous books and articles, who utilises his platform to evangelize the importance of Cloud security and cutting-edge technologies on a global scale.

Discuss this blog with our community on Slack

Join our AppSec Phoenix community on Slack to discuss this blog and other news with our professional security team

From our Blog

Discover and fix CVE-2024-3094 vulnerability affecting Linux distributions liblzma, part of the xz package, Fedora, openSUSE, Debian, and Kali. Get the latest updates, fixes, and security recommendations to safeguard your system against unauthorized access through compromised XZ Utils. Protect and discover the affected system with ASPM, Application security Posture management
Francesco Cipollone
Discover and fix CVE-2024-3094 vulnerability affecting Linux distributions liblzma, part of the xz package, Fedora, openSUSE, Debian, and Kali. Get the latest updates, fixes, and security recommendations to safeguard your system against unauthorized access through compromised XZ Utils. Protect and discover the affected system with ASPM, Application security Posture management
Francesco Cipollone
Discover and fix CVE-2024-3094 vulnerability affecting Linux distributions liblzma, part of the xz package, Fedora, openSUSE, Debian, and Kali. Get the latest updates, fixes, and security recommendations to safeguard your system against unauthorized access through compromised XZ Utils. Protect and discover the affected system with ASPM, Application security Posture management
Francesco Cipollone
Explore the interplay between the MITRE ATT&CK framework and EPSS for effective vulnerability management. Learn how these tools help predict and prioritize cyber threats, with deep dives into the most and least exploited techniques. Stay ahead in cybersecurity with Phoenix’s advanced analysis.
Francesco Cipollone

Derek Fisher

Head of product security at a global fintech

Derek Fisher – Head of product security at a global fintech. Speaker, instructor, and author in application security.

Derek is an award winning author of a children’s book series in cybersecurity as well as the author of “The Application Security Handbook.” He is a university instructor at Temple University where he teaches software development security to undergraduate and graduate students. He is a speaker on topics in the cybersecurity space and has led teams, large and small, at organizations in the healthcare and financial industries. He has built and matured information security teams as well as implemented organizational information security strategies to reduce the organizations risk.

Derek got his start in the hardware engineering space where he learned about designing circuits and building assemblies for commercial and military applications. He later pursued a computer science degree in order to advance a career in software development. This is where Derek was introduced to cybersecurity and soon caught the bug. He found a mentor to help him grow in cybersecurity and then pursued a graduate degree in the subject.

Since then Derek has worked in the product security space as an architect and leader. He has led teams to deliver more secure software in organizations from multiple industries. His focus has been to raise the security awareness of the engineering organization while maintaining a practice of secure code development, delivery, and operations.

In his role, Jeevan handles a range of tasks, from architecting security solutions to collaborating with Engineering Leadership to address security vulnerabilities at scale and embed security into the fabric of the organization.

Jeevan Singh

Founder of Manicode Security

Jeevan Singh is the Director of Security Engineering at Rippling, with a background spanning various Engineering and Security leadership roles over the course of his career. He’s dedicated to the integration of security practices into software development, working to create a security-aware culture within organizations and imparting security best practices to the team.
In his role, Jeevan handles a range of tasks, from architecting security solutions to collaborating with Engineering Leadership to address security vulnerabilities at scale and embed security into the fabric of the organization.

James Berthoty

Founder of Latio Tech

James Berthoty has over ten years of experience across product and security domains. He founded Latio Tech to help companies find the right security tools for their needs without vendor bias.

Christophe Parisel

Senior Cloud Security Architect

Senior Cloud Security Architect

Chris Romeo

Co-Founder
Security Journey

Chris Romeo is a leading voice and thinker in application security, threat modeling, and security champions and the CEO of Devici and General Partner at Kerr Ventures. Chris hosts the award-winning “Application Security Podcast,” “The Security Table,” and “The Threat Modeling Podcast” and is a highly rated industry speaker and trainer, featured at the RSA Conference, the AppSec Village @ DefCon, OWASP Global AppSec, ISC2 Security Congress, InfoSec World and All Day DevOps. Chris founded Security Journey, a security education company, leading to an exit in 2022. Chris was the Chief Security Advocate at Cisco, spreading security knowledge through education and champion programs. Chris has twenty-six years of security experience, holding positions across the gamut, including application security, security engineering, incident response, and various Executive roles. Chris holds the CISSP and CSSLP certifications.

Jim Manico

Founder of Manicode Security

Jim Manico is the founder of Manicode Security, where he trains software developers on secure coding and security engineering. Jim is also the founder of Brakeman Security, Inc. and an investor/advisor for Signal Sciences. He is the author of Iron-Clad Java: Building Secure Web Applications (McGraw-Hill), a frequent speaker on secure software practices, and a member of the JavaOne Rockstar speaker community. Jim is also a volunteer for and former board member of the OWASP foundation.

Join our Mailing list!

Get all the latest news, exclusive deals, and feature updates.