CVE-2026-29190: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Aiven-Open karapace
Karapace is an open-source implementation of Kafka REST and Schema Registry. Prior to version 6.0.0, there is a Path Traversal vulnerability in the backup reader (backup/backends/v3/backend.py). If a malicious backup file is provided to Karapace, an attacker may exploit insufficient path validation to perform arbitrary file read on the system where Karapace is running. The issue affects deployments that use the backup/restore functionality and process backups from untrusted sources. The impact depends on the file system permissions of the Karapace process. This issue has been patched in version 6.0.0.
AI Analysis
Technical Summary
Karapace is an open-source project providing Kafka REST proxy and Schema Registry functionalities. Prior to version 6.0.0, Karapace's backup reader module (specifically in backup/backends/v3/backend.py) suffers from a CWE-22 path traversal vulnerability. This vulnerability arises due to insufficient validation of file paths when processing backup files. An attacker who can supply a crafted malicious backup file to the Karapace backup/restore functionality can exploit this flaw to read arbitrary files on the underlying system. The attack vector is network-based (AV:N), requires low attack complexity (AC:L), but does require privileges (PR:H) on the system running Karapace, and no user interaction (UI:N) is needed. The scope is changed (S:C) because the vulnerability can affect resources beyond the initially intended directory. The impact is limited to confidentiality (C:L), with no integrity or availability impact. The severity is medium with a CVSS v3.1 score of 4.1. The vulnerability is relevant only if the backup/restore feature is used and untrusted backup files are processed. The issue has been fixed in Karapace version 6.0.0 by improving path validation to restrict file access within intended directories. No public exploits or active exploitation have been reported to date.
Potential Impact
The primary impact of CVE-2026-29190 is unauthorized disclosure of sensitive files on systems running vulnerable versions of Karapace. Attackers with the ability to provide malicious backup files can read arbitrary files, potentially exposing configuration files, credentials, or other sensitive data depending on the file system permissions of the Karapace process. This can lead to further compromise if sensitive information is leaked. The vulnerability does not allow code execution or denial of service, limiting its impact to confidentiality breaches. Organizations using Karapace in critical Kafka infrastructure, especially those processing backups from untrusted or external sources, face increased risk of data leakage. The scope of affected systems is limited to those running versions prior to 6.0.0 with backup/restore enabled. Since exploitation requires privileges on the host, the threat is mitigated in environments with strict access controls but remains significant in multi-tenant or shared environments where attackers may gain partial access.
Mitigation Recommendations
To mitigate CVE-2026-29190, organizations should upgrade Karapace to version 6.0.0 or later, where the vulnerability has been patched. Until upgrade is possible, restrict the use of the backup/restore functionality to trusted sources only, and avoid processing backup files from untrusted or external origins. Implement strict file system permissions for the Karapace process to minimize the impact of arbitrary file reads. Employ network segmentation and access controls to limit who can interact with the backup/restore interfaces. Monitor logs for unusual backup file processing activities. Additionally, conduct regular audits of backup files and validate their integrity before processing. Consider deploying runtime application self-protection (RASP) or file integrity monitoring to detect anomalous file access patterns. Finally, ensure that Karapace runs with the least privileges necessary to reduce exposure.
Affected Countries
United States, Germany, United Kingdom, Netherlands, Canada, France, Australia, Japan, India, Brazil
CVE-2026-29190: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Aiven-Open karapace
Description
Karapace is an open-source implementation of Kafka REST and Schema Registry. Prior to version 6.0.0, there is a Path Traversal vulnerability in the backup reader (backup/backends/v3/backend.py). If a malicious backup file is provided to Karapace, an attacker may exploit insufficient path validation to perform arbitrary file read on the system where Karapace is running. The issue affects deployments that use the backup/restore functionality and process backups from untrusted sources. The impact depends on the file system permissions of the Karapace process. This issue has been patched in version 6.0.0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Karapace is an open-source project providing Kafka REST proxy and Schema Registry functionalities. Prior to version 6.0.0, Karapace's backup reader module (specifically in backup/backends/v3/backend.py) suffers from a CWE-22 path traversal vulnerability. This vulnerability arises due to insufficient validation of file paths when processing backup files. An attacker who can supply a crafted malicious backup file to the Karapace backup/restore functionality can exploit this flaw to read arbitrary files on the underlying system. The attack vector is network-based (AV:N), requires low attack complexity (AC:L), but does require privileges (PR:H) on the system running Karapace, and no user interaction (UI:N) is needed. The scope is changed (S:C) because the vulnerability can affect resources beyond the initially intended directory. The impact is limited to confidentiality (C:L), with no integrity or availability impact. The severity is medium with a CVSS v3.1 score of 4.1. The vulnerability is relevant only if the backup/restore feature is used and untrusted backup files are processed. The issue has been fixed in Karapace version 6.0.0 by improving path validation to restrict file access within intended directories. No public exploits or active exploitation have been reported to date.
Potential Impact
The primary impact of CVE-2026-29190 is unauthorized disclosure of sensitive files on systems running vulnerable versions of Karapace. Attackers with the ability to provide malicious backup files can read arbitrary files, potentially exposing configuration files, credentials, or other sensitive data depending on the file system permissions of the Karapace process. This can lead to further compromise if sensitive information is leaked. The vulnerability does not allow code execution or denial of service, limiting its impact to confidentiality breaches. Organizations using Karapace in critical Kafka infrastructure, especially those processing backups from untrusted or external sources, face increased risk of data leakage. The scope of affected systems is limited to those running versions prior to 6.0.0 with backup/restore enabled. Since exploitation requires privileges on the host, the threat is mitigated in environments with strict access controls but remains significant in multi-tenant or shared environments where attackers may gain partial access.
Mitigation Recommendations
To mitigate CVE-2026-29190, organizations should upgrade Karapace to version 6.0.0 or later, where the vulnerability has been patched. Until upgrade is possible, restrict the use of the backup/restore functionality to trusted sources only, and avoid processing backup files from untrusted or external origins. Implement strict file system permissions for the Karapace process to minimize the impact of arbitrary file reads. Employ network segmentation and access controls to limit who can interact with the backup/restore interfaces. Monitor logs for unusual backup file processing activities. Additionally, conduct regular audits of backup files and validate their integrity before processing. Consider deploying runtime application self-protection (RASP) or file integrity monitoring to detect anomalous file access patterns. Finally, ensure that Karapace runs with the least privileges necessary to reduce exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-04T14:44:00.714Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69ac44bec48b3f10ffa88848
Added to database: 3/7/2026, 3:31:10 PM
Last enriched: 3/14/2026, 7:54:59 PM
Last updated: 4/22/2026, 7:31:06 AM
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.