[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fuV0z33aFhqDF-kk_-SY73YcIZIRZsXwfzv9-Mta6_1w":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"eac6af67-ccd4-486b-9efb-1d31173e6f09","ai-powered-code-review-catches-java4shell-at-the-source-years-later","0c2f776d-540b-442e-a13a-1f7de8146026","AI-Powered Code Review Catches Java4Shell at the Source — Years Later","The Java4Shell vulnerability (CVE-2026-114938) was introduced into OpenJDK through a pull request in 2021, yet it went undetected at the point of contribution — the most effective moment to have caught it. Aikido's Deep Review tool demonstrated that automated, AI-assisted static analysis of incoming code changes could have flagged the memory corruption bug in the Base64 decoder before it ever merged into the codebase. This incident highlights a critical gap in the software supply chain: vulnerabilities born inside trusted open-source projects are often invisible to traditional downstream scanning because they haven't yet received a CVE at the time of introduction. The risk matters enormously because Java is foundational infrastructure for countless enterprise systems, meaning a single uncaught flaw propagates across millions of deployments. Integrating deep code review tooling directly into the pull request pipeline — rather than relying solely on post-release vulnerability databases — is essential for catching bugs at their origin.","**Immediate actions:**\n- Integrate automated static analysis and AI-assisted deep code review tools into every pull request pipeline for critical open-source and internal projects.\n- Subscribe to upstream project security advisories and monitor commit histories for patches to undisclosed vulnerabilities.\n\n**Long-term improvements:**\n- Establish a Software Composition Analysis (SCA) program that tracks all open-source dependencies and receives alerts when new CVEs affect them.\n- Contribute to or fund security audits of critical open-source dependencies your organisation relies upon.\n- Maintain a comprehensive Software Bill of Materials (SBOM) for all products to accelerate impact assessment when upstream vulnerabilities emerge.\n\n**Detection measures:**\n- Deploy runtime application self-protection (RASP) or memory-safety monitoring on JVM-based services to detect exploitation attempts targeting memory corruption bugs.\n- Implement continuous vulnerability scanning that re-evaluates the entire dependency tree whenever new CVEs are published, not only at build time.",[12,13,14,15,16],"CIS Control 16: Application Software Security (v8)","NIST SP 800-53 SA-11: Developer Testing and Evaluation","NIST CSF 2.0 ID.RA-01: Vulnerabilities in assets are identified, validated, and recorded","NIS2 Article 21(2)(e)","OWASP A06:2021 Vulnerable and Outdated Components",{"NIS2 Article 21(2)(e)":18,"OWASP A06:2021 Vulnerable and Outdated Components":19,"CIS Control 16: Application Software Security (v8)":20,"NIST SP 800-53 SA-11: Developer Testing and Evaluation":21,"NIST CSF 2.0 ID.RA-01: Vulnerabilities in assets are identified, validated, and recorded":22},"This point specifically covers security in acquisition, development and maintenance including vulnerability handling, directly requiring that organisations apply secure development practices and vulnerability review to software they develop or acquire — including open-source components.","This risk category addresses the failure to track and remediate vulnerabilities in software components, which is precisely what occurred when a memory-corruption flaw entered OpenJDK undetected and propagated to all downstream consumers of the library.","CIS Control 16 requires security review of application code and use of static analysis tools during development, which — applied to the OpenJDK pull request — would have caught the memory corruption bug before it merged.","SA-11 requires developers to perform security testing and code reviews as part of the development lifecycle, the control that was absent when the vulnerable Base64 decoder change was accepted without security analysis.","This category calls for identifying vulnerabilities in assets including software components, which would encompass scanning incoming pull requests to open-source projects for memory-safety flaws before they become embedded vulnerabilities.","published","2026-11-18T22:20:59.890244+00:00","2026-11-18T22:20:59.875+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.aikido.dev\u002Fblog\u002Fdeep-review-finds-java4shell-in-pr","aikido-s-deep-review-finds-java4shell-in-the-pr-that-introduced-it-d2fb4d","Aikido's Deep Review finds Java4Shell in the PR that introduced it",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"05757c8d-6b93-4194-b35d-7359e7d33b0e","Vulnerability Management","vulnerability-management","Missing scans, no risk prioritization","#fb923c",{"id":38,"name":39,"slug":40,"description":41,"color":42},"f0c2a0af-58aa-4128-87c9-6acd30f2dc48","Supply Chain","supply-chain","Third-party risk, compromised dependencies","#8b5cf6",[],[45,48,52],{"slug":34,"name":46,"problem":47},"Vulnerability scanning and prioritisation","You know which systems are vulnerable, and which ones to fix first.",{"slug":49,"name":50,"problem":51},"patch-management","Automated patch management","Known holes get closed in days, not months.",{"slug":53,"name":54,"problem":55},"software-supply-chain","Software supply chain security","Malicious and vulnerable open-source packages are caught before they ship."]