Vulnerability DatabaseGHSA-hvp5-5x4f-33fq

GHSA-hvp5-5x4f-33fq
Java vulnerability analysis and mitigation

Overview

A file override vulnerability was discovered in JADX (GHSA-hvp5-5x4f-33fq), affecting versions prior to 1.5.0. The vulnerability occurs when JADX parses resource files, specifically involving an escape problem with style files that can lead to overwriting other files in the directory when saving decompile results (GitHub Advisory).

Technical details

The vulnerability stems from JADX's handling of resource files, particularly in the getResAlias function's processing of filenames. When processing style-type files, the original filename is returned directly without proper sanitization. The vulnerability has been assigned a CVSS score of 3.3 (Low severity) with the following vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N. The issue is classified under CWE-22, indicating a path traversal weakness (GitHub Advisory).

Impact

The vulnerability allows an attacker to potentially overwrite files within the directory where decompile results are saved. While the impact is limited to the local system and requires low privileges, it could affect file integrity in the target directory (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in JADX version 1.5.0. The fix includes implementing checks to ignore resource table entries containing '../' in their names and improving the validation of ZIP entry names (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management