Java vulnerabilities of the week: 26 November to 2 December 2026

Security coverage hands you a CVE identifier and a CVSS score. Those two things tell you how quickly to book a maintenance window and almost nothing about what actually broke. The mechanism is the part worth keeping, because once you have seen a bug in someone else’s code you start to notice its shape in your own. That is the reason I write these down every week. The longer version of the argument is in the CVE stigma post.

This was another heavy Apache week, with large batches landing on Sunday 30 November and Monday 1 December. Last week the recurring fault was a control in the wrong place: a scope filter that switched off, an SSH command ACL that did not cover every door. This week the controls are mostly in the right place and reading the wrong value. A role check that compares by substring instead of by exact value. An LDAP bind that returns success for a reason that is not authentication. An action resolved from a different spelling of the path than the one a proxy authorized. Different projects, one underlying question: when the check runs, is it comparing the thing you think it is comparing.

The two I take apart are Apache Camel’s camel-netty-http, where a security constraint matched roles by substring instead of by exact value, and Apache Shiro, where an empty password turned into an anonymous LDAP bind and a completed login.

The week in five

Four honourable mentions. Apache OpenMeetings published eighteen CVEs on 29 November, all fixed in 9.2.0, a long run of object-level authorization gaps where an authenticated user can reach another user’s rooms, files and appointments, and among them CVE-2026-112162, an LDAP authentication bypass via empty password that I come back to in the Shiro section. Apache JSPWiki disclosed twenty-two CVEs dated 25 November, consolidated onto oss-security on 30 November and fixed in 3.0.1 and the 2.12.x line: mostly cross-site scripting, plus a login-flow session fixation scored 10.0 (CVE-2026-78114), a page-level ACL bypass (CVE-2026-78098) and an unsafe-reflection denial of service (CVE-2026-78102). Apache Karaf added two config-service CVEs on 1 December (CVE-2026-140880, Moderate, and CVE-2026-141271, Important): the config service chose the file to write from the caller-supplied felix.fileinstall.filename, and the earlier fix for CVE-2026-91012 in 4.4.12 narrowed that to ${karaf.etc}, where admin-reserved files such as etc/users.properties and the JMX and command ACLs also live, so a manager user could overwrite one and gain admin; 4.4.13 and 4.5.0 restrict a write to a file named after its own PID. And Apache Commons BCEL shipped CVE-2026-138277 (fixed in 6.14.1), a stored XSS where Class2HTML writes unknown method attribute names into HTML reports without escaping, an incomplete fix for CVE-2026-105111, which matters only if you render attacker-controlled class files.

Apache Camel: match the role, not a role that contains it

Camel’s HTTP consumer components let you put a security constraint in front of a route. In camel-netty-http you give the endpoint a securityProvider that authenticates the incoming request, and a SecurityConstraintMapping that says which authenticated roles may reach which paths. The roles are strings: the principal carries granted role names, the constraint names the roles a path requires, and the component compares the two.

In the affected versions that comparison used substring matching rather than exact equality. The constraint asked, in effect, whether a required role appears as a substring of the caller’s roles, not whether the caller holds that exact role. So if a path requires admin, a caller whose granted roles include administrator, superadmin or admin-readonly passes, because each of those strings contains admin. The failure is quiet in the same way most authorization failures are quiet: the allowed caller gets in, the request succeeds, and nothing in the logs says the gate opened for a role the path never listed. CVE-2026-105968 is Medium at CVSS 5.9 because the attacker needs an authenticated role whose name happens to contain the required one, which is situational until you have a deployment where role names share a stem.

The fix in 4.18.6, 4.22.2 and 4.23.0 compares security-constraint roles by exact value. There is no configuration flag to set in the meantime, so the action is to upgrade, and while you are there its worth looking at your role names, because the bug does the most damage where role names share a stem. This issue was found by Yuval Saggie and Mor Weinberger, powered by Echo Frontier.

Why I find it interesting

This is CWE-697, an incorrect comparison, surfacing as improper authorization. A decision that is really set membership (is this exact role present in the caller’s granted roles) was implemented as a substring test, and a substring test answers a different and much weaker question. The general class is everywhere and reads as harmless at the call site. A CORS check that accepts an origin because it startsWith your domain lets yourdomain.evil.com through. A JWT audience or scope check that uses contains on a concatenated claim lets an unrelated scope satisfy a required one. The habit this leaves me with is to treat every identifier in an authorization path as something you compare for exact equality against a set, and to be suspicious of any contains, startsWith, endsWith or unanchored pattern that sits on the allow side of a gate. It is the kind of bug you can explain to a junior developer in two minutes, and they will remember it the next time they reach for contains.

Apache Shiro: an empty password is not a credential

Shiro authenticates against pluggable realms, and ActiveDirectoryRealm authenticates by performing an LDAP bind against Active Directory with the username and password the caller submitted. If the bind succeeds, the caller is authenticated. That rests on an assumption worth making explicit: that a successful bind means the directory checked the password. LDAP does not always mean that. A simple bind with a zero-length password is defined in RFC 4513 (section 5.1.2) as an unauthenticated authentication mechanism, and a bind with both name and password empty is an anonymous bind. Many directories accept both and return success, because the client is explicitly asking not to authenticate. The bind succeeding there means your connected as nobody, not that your credential was verified.

CVE-2026-137686 is what happens when that distinction is not made. In versions through 3.0.1, ActiveDirectoryRealm passed an empty username and password straight into the bind, the directory performed an anonymous bind and returned success, and Shiro read that success as a completed authentication, logging the request in with an empty principal. The preconditions: ActiveDirectoryRealm in use, principalSuffix not set, and the directory allowing anonymous binds. The principalSuffix detail explains why many deployments were never exposed: when it is set, Shiro appends it to the username to build the bind name (so user becomes user@example.com), and an empty username becomes a non-empty bind name that never takes the anonymous path. CVE-2014-0074 addressed the same empty-credential behaviour for the LDAP realm path years earlier; the ActiveDirectoryRealm path kept accepting empty credentials, and CVE-2026-137686, reported by Sungho Park, completes that fix in 3.0.2.

The same week, Apache OpenMeetings disclosed CVE-2026-112162 (fixed in 9.2.0), the same mechanism in an unrelated project: an unauthenticated attacker can log in as any LDAP-backed user by submitting that user’s login with an empty password, against a directory that accepts an unauthenticated bind, and the OpenMeetings advisory cites the same RFC 4513 section. Two codebases that share nothing but the protocol, the same degenerate bind, disclosed within days. Upgrade Shiro to 3.0.2, and if you cannot yet, set principalSuffix or disable anonymous and unauthenticated binds on the directory. The directory-side change is the one I would make first where it is available, because rejecting zero-length-password binds protects every application in front of that directory, not only this one.

Why I find it interesting

This is CWE-287, improper authentication, of the specific kind where a backend call returns success for a reason other than the credential checking out. The LDAP unauthenticated bind is the textbook example, and it rhymes with the authentication failures from the 12 to 18 November post, where credential checks defaulted to success. The broader class is any auth code that treats the call did not throw, or the call returned true, as proof of identity. A degenerate input that makes the backend succeed for a different reason then becomes a bypass: an empty string, a null, a zero-length password, a wildcard, a default account. The question to put to an authentication backend is not did it succeed but did it verify what I think it verified, and the cheapest way to hold the line is to reject empty or degenerate credentials in the application before they ever reach the backend, so the backend never gets the chance to say yes for the wrong reason.

What I take away from this week

First, the controls that broke were not missing or weak, they were reading the wrong value. Camel’s constraint compared the right field with the wrong operator. Shiro handed the right credential to the right backend and read the wrong meaning out of success. The review question that covers both is narrow: for each check, what exact value is being compared, and is it the same value, in the same form, that the layer in front authorized. Substring where you needed equality, a success code where you needed a verified fact: the gate is in the right place and still opens.

Second, a tighter version of that runs through the HTTP-layer items as a representation mismatch. Struts resolved an action from a different spelling of the path than the container, filter or proxy that authorized the request (CVE-2026-133642), and NiFi let a differently cased copy of its proxied-entity identity header survive normalisation (CVE-2026-107163): two components disagreeing about the canonical form of the same input, with the authorization decision attached to one form and the real effect to the other, and both fixes move the decision onto the form the downstream actually uses. The WebSocket cases are a sibling, where the upgrade is a second door into the same handler: camel-undertow did not run its security constraints on it, and Apache Unomi disclosed CVE-2026-126628 the same week, a GraphQL WebSocket upgrade that could complete without authentication (fixed in 3.1.0 and 4.0.0, GraphQL off by default). If you put URL-pattern authorization in front of a framework, confirm the framework resolves the same path you authorized, and that the WebSocket path runs the same checks as the HTTP one.

Third, where the fixes reach people, because almost all of these are direct upgrades rather than transitive BOM bumps: Struts 6.13.0 or 7.5.0, Camel 4.18.6/4.22.2/4.23.0, Shiro 3.0.2, NiFi 2.13.0, TinkerPop 3.7.7 or 3.8.2, OpenMeetings 9.2.0, JSPWiki 3.0.1 or the 2.12.x line, Karaf 4.4.13 or 4.5.0, Commons BCEL 6.14.1. Three travel as dependencies rather then as servers you administer, so check your lockfile for them: Shiro, embedded as the security layer inside other applications; TinkerPop, because Gremlin sits under graph databases; and Commons BCEL, which rides under bytecode tooling. Camel users on Spring Boot or Quarkus will get the component fixes through those BOMs; direct Camel users bump the component. One continuity note on Karaf: 4.4.13 and 4.5.0 are the same releases that carried last week’s command-ACL fixes, so single upgrade covers both sets.

Fourth, and briefly, the finding side keeps naming AI, and I go on reporting it as the fact it is. Struts credits Adam Korczynski of Ada Logics, working for Anthropic, on the Bean Validation expression-injection bug and the Execute and Wait token bug, and credits Claude and Ada Logics together on the Javatemplates XSS. That is a fourth week running with at least one AI-attributed find in the set. I note it and no more, because who or what found a bug does not change the mechanism, and the mechanism is what these posts are for.

References