AI dev tools —

Ruby, PHP, Java patch over 100 flaws, AI speeds security discovery

The recent security updates released by maintainers of prominent open-source programming languages reveal an accelerating pace in defensive research, largely driven by artificial intelligence.

Combined efforts from the teams supporting Ruby, PHP, and Java resulted in the deployment of over one hundred patches addressing a spectrum of deficiencies, including critical vulnerabilities that malicious actors could leverage for remote code execution (RCE).

The introduction of new security flaws, such as Java4Shell and Ruby2Shell, which were identified with the aid of AI-assisted research, exemplifies this trend. Furthermore, the recent updates to PHP follow mere weeks after the identification—also utilizing AI—of PHP2Shell, a widespread defect impacting approximately 70% of globally accessible websites.

Ben Ronallo, Director of Cybersecurity Operations at Black Duck, observed that "AI has made it cheap to audit the dense native code underneath these languages," speaking to Security Boulevard. He added context from the cybersecurity firm Calif, noting that Java4Shell required only about an hour to locate and two additional hours to exploit, costing less than $200, a month subsequent to the same firm assisting in the discovery of PHP2Shell.

Trey Ford, chief strategy and trust officer at Bugcrowd, stated that the utilization of AI in uncovering two of the recently patched vulnerabilities, alongside PHP2Shell, suggests that the tempo of defensive investigation is increasing. Ford shared with Security Boulevard that "There is active debate in the cyber community as to whether offensive actors are accelerating exploitation campaigns leading to compromise." He cautioned that this discussion remains unresolved, pointing out that "Breaches are not widely public, and they’re a lagging indicator, not something that can inform us today. This is a fast-moving space. Once a bug is public, the time to a working exploit keeps shrinking, AI-assisted or not." Leaders in cybersecurity must grapple with the challenging and perilous question of exploitation probability, as Ford advised, by inquiring, “is this asset internet exposed, and accessible? Is authentication required? What’s required to exploit this?”

Ronallo also pointed out that major vulnerability announcements frequently direct researchers back toward established codebases. This was evident when PHP released fixes this week addressing the third significant issue associated with its session upload progression within a single month, while Ruby’s patches simultaneously corrected seven memory-safety defects. These disclosures are also leading to a compression of the time available for remediation. Ronallo mentioned that "More than 100,000 CVEs have been published this year, more than double the 2025 total, with much of the increase attributed to AI-assisted research."

The integration of AI into vulnerability discovery is speeding up the window before exploitation occurs. Ronallo noted that malicious entities are employing legitimate AI tools, such as the ARTEX open source AI penetration tool, although its primary use appears to be against already known weaknesses.

Oracle released a security update this week for Java4Shell, designated as CVE-2026-114938. This vulnerability involves an out-of-bounds write within OpenJDK’s hardware-optimized Base64 decoder, a component developers use for converting Base64-encoded text back into its original raw binary byte data. Affecting OpenJDK versions 17.0.6 and subsequent releases, Java4Shell was discovered by researchers at Calif and assigned a critical severity rating of 9.2. The remedy for Java4Shell was included in a broader set of updates; the decoder is part of the Java Development Kit, and the researchers demonstrated RCE within Java applications like Jenkins and JFrog Artifactory. Both CISA and security vendors, such as Rapid7, have issued recommendations for organizations to apply the patch without delay. Additionally, the PHP Foundation deployed security fixes for 18 vulnerabilities this week, with seven of those rated as critical. These new patches, part of the foundation’s standard four-week patching cycle, arrive one month after Calif discovered the two PHP2Shell vulnerabilities. Following the disclosure of PHP2Shell, instances of attacks on internet-facing systems in the wild were subsequently observed.

The maintainers of the Ruby language provided fixes for seven flaws, one of which is Ruby2Shell, tracked as CVE-2026-132825 and assigned a severity score of 7.4 out of 10. This flaw constitutes a one-byte heap overflow within the interpreter’s string case conversion mechanism. The maintainers reported that proof-of-concepts (PoCs) have demonstrated that an unauthenticated attacker could exploit this vulnerability to execute code on default Ruby on Rails software. OX Security researchers documented in a report that, "Even without code execution, a crafted request can crash the Ruby process." Aikido Security researchers pointed out that both Rails and classic-style Sinatra applications are exposed by default, adding that "GitLab is affected, and so are GitHub Enterprise Server, Mastodon, OpenProject, Discourse and Chatwoot. Their latest releases still bundle a vulnerable Ruby." While both vendors reported no live attacks, they acknowledged that the maintainers are aware of PoC exploits. Veria Labs, a cybersecurity startup, stated that the root cause of Ruby2Shell lies in the fact that "most of Ruby's single-byte encodings have no capital ß. Upcasing it writes two bytes, SS, but the loop only bounds-checks one. The output buffer is allocated as the input length plus 20 bytes. Each ß adds one byte to the output, so an input with 21 of them overflows the buffer by one byte." These Veria Labs researchers claimed they were the first to find the issue and demonstrate RCE, adding that they intend to release a PoC showing RCE on standard Rails on November 25, or later if major vendors have not yet issued a fix.

Despite the inherent risk, OX researchers concluded that "Ruby2Shell is more marketing than actual risk. The bug is real and the fix is worth installing, but nothing published so far shows that attackers can, or will, turn it into a working attack against real Ruby applications." They elaborated that although PoCs exist, a weaponized exploit capable of functioning against actual applications is unlikely, stating, “Turning a one-byte heap overflow into code execution typically means grooming the heap, tailoring the exploit to each target and crashing the process on every miss.” They further noted, “The attacker has to get crafted input into the affected regex or string case conversion code of a specific application.”

The increased reliance on AI in vulnerability detection signals a structural shift in the security lifecycle, placing greater pressure on platform maintainers to rapidly integrate and deploy countermeasures against sophisticated, AI-assisted discovery methods.

Why it matters

The rapid discovery of critical flaws using AI tools significantly compresses the window for defenders to patch systems. Operators must prioritize immediate application of these patches to mitigate risks from easily exploitable vulnerabilities in core infrastructure components.

Earlier coverage

Reported by DevOps.com.

ai-devtoolssecurity

Related coverage

Elsewhere in this edition