Ghost Bits: Java's Hidden Threat Revealed

Visual TL;DR
silent loss of high-order bits during character to byte conversions
From the article 2 mentionsThis vulnerability, stemming from the loss of high-order bits during type casting, has been quietly present in Java for years, largely unnoticed, and can be exploited to bypass security measures like Web Application Firewalls (WAFs) and execute a range of malicious attacks.
security researchers Xinyu Bai and Zhihui Chen revealed this hidden vulnerability
From the article 9+ mentionsIn a compelling presentation at Black Hat Asia 2026, security researchers Xinyu Bai and Zhihui Chen unveiled a novel threat lurking within the Java ecosystem, which they've termed 'ghost bits'.
exploiting ghost bits to circumvent Web Application Firewalls and security measures
From the article 4 mentionsWeb Application Firewall (WAF) Bypass: They demonstrated how ghost bits can be used to bypass common WAF rules, allowing malicious payloads to pass through undetected.
new focus on understanding and developing future detection methods for this threat
From the articleThe sheer pervasiveness of this issue across the Java ecosystem underscores the need for a systematic approach to detection and mitigation.
silent loss of high-order bits during character to byte conversions
From the article 2 mentionsThis vulnerability, stemming from the loss of high-order bits during type casting, has been quietly present in Java for years, largely unnoticed, and can be exploited to bypass security measures like Web Application Firewalls (WAFs) and execute a range of malicious attacks.
security researchers Xinyu Bai and Zhihui Chen revealed this hidden vulnerability
From the article 9+ mentionsIn a compelling presentation at Black Hat Asia 2026, security researchers Xinyu Bai and Zhihui Chen unveiled a novel threat lurking within the Java ecosystem, which they've termed 'ghost bits'.
Chinese character transforms to English 'X' after conversion, half bits disappear
From the article 2 mentionsThe core of their research centers on 'ghost bits', the high-order bits that are silently discarded during type conversions in Java.
exploiting ghost bits to circumvent Web Application Firewalls and security measures
From the article 4 mentionsWeb Application Firewall (WAF) Bypass: They demonstrated how ghost bits can be used to bypass common WAF rules, allowing malicious payloads to pass through undetected.
enabling a range of other malicious attacks beyond just WAF evasion
From the article 5 mentionsPath Traversal and File Upload Bypass: They illustrated how ghost bits can facilitate path traversal attacks in systems like Tomcat by altering file names during character-to-byte conversions, allowing attackers to bypass file upload restrictions and save malicious files with seemingly harmless names.
new focus on understanding and developing future detection methods for this threat
From the articleThe sheer pervasiveness of this issue across the Java ecosystem underscores the need for a systematic approach to detection and mitigation.
Contents(3)
© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Watch
The videos behind the news, one flip at a time
The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.
Written by
Daniel SingerEditor, StartupHub.ai
Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.


