
Apache Kafka Arbitrary File Read and SSRF Vulnerability (CVE-2025-27817)
Overview
Recently, NSFOCUS CERT detected that Apache issued a security bulletin to fix the arbitrary file read and SSRF vulnerabilities in Apache Kafka (CVE-2025-27817); Because the Apache Kafka client does not strictly validate and restrict user input, an unauthenticated attacker can elevate the file system/environment/URL access rights of the REST API by constructing malicious configurations to read environment variables or arbitrary disk content, or sending requests to unexpected locations. Details have been disclosed, and relevant users are requested to take measures for protection as soon as possible.
Reference link:
https://www.mail-archive.com/[email protected]/msg10119.html
Scope of Impact
Affected version
- 3.1.0 <= Apache Kafka <= 3.9.0
Unaffected version
- Apache Kafka >= 3.9.1
Mitigation
Official upgrade
At present, the official has released a new version to fix this vulnerability. It is recommended that affected users upgrade their protection in time. Download link: https://github.com/apache/kafka/tags
Temporary protective measures
1. Relevant users can use security protection devices to intercept /connectors requests containing sensitive file paths;
2. Access to Kafka Connect instances can be restricted without affecting business.
Statement
This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.
About NSFOCUS
NSFOCUS, a pioneering leader in cybersecurity, is dedicated to safeguarding telecommunications, Internet service providers, hosting providers, and enterprises from sophisticated cyberattacks.
Founded in 2000, NSFOCUS operates globally with over 4000 employees at two headquarters in Beijing, China, and Santa Clara, CA, USA, and over 50 offices worldwide. It has a proven track record of protecting over 25% of the Fortune Global 500 companies, including four of the five largest banks and six of the world’s top ten telecommunications companies.
Leveraging technical prowess and innovation, NSFOCUS delivers a comprehensive suite of security solutions, including the Intelligent Security Operations Platform (ISOP) for modern SOC, DDoS Protection, Continuous Threat Exposure Management (CTEM) Service and Web Application and API Protection (WAAP). All the solutions and services are augmented by the Security Large Language Model (SecLLM), ML, patented algorithms and other cutting-edge research achievements developed by NSFOCUS.
The post Apache Kafka Arbitrary File Read and SSRF Vulnerability (CVE-2025-27817) appeared first on NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks..
*** This is a Security Bloggers Network syndicated blog from NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks. authored by NSFOCUS. Read the original post at: https://nsfocusglobal.com/apache-kafka-arbitrary-file-read-and-ssrf-vulnerability-cve-2025-27817/