AWS Advanced JDBC Wrapper CVE-2026-14265: cache write access becomes code execution
A deserialization flaw in the optional RemoteQueryCachePlugin turns write access to a shared Redis or Valkey cache into code execution on the Java application servers that read from it. Version 4.0.1 fixes it, and its release notes list a class allowlist for cached-result deserialization.
Automated engineering analysis by the Khalid Aboubakr Engineering Desk, from the primary sources listed below. Not reviewed by a person before publication. About the desk
Bottom line
CVE-2026-14265 is fixed in AWS Advanced JDBC Wrapper 4.0.1. Versions 3.3.0 through 4.0.0 are affected only when the non-default RemoteQueryCachePlugin is enabled. In those deployments, anyone who can write to the shared Redis/Valkey cache can run code on the application servers. Upgrade to 4.0.1 or later. If you cannot upgrade yet, disable the plugin and restrict cache write access to trusted principals.
What happened
AWS published security bulletin 2026-051-AWS on 1 July 2026 for CVE-2026-14265, a flaw in the AWS Advanced JDBC Wrapper (Maven package software.amazon.jdbc:aws-advanced-jdbc-wrapper). GitHub tracks it as GHSA-c5q4-97jw-jggh.
- Component: the RemoteQueryCachePlugin, which keeps query results in a shared Redis or Valkey cache.
- Mechanism: when the plugin loads cached results back into the JVM, it uses Java's
ObjectInputStreamand places no restriction on which classes may be instantiated (CWE-502, according to the CVE record). - Impact: someone who can write to that cache can plant a crafted serialized Java object. When an application reads it, arbitrary code runs on the application server.
- Affected versions: 3.3.0 through 4.0.0, per the vendor bulletin.
- Fixed version: 4.0.1, per the vendor bulletin. The 4.0.1 release notes are dated 13 May 2026. Among other fixes, they list "Added allowlist classes for CacheResultSet deserialization to prevent unsafe Java deserialization (PR #1905)." The notes do not name the CVE or the RemoteQueryCachePlugin.
- Default exposure: AWS states that the RemoteQueryCachePlugin is not enabled by default.
- Severity: the CVE record carries both a CVSS v4 score of 7.7 and a CVSS v3.1 score of 7.5. NVD lists 7.7. The repository advisory and the GitHub API record list 7.5 (CVSS v3.1, attack complexity High). All rate it High.
- Timing: the CVE, the vendor bulletin and the repository advisory all date from 1 July 2026. The GitHub Advisory Database entry, however, records its publication and review on 17 November 2026.
Why it matters
This vulnerability does not let an outsider break in directly. It changes what a cache compromise means. Without the flaw, an attacker who can write to Redis or Valkey can serve stale or false data. With the plugin enabled on an affected version, the same attacker can run code on every application server that reads poisoned entries. That would typically expose whatever database credentials and data those servers hold.
The headline "RCE" overstates the risk for most Java teams on AWS. The plugin is opt-in, and the attacker first needs write access to the cache. It understates the risk for teams that did enable the plugin. Where a shared cache is reachable by many services, batch jobs or operators, or uses weaker credentials than the database, a compromise of any service with cache write access becomes a route onto the database-facing application tier.
The registry timing matters operationally. The fixed release has existed since 13 May 2026, and the issue was disclosed on 1 July 2026. Tooling that relies on the GitHub Advisory Database, however, may only have started flagging this package around 17 November 2026. A clean dependency report from before that date is therefore not evidence of safety.
OSV shows a similar gap:
- The OSV CVE record carries a 1 July 2026 publication date, but it expresses the affected range as git commits rather than Maven versions.
- The OSV GHSA record, which carries the Maven package range, was published on 17 November 2026.
OSV-based Maven scanning therefore probably lagged as well. How individual tools behaved is not documented in the evidence.
Engineering assessment
Our assessment: this is a serious but narrowly scoped issue.
Who should treat it as urgent. Any team running 3.3.0–4.0.0 with RemoteQueryCachePlugin enabled should treat it as a priority patch. Everyone else should confirm they are not in that group and move on.
Scoring. The 7.5 vs 7.7 discrepancy is a CVSS v3.1 vs v4 artefact, not a disagreement about impact. Both vectors in the CVE record rate confidentiality, integrity and availability impact as High, and both require low privileges.
The lesson that outlives the patch. Any component that deserializes native Java objects from a shared store makes that store part of the code-execution trust boundary. For deployments that used this plugin, the Redis/Valkey cache was effectively a tier-0 asset. Its write ACLs, network exposure and credentials deserved the same scrutiny as the database. Upgrading closes this specific path. It does not fix a cache that dozens of principals can write to.
Upgrade risk. The 4.0.1 release notes list a class allowlist for CacheResultSet deserialization. That points to the fix being class filtering on cached results, not removal of the plugin or a change of serialization format. If so, existing cache entries are likely to stay readable as long as the classes they contain are on the allowlist.
Two caveats apply:
- The notes do not say which classes are allowed.
- The notes do not say what happens when an entry contains a class outside the list.
An allowlist that is narrower than the result types an application actually caches could show up as cache errors or misses. Teams should still verify cache hit, miss and fallback behaviour in staging rather than assume it.
Forks. AWS explicitly asks that forked or derivative code incorporate the fix. Organisations that vendor or patch database drivers internally are easy to miss here. The CacheResultSet deserialization allowlist (PR #1905) in the 4.0.1 release notes appears to be the relevant change. However, neither AWS nor the notes confirm that it is the complete fix for this CVE, and OSV identifies the fix only by the release commit. Fork maintainers should rebase onto 4.0.1 or later where possible rather than backport a single change.
Is this you?
- You use
software.amazon.jdbc:aws-advanced-jdbc-wrapper, directly or transitively, at a version from 3.3.0 to 4.0.0 inclusive. - Your connection configuration enables the RemoteQueryCachePlugin. It is off by default, so someone must have turned it on.
- Your applications read cached query results from a Redis or Valkey instance.
- More than a tightly controlled set of principals can write to that cache: other services, shared credentials, broad network access, or operator tooling.
- You maintain a fork or internal build of the wrapper based on an affected version.
If the first two items are not true, this CVE does not apply to you. If items one to three are true, you are exposed, and item four determines how easily the flaw can be reached.
What to do
- Inventory. Find the wrapper and its version, for example with
mvn dependency:tree -Dincludes=software.amazon.jdbc:aws-advanced-jdbc-wrapperorgradle dependencies. Then search connection strings and configuration for the plugin withgrep -ri "RemoteQueryCache" .across application and infrastructure repositories. - Upgrade (vendor guidance). If you are exposed, move to AWS Advanced JDBC Wrapper 4.0.1 or later. Patch any forked or derivative builds as well. In staging, test query caching end to end: cache population, reads of existing entries, and behaviour when the cache is unavailable.
- If you cannot upgrade immediately (vendor guidance). Disable the RemoteQueryCachePlugin, and restrict write access to the Redis/Valkey cache to trusted principals.
- Rebase forks rather than cherry-pick (Not vendor guidance). For forked or internal builds, prefer rebasing onto 4.0.1 or later over backporting PR #1905 alone. The evidence does not establish that PR #1905 is the complete fix.
- Clear cached entries (Not vendor guidance). After upgrading or disabling the plugin, consider flushing the query-cache keyspace so that no entries written before the change remain.
- Harden the cache (Not vendor guidance). Give each service its own cache credentials. Grant write rights only to the services that need them. Keep the cache off broadly reachable networks. Review who has held write access since the plugin was enabled.
- Plan for the class of bug (Not vendor guidance). Technical leads should audit other places where native Java deserialization reads from shared stores, such as caches, queues and sessions. Consider a process-wide Java deserialization filter as defence in depth, and test it carefully, because it can break legitimate deserialization.
- Check your scanner coverage (Not vendor guidance). If your dependency scanning depends on the GitHub Advisory Database or OSV's Maven data, re-run it now. Treat earlier clean results for this package as unreliable.
What we don't know yet
- Abuse status. The only signal in the evidence is a CISA ADP SSVC entry dated 2 July 2026 that recorded exploitation as none. No later status is supplied.
- Details of the 4.0.1 fix. The release notes list a CacheResultSet deserialization allowlist (PR #1905). They do not name the CVE or the plugin, do not list the allowed classes, and do not describe how rejected entries are handled. Nothing in the evidence confirms that PR #1905 is the complete fix.
- Plugin adoption. There are no data on how widely the RemoteQueryCachePlugin is enabled in production.
- Typical cache controls. Nothing in the evidence describes the authentication or network controls of the Redis/Valkey deployments usually paired with the plugin.
- Forks and derivatives. The evidence does not identify which forks or derivative builds are affected.
- The registry gap. Nothing in the evidence explains why the GitHub Advisory Database entry and the OSV GHSA record are dated 17 November 2026. That is more than four months after the CVE and vendor bulletin, and six months after the 4.0.1 release.
The desk will watch for an exploitation status update, documentation of the allowlist's contents and behaviour, and any explanation of the registry delay.
Sources
Updates
- : Update: The 4.0.1 release notes on GitHub, dated 13 May 2026, list an allowlist of classes for CacheResultSet deserialization (PR #1905). The article now reflects this likely fix mechanism and its upgrade and fork implications, and notes the OSV GHSA record's 17 November 2026 publication date.
Latest engineering analysis
6 min read
zod-msg-tools 0.1.4: npm malware hides an auth-bypassing SQL backdoor
A fake Zod helper on npm patches Node's HTTP server at runtime and adds a hidden endpoint that sits in front of your router and auth, runs queries on your database pools and, where the psql client is present, can reach OS command execution on Postgres deployments.
7 min read
Filament Curator picker search leaked media metadata across tenants
Filament Curator's picker search skipped the tenant scope, and an ungrouped orWhere chain also escaped the directory limit; upgrading is the only fix.
7 min read
array-flatten-utils on npm: malware loader that fires only in CI builds
A lookalike of array-flatten runs a native-addon loader at require() time, only in CI and build environments, where deploy tokens are stored.