CVE-2026-14265: Remote Code Execution via Unsafe Deserialization in AWS Advanced JDBC Wrapper
Vulnerability ID: CVE-2026-14265
CVSS Score: 7.5
Published: 2026-11-17
CVE-2026-14265 (GHSA-c5q4-97jw-jggh) is a high-severity Remote Code Execution (RCE) vulnerability in the Amazon Web Services (AWS) Advanced JDBC Wrapper versions 3.3.0 through 4.0.0. The defect resides in the RemoteQueryCachePlugin and its underlying CachedResultSet implementation, which uses an unfiltered java.io.ObjectInputStream to deserialize cached SQL query results retrieved from external Redis or Valkey backends. An attacker with write access to the shared cache infrastructure can inject serialized Java gadget chains into cache keys, achieving arbitrary code execution within the JVM context of any application server consuming the cached entries.
TL;DR
Unsafe Java deserialization (CWE-502) in the AWS Advanced JDBC Wrapper's RemoteQueryCachePlugin (versions 3.3.0 to 4.0.0) allows attackers with write access to a shared Redis or Valkey cache to achieve Remote Code Execution (RCE) on client application servers. Upgrade to version 4.0.1 or disable the remoteQueryCache plugin.
Technical Details
- CVE / GHSA ID: CVE-2026-14265 / GHSA-c5q4-97jw-jggh
- Weakness Class: CWE-502: Deserialization of Untrusted Data
- CVSS v3.1 / v4.0 Score: 7.5 High / 7.7 High
- EPSS Score: 0.73% (54.78th Percentile)
- Affected Component: RemoteQueryCachePlugin / CachedResultSet
- Affected Versions: 3.3.0 through 4.0.0 (Fixed in 4.0.1)
- Impact: Remote Code Execution (RCE) in JVM Process
- CISA KEV Status: Not Listed
Affected Systems
- AWS Advanced JDBC Wrapper (software.amazon.jdbc:aws-advanced-jdbc-wrapper)
-
AWS Advanced JDBC Wrapper: >= 3.3.0, <= 4.0.0 (Fixed in:
4.0.1)
Code Analysis
Commit: d6b79c6
fix: added allowlist classes for CacheResultSet (#1905)
Commit: ce7e8c7
Release 4.0.1 changelog and version bump commit
Mitigation Strategies
- Upgrade AWS Advanced JDBC Wrapper to version 4.0.1 or later to enforce allowlist-based deserialization via SafeObjectInputStream.
- Disable the RemoteQueryCachePlugin by removing 'remoteQueryCache' from the 'wrapperPlugins' JDBC configuration parameter if immediate patching is not possible.
- Harden Redis/Valkey cache infrastructure by enforcing ACL authentication, TLS in-transit encryption, and strict VPC Security Group isolation.
- Configure JVM-wide JEP 290 serialization filters (-Djdk.serialFilter) to reject known third-party deserialization gadget classes.
Remediation Steps:
- Identify all Java applications and microservices utilizing 'software.amazon.jdbc:aws-advanced-jdbc-wrapper' within version range 3.3.0 to 4.0.0.
- Update the dependency version in Maven (pom.xml) or Gradle (build.gradle / build.gradle.kts) to 4.0.1 or higher.
- If using custom third-party database extension types (e.g., pgvector) with remote query caching enabled, explicitly register the trusted classes or packages using Driver.skipWrappingForType() or Driver.skipWrappingForPackage() after auditing them for deserialization safety.
- Rebuild, redeploy, and monitor application logs for 'CachedResultSet.blockedDeserialization' exceptions indicating either blocked exploit attempts or unallowlisted custom database types.
- Flush existing keys in the Redis/Valkey cache cluster if unauthorized access to the cache tier is suspected.
References
- AWS Security Bulletin 2026-051-aws
- GitHub Security Advisory (GHSA-c5q4-97jw-jggh)
- Official Release Notes (v4.0.1)
- Vulnerability Fix Commit (d6b79c6731fa37e117aa76ed2abb1f56e13772eb)
- Release / Changelog Commit (ce7e8c7b53cfd7e210abc6e6d73b248f488fcdcc)
- National Vulnerability Database (NVD) Record
- CVE.org Record
Read the full report for CVE-2026-14265 on our website for more details including interactive diagrams and full exploit analysis.
Top comments (0)