CVE Vulnerabilities

CVE-2025-30761

Deserialization of Untrusted Data

Published: Jul 15, 2025 | Modified: Aug 04, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Ubuntu
MEDIUM

Vulnerability in the Oracle Java SE, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: Scripting). Supported versions that are affected are Oracle Java SE: 8u451, 8u451-perf and 11.0.27; Oracle GraalVM Enterprise Edition: 21.3.14. Difficult to exploit vulnerability allows unauthenticated attacker with network access via multiple protocols to compromise Oracle Java SE, Oracle GraalVM Enterprise Edition. Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all Oracle Java SE, Oracle GraalVM Enterprise Edition accessible data. Note: This vulnerability can be exploited by using APIs in the specified Component, e.g., through a web service which supplies data to the APIs. This vulnerability also applies to Java deployments, typically in clients running sandboxed Java Web Start applications or sandboxed Java applets, that load and run untrusted code (e.g., code that comes from the internet) and rely on the Java sandbox for security. CVSS 3.1 Base Score 5.9 (Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).

Weakness

The product deserializes untrusted data without sufficiently verifying that the resulting data will be valid.

Affected Software

Name Vendor Start Version End Version
Jre Oracle 1.8.0-update451 (including) 1.8.0-update451 (including)
Jre Oracle 11.0.27 (including) 11.0.27 (including)
OPENJDK ELS 11.0.28 RedHat java-11-openjdk-portable *
OPENJDK ELS 11.0.28 RedHat java-11-openjdk-windows *
Red Hat Build of OpenJDK 8u462 RedHat java-1.8.0-openjdk-portable *
Red Hat Build of OpenJDK 8u462 RedHat java-1.8.0-openjdk-windows *
Red Hat Enterprise Linux 7 Extended Lifecycle Support RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-1.el7_9 *
Red Hat Enterprise Linux 8 RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-2.el8 *
Red Hat Enterprise Linux 8.2 Advanced Update Support RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-1.el8_2 *
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-1.el8_4 *
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-1.el8_4 *
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-1.el8_6 *
Red Hat Enterprise Linux 8.6 Telecommunications Update Service RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-1.el8_6 *
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-1.el8_6 *
Red Hat Enterprise Linux 8.8 Telecommunications Update Service RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-2.el8 *
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-2.el8 *
Red Hat Enterprise Linux 9 RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-3.el9 *
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-1.el9_0 *
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-3.el9 *
Red Hat Enterprise Linux 9.4 Extended Update Support RedHat java-1.8.0-openjdk-1:1.8.0.462.b08-3.el9 *
Red Hat OpenJDK 11 els for RHEL 7 RedHat java-11-openjdk-1:11.0.28.0.6-1.el7_9 *
Red Hat OpenJDK 11 els for RHEL 8 RedHat java-11-openjdk-1:11.0.28.0.6-1.el8 *
Red Hat OpenJDK 11 els for RHEL 9 RedHat java-11-openjdk-1:11.0.28.0.6-1.el9 *
Openjdk-13 Ubuntu esm-apps/focal *
Openjdk-16 Ubuntu esm-apps/focal *
Openjdk-18 Ubuntu jammy *
Openjdk-19 Ubuntu jammy *
Openjdk-8 Ubuntu devel *
Openjdk-8 Ubuntu esm-apps/bionic *
Openjdk-8 Ubuntu esm-apps/focal *
Openjdk-8 Ubuntu esm-apps/jammy *
Openjdk-8 Ubuntu esm-apps/noble *
Openjdk-8 Ubuntu esm-infra/xenial *
Openjdk-8 Ubuntu jammy *
Openjdk-8 Ubuntu noble *
Openjdk-8 Ubuntu plucky *
Openjdk-9 Ubuntu esm-apps/xenial *
Openjdk-lts Ubuntu esm-apps/noble *
Openjdk-lts Ubuntu esm-infra/bionic *
Openjdk-lts Ubuntu esm-infra/focal *
Openjdk-lts Ubuntu jammy *
Openjdk-lts Ubuntu noble *
Openjdk-lts Ubuntu plucky *

Extended Description

It is often convenient to serialize objects for communication or to save them for later use. However, deserialized data or code can often be modified without using the provided accessor functions if it does not use cryptography to protect itself. Furthermore, any cryptography would still be client-side security – which is a dangerous security assumption. Data that is untrusted can not be trusted to be well-formed. When developers place no restrictions on “gadget chains,” or series of instances and method invocations that can self-execute during the deserialization process (i.e., before the object is returned to the caller), it is sometimes possible for attackers to leverage them to perform unauthorized actions, like generating a shell.

Potential Mitigations

  • Make fields transient to protect them from deserialization.
  • An attempt to serialize and then deserialize a class containing transient fields will result in NULLs where the transient data should be. This is an excellent way to prevent time, environment-based, or sensitive variables from being carried over and used improperly.

References