All vulnerabilities
CVE-2026-113730GHSA-crwc-vw2r-qr6m

ognl:ognl: OGNL stricter-invocation block list bypass via java.lang.reflect reflection proxies

orphan-oss ognl:ognlmavenLibraries & packages
CVSS
5.6Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.36%Chance of exploitation activity in the next 30 days, higher than 28% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in3.4.13Fixed versionGitHub
Published20 Oct 2026Updated 21 Oct 2026CVE List

What fixes it

  • 3.4.13ognl:ognl, mavenGitHub<dependency><groupId>ognl</groupId><artifactId>ognl</artifactId><version>3.4.13</version></dependency>
  • 3.4.13ognl:ognl, MavenOSV<dependency><groupId>ognl</groupId><artifactId>ognl</artifactId><version>3.4.13</version></dependency>

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Summary

OGNL's optional *stricter invocation* mode maintains a block list that prevents expressions from directly calling methods on dangerous classes such as Runtime, ProcessBuilder, and ClassLoader. The block list filters on the declaring class of the method OGNL invokes. Because java.lang.reflect.Method (and Constructor/Field) are not on the list, an expression can use reflection as a proxy — someMethod.invoke(target, args) — to reach a blocked method. The real call (e.g. ProcessBuilder.start()) then executes inside the JDK reflection machinery and never passes back through OGNL's invokeMethod, so the block list never sees it.

Proof of concept

Under the default OGNL context (public-only access, stricter invocation enabled), the following expression creates a file even though a direct new ProcessBuilder(...).start() is blocked:

(#pb=new java.lang.ProcessBuilder({"/usr/bin/touch","rce-proof.txt"}),
 #methods=@java.lang.ProcessBuilder@class.getMethods(),
 #names=#methods.{ #this.getName() },
 #startIdx=#names.indexOf("start"),
 #methods[#startIdx].invoke(#pb, null))

Impact and scope — please read carefully

This is hardening of a defense-in-depth secondary layer, not a break of OGNL's primary security boundary.

In OGNL the stricter-invocation block list is a *secondary* mitigation. The primary access-control gate is the MemberAccess implementation supplied by the integrating framework or application, which OGNL consults on every constructor and method call. Frameworks that evaluate untrusted expressions are expected to install a restrictive MemberAccess — for example, Apache Struts' SecurityMemberAccess, which excludes dangerous classes and the java.lang.reflect package. Against such a MemberAccess this PoC is blocked at the very first step (the new ProcessBuilder(...) constructor), before reflection is ever reachable.

The default context that ships with OGNL intentionally allows all public members and is not designed to sandbox untrusted input. An application that evaluates attacker-controlled expressions with that permissive default already has many paths to code execution, and this technique is not required to achieve it.

You are affected only if all of the following hold: (1) your application evaluates untrusted/attacker-controlled OGNL expressions, (2) it uses OGNL's default permissive MemberAccess (or an equivalently permissive one that allows java.lang.reflect), and (3) it relies on the stricter-invocation block list as its sandbox. **Properly configured consumers — including Apache Struts with its SecurityMemberAccess — are not affected.** The actual protection for untrusted-expression scenarios remains a correctly configured MemberAccess; the block list should not be treated as a sandbox.

Fix

java.lang.reflect.Method, java.lang.reflect.Constructor, and java.lang.reflect.Field are added to the stricter-invocation block list, so reflection objects can no longer be used as invocation proxies in stricter mode. The java.lang.invoke.MethodHandle path was verified not to be exploitable (its signature-polymorphic invoke/invokeExact fail through OGNL's reflection-based invocation), so no additional classes are required.

Credit

Reported responsibly through Tidelift by 毛锐 (youyi.mr@alibaba-inc.com).

Text from GitHub Advisory Database

Affected versions 53

  • ognl:ognl, maven<= 3.4.12GitHub
  • ognlaffected: < 3.4.13CVE List
  • ognl:ognl, Mavenfrom first release, fixed in 3.4.13OSV
  • ognl:ognl, Maven2.1.4OSV
  • ognl:ognl, Maven2.2.2OSV
  • ognl:ognl, Maven2.3.2OSV
  • ognl:ognl, Maven2.4.1OSV
  • ognl:ognl, Maven2.5.1OSV
  • ognl:ognl, Maven2.6.3OSV
  • ognl:ognl, Maven2.6.5OSV
  • ognl:ognl, Maven2.6.7OSV
  • ognl:ognl, Maven2.6.9OSV
  • ognl:ognl, Maven2.7OSV
  • ognl:ognl, Maven2.7.1OSV
  • ognl:ognl, Maven2.7.2OSV
  • ognl:ognl, Maven2.7.3OSV
  • ognl:ognl, Maven3.0OSV
  • ognl:ognl, Maven3.0.1OSV
  • ognl:ognl, Maven3.0.10OSV
  • ognl:ognl, Maven3.0.11OSV
  • ognl:ognl, Maven3.0.12OSV
  • ognl:ognl, Maven3.0.13OSV
  • ognl:ognl, Maven3.0.14OSV
  • ognl:ognl, Maven3.0.15OSV
  • ognl:ognl, Maven3.0.16OSV
  • ognl:ognl, Maven3.0.17OSV
  • ognl:ognl, Maven3.0.18OSV
  • ognl:ognl, Maven3.0.19OSV
  • ognl:ognl, Maven3.0.2OSV
  • ognl:ognl, Maven3.0.20OSV
  • ognl:ognl, Maven3.0.21OSV
  • ognl:ognl, Maven3.0.3OSV
  • ognl:ognl, Maven3.0.4OSV
  • ognl:ognl, Maven3.0.5OSV
  • ognl:ognl, Maven3.0.6OSV
  • ognl:ognl, Maven3.0.6.1OSV
  • ognl:ognl, Maven3.0.6.2OSV
  • ognl:ognl, Maven3.0.7OSV
  • ognl:ognl, Maven3.0.8OSV
  • ognl:ognl, Maven3.0.9OSV
  • ognl:ognl, Maven3.1OSV
  • ognl:ognl, Maven3.1.1OSV
  • ognl:ognl, Maven3.1.10OSV
  • ognl:ognl, Maven3.1.11OSV
  • ognl:ognl, Maven3.1.12OSV
  • ognl:ognl, Maven3.1.14OSV
  • ognl:ognl, Maven3.1.15OSV
  • ognl:ognl, Maven3.1.16OSV
  • ognl:ognl, Maven3.1.17OSV
  • ognl:ognl, Maven3.1.18OSV
  • ognl:ognl, Maven3.1.19OSV
  • ognl:ognl, Maven3.1.2OSV
  • ognl:ognl, Maven3.1.20OSV

References 6