Informa TechTarget
|
Cybersecurity Dive
InformationWeek
Channel Dive
TechTarget Cybersecurity
探索我们的品牌
Dark Reading Resource Library
Black Hat News
Omdia Cybersecurity
广告合作
通讯订阅
网络安全主题
全球视野
边缘计算
DR Technology
活动
资源
漏洞与威胁
网络风险
威胁情报
网络攻击与数据泄露
新闻
Java4Shell 漏洞威胁全球企业及 Java 应用生态系统
通过人工智能发现,该内存损坏漏洞影响 OpenJDK 运行时环境,可能允许未经身份验证的攻击者接管系统。
Elizabeth Montalbano,特约撰稿人
2026年11月19日
6分钟阅读
来源:NIKREATS 通过 ALAMY 图库照片
Java 编程语言核心的一款开源运行时存在关键缺陷,允许未经身份验证的攻击者在全球企业组织中广泛使用的众多 Java 应用程序上执行远程代码执行(RCE)。
该内存损坏漏洞存在于流行的开源运行时 OpenJDK 的版本中。根据周二发布的一份报告,安全初创公司 Calif 的研究人员利用人工智能(AI)的帮助发现了一个针对该漏洞的通用概念验证(PoC)攻击载荷,并将其命名为“Java4Shell”。
然而,他们正在推迟发布“针对单个产品的武器化链”,以便组织有时间升级以修补该漏洞。该漏洞官方编号为 CVE-2026-114938,在 CVSS 4.0 标准下评分为 9.2。Calif 安全工程师 Quang Luong 在帖子中写道。
Java4Shell 影响以下版本:Java 17:17.0.6 至 17.0.21;Java 21:最高至 21.0.13 受影响;Java 25:最高至 25.0.5;Java 27:最高至 27.0.1;Java 8,8u511b33-perf(其性能包构建版本)。Java 11 和 Java 17.0.0 至 17.0.5 不受影响。
相关报道:巴西主要签名应用程序导致 RCE 与欺诈
OpenJDK 发布了关于该漏洞的安全公告,Oracle 昨天发布了一个补丁以修复受影响版本的 Java 中的问题。“所有 Java 用户应立即更新,”Luong 建议道。
问题出在 Base64 解码上
该漏洞的存在是因为 OpenJDK 对 Base64 的解码方式。Base64 是一种在身份验证协议、文件上传以及传递网络消息中常见地将二进制数据表示为文本的方法。
“为了更快地解码 Base64,OpenJDK 使用专门的 x86-64 CPU 指令来一次性处理多个字节,”Luong 解释道。“我们在那段经过优化的机器级代码中发现了一个错误,使得畸形输入能够覆盖相邻内存。”
具体来说,他解释说,OpenJDK 在支持的 x86-64 处理器上使用专门的 AVX-512 VBMI 指令。该错误存在于处理最后几个字符的手写汇编代码中。
“对于上述 65 个字符的输入,OpenJDK 分配了一个 50 字节的结果数组,”Luong 写道。“在解码前 64 个字符后,例程错误地处理了多余的 = 号并计算出负的输出长度。该无效长度导致了一次完整的 64 字节写入,将 62 字节写到了数组末尾之外。”
他补充说,Java 最终会拒绝该输入,但到那时相邻对象可能已经被损坏。因此,攻击者可以利用此漏洞来泄露敏感内存,就像 2014 年高度关键的 OpenSSL 漏洞 Heartbleed 所做的那样,或者执行 RCE。“这种损坏仅由 64 个 A 字符后跟一个 = 号即可触发:”Luong 写道。
相关报道:Google Project Zero 缩短漏洞披露期限,拆分专家
Java4Shell 与过往漏洞的幽灵
与之前的高调漏洞(不仅包括 Heartbleed,还包括 PHP2Shell 和 Log4Shell)一样,由于易受攻击的软件组件使用范围极广,该漏洞有可能在整个技术生态系统中造成安全困境。Luong 写道,Java “是现代经济的跳动之心”,也是第三大流行的编程语言,支撑着 90% 的财富 500 强公司。
Log4Shell于2021年披露,影响了Apache Log4j这一常用的Java日志库,使攻击者能够远程执行恶意代码。最近,PHP2Shell于2026年10月披露,暴露了PHP运行时中的关键漏洞,可能允许未经身份验证的攻击者在易受攻击的服务器上执行代码。
这两个缺陷都凸显了在组织内广泛使用的应用程序和第三方软件中识别隐藏易受攻击组件的难度;Java4Shell在这方面类似,因为它为攻击者提供了一条通过其他受信任的应用程序直接进入企业环境的途径。
“Java4Shell提醒我们,应用程序背后的软件也是你的攻击面,”应用安全解决方案提供商Black Duck的首席信息安全官Dom Glavach指出。
相关报道:‘休眠代理’战术将有效载荷隐藏在开放权重的AI模型中
对于组织而言,目前的实际问题是,“暴露程度取决于Java构建、处理器以及应用程序如何处理输入,许多团队无法快速回答这些问题,特别是对于捆绑在应用程序和容器内部的JDKs”,他说。
AI协助发现Java4Shell
由于此类缺陷嵌入得如此深入,它们可能未被发现并持续成为关键的安全漏洞。在这种情况下,使用AI来揭示Java4Shell可能有助于行业避免灾难,给组织在漏洞被广泛利用之前进行修补的时间,Cloudsmith的安全主管James Matchett指出。
“它的发现展示了AI如何揭示广泛使用的软件中的弱点,这些弱点原本可能多年未被检测到,”他说。
确实,Java4Shell的发现说明了AI如何加快漏洞发现的速度。
“一个AI编码助手在大约一小时内发现了这个bug,第一个可行的利用代码又花了两个小时,花费不到200美元的token,”网络安全公司Secure.com的工程主管Waseem Ahmed告诉Dark Reading。“该缺陷存在于最常被审计的运行时之一。这就是现在的发现方式:便宜、快速,并且对防御者和攻击者都可用。”
然而,Matchett表示,另一方面,它也能帮助攻击者更快地将安全缺陷武器化,他指出组织面临着巨大压力,必须在攻击者利用漏洞之前找到并修复这些漏洞。正如Ahmed所说,“防御者在发现漏洞到被利用之间的时间变得更少了。”
跨多个平台的远程代码执行(RCE)
毫无疑问,防御者应该认真对待Java4Shell。Calif的研究人员在其默认配置下的一系列广泛部署的Java应用程序中演示了RCE,并指出他们也使用AI来开发利用代码,Luong写道。
该团队在以下系统中实现了预授权RCE:Keycloak、Atlassian Jira、Atlassian Confluence、JFrog Artifactory、Jenkins和PingFederate。同时,他们表示Apache Kafka Broker、Apache Solr、Elasticsearch、Gerrit和Spinnaker易受后认证RCE的影响。
“列表并不详尽,”Luong写道。“我们还演示了在基于广泛使用的框架(包括Apache Struts和Spring Boot)构建的示例应用程序中的RCE。普通功能如身份验证和文件上传可能会暴露易受攻击的Base64解码器,将潜在影响扩展到我们所测试的产品之外。”
一名独立研究人员还向Calif分享了一个客户端利用代码,展示了“一个打开到恶意服务器的TLS连接的Java程序可能会被攻破,即使它没有暴露任何自己的服务”,Luong写道。
建议立即修补和缓解
组织还可以通过使用以下标志之一启动OpenJDK来缓解Java4Shell:-XX:-UseBASE64Intrinsics以禁用硬件加速的Base64编码和解码,或者-XX:UseAVX=2以禁用AVX-512,Luong建议。
他补充道,第二项措施仅应应用于 x86-64 主机,因为 ARM 上的 OpenJDK 无法识别该措施,从而导致系统无法启动。
Black Duck 的 Glavach 建议组织从进行资产盘点开始缓解流程,优先修补面向互联网的标识和构建系统,并远离网上流传的未经证实的修复程序和虚假漏洞利用代码。
Secure.com 的 Ahmed 的建议更为具体,他建议组织“找出所有运行 Java 17.0.6 或更高版本的服务器,优先修补那些暴露在互联网上的服务器,并在无法立即修补的地方禁用 Base64 内置函数。”
关于作者
伊丽莎白·蒙塔尔巴诺
特约撰稿人
伊丽莎白·蒙塔尔巴诺是一名自由撰稿人、编辑和记者,拥有30年的专业经验以及亚利桑那州立大学的硕士学位。她的专业领域包括企业技术、网络安全、商业和文化。在漫长的职业生涯中,伊丽莎白曾在凤凰城、旧金山和纽约市担任全职记者。她专注于新闻报道和分析,利用多年的经验以批判性的眼光审视网络安全的现状。她目前居住在葡萄牙西南海岸的一个村庄,在空闲时间,她喜欢冲浪、带着她的狗徒步旅行、种植植物,以及作为歌手和音乐家进行演奏和表演。
希望更多 Dark Reading 的故事出现在您的 Google 搜索结果中?
立即添加我们
更多见解
行业报告
2026年网络安全状况报告:弥合差距
自主端点管理的优势
云安全现状:最新挑战
组织如何管理事件响应
企业如何开发安全应用程序
获取更多研究
网络研讨会
中国内部人的优势:人才计划对您的研究和知识产权意味着什么
保护活动目录:抵御现代攻击
当管道破裂时:来自 PHP2Shell 和 LiteLLM 的教训
从影子 AI 到流氓代理:保护您看不见的 AI
弹性架构:设计能够抵御入侵的系统
更多网络研讨会
您可能也喜欢
漏洞与威胁
微软 Exchange 零日漏洞遭攻击,暂无补丁可用
作者 Rob Wright
2026年5月18日
漏洞与威胁
思科发布48个新防火墙漏洞,其中2个为严重级别
作者 Nate Nelson
2026年3月5日
漏洞与威胁
思科 SD-WAN 零日漏洞已被利用长达3年
作者 Rob Wright
2026年2月26日
漏洞与威胁
廉价硬件模块绕过 AMD、Intel 内存加密
作者 Rob Wright
2025年11月25日
精选
查看 Black Hat USA 2026 会议指南,获取来自该展会及关于该展会的报道和情报!
编辑精选
网络风险
9条真正契合当今威胁迷宫的网络安全意识建议
作者 Tara Seals
2026年11月3日
16分钟阅读
网络安全运营
投资者谈论新创公司以及他们接下来会支持哪些项目
作者 Arielle Waldman
2026年10月30日
5分钟阅读
网络风险
为何加勒比地区的威胁会演变为全球网络风险
作者 Marlon Cooper
2026年10月23日
4分钟阅读
Black Hat 2026 要点
没能前往拉斯维加斯参加 Black Hat USA?我们追踪了最重要的发展动态。
立即获取您的回顾
2026年12月3日 | 虚拟活动
2027年网络安全展望
锁定您的席位
紧跟最新的网络安全威胁、新发现的漏洞、数据泄露信息和新兴趋势。每日或每周直接发送至您的电子邮件收件箱。
订阅
2026年12月7-10日 | 伦敦
提供为期两天和四天的专业网络安全培训,涵盖所有技能水平的课程。使用代码:DARKREADING,您的通行证可享9折优惠。
了解更多
2027年5月31日 – 6月2日 | 沙特阿拉伯
这一领先的网络安全会议与展览汇聚了来自全球的网络安全专业人士、尖端技术、解决方案提供商和决策者。
了解更多
希望更多 Dark Reading 的故事出现在您的 Google 搜索结果中?
了解更多
Black Hat
Omdia
与我们合作
关于我们
认识编辑团队
广告投放
reprint(重印)
加入我们
订阅通讯
关注我们
版权所有 © 2026 TechTarget, Inc. d/b/a Informa TechTarget。本网站由 Informa TechTarget 拥有并运营,后者是全球网络的一部分,旨在告知、影响并连接全球的技术买家与卖家。所有版权均归其所有。Informa PLC 的注册办公室位于英国伦敦 SW1P 1WG,Howick Place 5 号。该公司在英格兰和威尔士注册。TechTarget, Inc. 的注册办公室位于美国马萨诸塞州牛顿市 Grove St. 275 号,邮编 02466。
首页|
Cookie 政策|
隐私权|
使用条款
您的隐私选择
Informa TechTarget
|
Cybersecurity Dive
InformationWeek
Channel Dive
TechTarget Cybersecurity
Explore our brands
Dark Reading Resource Library
Black Hat News
Omdia Cybersecurity
Advertise
NEWSLETTER SIGN-UP
Cybersecurity Topics
World
The Edge
DR Technology
Events
Resources
VULNERABILITIES & THREATS
CYBER RISK
THREAT INTELLIGENCE
CYBERATTACKS & DATA BREACHES
NEWS
Java4Shell Flaw Threatens Global Enterprises, Java Application Ecosystem
Discovered using AI, the memory corruption vulnerability affects the OpenJDK runtime and could allow unauthenticated attackers to take over systems.
Elizabeth Montalbano,Contributing Writer
November 19, 2026
6 Min Read
SOURCE: NIKREATS VIA ALAMY STOCK PHOTO
A critical flaw in an open source runtime at the heart of the Java programming language allows unauthenticated attackers to perform remote code execution (RCE) on myriad Java applications used globally across enterprise organizations.
The memory corruption vulnerability exists in versions of OpenJDK, a popular open source runtime. Researchers at security startup Calif demonstrated a general proof-of-concept (PoC) exploit for the flaw, dubbed "Java4Shell" and discovered with the help of artificial intelligence (AI), according to a report published Tuesday.
However, they are holding back the release of "weaponized chains for individual products" to give organizations time to upgrade to patch the vulnerability, officially tracked as CVE-2026-114938 and rated as 9.2 under CVSS 4.0, in affected applications, Calif security engineer Quang Luong wrote in the post.
Java4Shell affects the following releases: Java 17: 17.0.6 to 17.0.21; Java 21: up to 21.0.13 affected; Java 25: up to 25.0.5; Java 27: up to 27.0.1; Java 8, 8u511b33-perf, its Performance Pack build. Java 11 and Java 17.0.0 to 17.0.5 remain unaffected.
Related:Major Brazilian Signature Apps Enable RCE & Fraud
OpenJDK published a security advisory on the flaw, and Oracle released a patch yesterday to fix the issue in the affected versions of Java. "All Java users should update immediately," Luong recommended.
Issue Lies in Base64 Decoding
The flaw exists because of how OpenJDK decodes Base64, a common way of representing binary data as text in authentication protocols, in file uploads, and to deliver network messages.
"To decode Base64 faster, OpenJDK uses specialized x86-64 CPU instructions to process many bytes at once," Luong explained. "We discovered a bug in that optimized machine-level code that lets malformed input overwrite neighboring memory."
Specifically, OpenJDK uses specialized AVX-512 VBMI instructions on supported x86-64 processors, he explained. The bug is present in the hand-rolled assembly code that handles the final few characters.
"For the 65-character input above, OpenJDK allocates a 50-byte result array," Luong wrote. "After decoding the first 64 characters, the routine mishandles the stray = and calculates a negative output length. That invalid length becomes a full 64-byte write, sending 62 bytes past the end of the array."
Java eventually rejects the input, but by then neighboring objects may already be corrupted, he added. Thus, attackers can exploit the bug to reveal sensitive memory, as the highly critical OpenSSL flaw Heartbleed did in 2014, or to perform RCE. "The corruption itself can be triggered by just 64 A characters followed by a single =:," Luong wrote.
Related:Google Project Zero Slashes Bug Disclosure Deadlines, Splitting Experts
Java4Shell and Ghosts of Flaws Past
Much like previous high-profile flaws before it, including not only Heartbleed but also PHP2Shell and Log4Shell, the flaw has potential to create a security quagmire across entire technology ecosystems because of how widespread the use of the vulnerable software component is. Indeed, Java "is the beating heart of the modern economy" and the third most popular programming language, powering 90% of Fortune 500 companies, Luong wrote.
Log4Shell, disclosed in 2021, affected Apache Log4j, a commonly used Java logging library, and enabled attackers to execute malicious code remotely. More recently, PHP2Shell, disclosed in October 2026, exposed critical vulnerabilities in the PHP runtime that could allow unauthenticated attackers to execute code on vulnerable servers.
Both flaws highlighted the difficulty of identifying vulnerable components hidden within applications and third-party software used across organizations; Java4Shell is similar in this respect because it gives attackers a direct route to enterprise environments through otherwise trusted apps.
"Java4Shell is a reminder that the software underneath your applications is also your attack surface," observes Dom Glavach, CISO at application security solutions provider Black Duck.
Related:'Sleeper Agent' Tactic Hides Payloads in Open-Weight AI Models
The practical problem now for organizations "is that exposure depends on the Java build, the processor and how an application handles input, and many teams cannot answer those questions quickly, especially for JDKs bundled inside applications and containers," he says.
AI Gets the Assist on Java4Shell Discovery
Because flaws like these are so deeply embedded, they may go undiscovered and remain critical security gaps. In this case, the use of AI to uncover Java4Shell potentially may have helped the industry avert disaster, giving organizations time to patch before it's been widely exploited, notes James Matchett, head of security at Cloudsmith.
"Its discovery shows how AI can uncover weaknesses in widely used software that might otherwise have gone undetected for years," he says.
Indeed, Java4Shell's discovery iillustrates how AI can speed up vulnerability discovery.
"An AI coding assistant found this bug in about an hour and a first working exploit took two more, for under $200 in tokens," Waseem Ahmed, head of engineering for cybersecurity firm Secure.com, tells Dark Reading. "The flaw sat in one of the most-audited runtimes there is. That is what discovery looks like now: cheap, fast, and available to defenders and attackers alike."
However, Matchett says the flip side is it also can help attackers move more quickly to weaponize security flaws, noting that organizations are under intense pressure to find and remediate vulnerabilities before attackers can exploit them. As Ahmed puts it, "defenders now have less time between a bug being found and being used."
RCE Across Multiple Platforms
There is little doubt that defenders should take the Java4Shell seriously. Calif researchers demonstrated RCE in a laundry list of widely deployed Java applications in their default configurations, noting that they, too, used AI to develop exploits, Luong wrote.
The team achieved pre-authorization RCE in the following: Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, and PingFederate. Meanwhile, Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, and Spinnaker are vulnerable to post-auth RCE, they said.
"The lists are non-exhaustive," Luong wrote. "We also demonstrated RCE in sample applications built on widely used frameworks, including Apache Struts and Spring Boot. Ordinary features such as authentication and file uploads can expose the vulnerable Base64 decoder, extending the potential impact far beyond the products we tested."
An independent researcher also shared with Calif a client-side exploit that demonstrates how "a Java program that opens a TLS connection to a malicious server can be compromised, even if it exposes no service of its own," Luong wrote.
Immediate Patching, Mitigation Recommended
Organizations also can mitigate Java4Shell by starting OpenJDK with one of the following flags: -XX:-UseBASE64Intrinsics to disable hardware-accelerated Base64 encoding and decoding, or -XX:UseAVX=2 to disable AVX-512, Luong advised.
The second should only be applied on x86-64 hosts, as OpenJDK on ARM does not recognize it and thus won't start the system, he added.
Black Duck's Glavach recommends that organizations start their mitigation process with conducting an inventory, patching Internet-facing identity and build systems first, and staying clear of unverified fixes and fake exploits circulating online.
Secure.com's Ahmed was even more specific, advising that organizations "find every server running Java 17.0.6 or later, patch the ones open to the Internet first, and turn off the Base64 intrinsic where you can't patch yet."
About the Author
Elizabeth Montalbano
Contributing Writer
Elizabeth Montalbano is freelance writer, editor, and journalist with 30 years of professional experience and a master's degree from Arizona State University. Her areas of expertise include enterprise technology, cybersecurity, business, and culture. During her long career, Elizabeth has lived and worked as a full-time journalist in Phoenix, San Francisco, and New York City. She specializes in news coverage and analysis, using her years of experience to look at the current state of cybersecurity with a critical gaze. She currently resides in a village on the southwest coast of Portugal, where in her free time she enjoys surfing, hiking with her dogs, growing plants, and playing and performing as a singer and musician.
Want more Dark Reading stories in your Google search results?
ADD US NOW
More Insights
Industry Reports
2026 State of Cybersecurity Report: Bridging the Divide
The Autonomous Endpoint Management Advantage
The State of Cloud Security: The Latest Challenges
How Organizations Are Managing Incident Response
How Enterprises Are Developing Secure Applications
Access More Research
Webinars
China's Insider Advantage: What Talent Programs Mean for Your Research and IP
Securing Active Directory: Defending Against Modern Attack
When the Plumbing Breaks: Lessons from PHP2Shell and LiteLLM
From Shadow AI to Rogue Agents: Securing the AI You Can't See
Resilient Architecture: Designing Systems That Survive Compromise
More Webinars
You May Also Like
VULNERABILITIES & THREATS
Microsoft Exchange Zero-Day Under Attack, No Patch Available
by Rob Wright
MAY 18, 2026
VULNERABILITIES & THREATS
Cisco Drops 48 New Firewall Vulnerabilities, 2 Critical
by Nate Nelson
MAR 05, 2026
VULNERABILITIES & THREATS
Cisco SD-WAN Zero-Day Under Exploitation for 3 Years
by Rob Wright
FEB 26, 2026
VULNERABILITIES & THREATS
Cheap Hardware Module Bypasses AMD, Intel Memory Encryption
by Rob Wright
NOV 25, 2025
Featured
Check out the Black Hat USA 2026 Conference Guide for coverage and intel from — and about — the show!
Editor's Choice
CYBER RISK
9 Cyber Awareness Tips That Actually Match Today's Maze of Threats
byTara Seals
NOV 3, 2026
16 MIN READ
CYBERSECURITY OPERATIONS
Investors Dish on New Startups & What They'd Back Next
byArielle Waldman
OCT 30, 2026
5 MIN READ
CYBER RISK
Why Caribbean Threats Cascade Into Global Cyber-Risk
byMarlon Cooper
OCT 23, 2026
4 MIN READ
Black Hat 2026 Takeaways
Couldn’t make it to Las Vegas for Black Hat USA? We tracked the developments that matter most.
Get Your Recap Today
DECEMBER 3, 2026 | VIRTUAL
Cybersecurity Outlook 2027
SECURE YOUR SPOT
Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox.
SUBSCRIBE
DEC 7-10, 2026 | LONDON
Offering two-and four-day specialized cybersecurity Trainings, with courses of all skill levels. Use the code: DARKREADING and get 10% off your pass.
LEARN MORE
31 MAY – 2 JUNE 2027 | SAUDI ARABIA
This leading cybersecurity conference & exhibition brings together cybersecurity professionals, cutting-edge technologies, solution providers, and decision-makers from around the world.
LEARN MORE
Want more Dark Reading stories in your Google search results?
Discover More
Black Hat
Omdia
Working With Us
About Us
Meet the Editors
Advertise
Reprints
Join Us
NEWSLETTER SIGN-UP
Follow Us
Copyright © 2026 TechTarget, Inc. d/b/a Informa TechTarget. This website is owned and operated by Informa TechTarget, part of a global network that informs, influences and connects the world’s technology buyers and sellers. All copyright resides with them. Informa PLC’s registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. TechTarget, Inc.’s registered office is 275 Grove St. Newton, MA 02466.
Home|
Cookie Policy|
Privacy|
Terms of Use
Your Privacy Choices
首次收录 · 2026-11-19 · 9.69 分