CVE-2025-70974: Critical severity maven/com.alibaba/fastjson vulnerability

Published Jan 9, 2026
·
Updated

Fastjson before 1.2.48 mishandles autoType because, when an @type key is in a JSON document, and the value of that key is the name of a Java class, there may be calls to certain public methods of that class. Depending on the behavior of those methods, there may be JNDI injection with an attacker-supplied payload located elsewhere in that JSON document. This was exploited in the wild in 2023 through 2025. NOTE: this issue exists because of an incomplete fix for CVE-2017-18349. Also, a later bypass is covered by CVE-2022-25845.

Other sources

Fastjson before 1.2.48 mishandles autoType because, when an @type key is in a JSON document, and the value of that key is the name of a Java class, there may be calls to certain public methods of that class. Depending on the behavior of those methods, there may be JNDI injection with an attacker-supplied payload located elsewhere in that JSON document. This was exploited in the wild in 2023 through 2025. NOTE: this issue exists because of an incomplete fix for CVE-2017-18349. Also, a later bypass is covered by CVE-2022-25845.

GitHub

Affected Software

2 affected componentsFixes available
maven/com.alibaba/fastjson<1.2.48
maven/com.alibaba:fastjson<1.2.48
1.2.48

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/com.alibaba:fastjson to a version that resolves this vulnerability.

    Fixed in 1.2.48
  2. Upgrade

    Upgrade fastjson to a version that resolves this vulnerability.

    Fixed in 1.2.48
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2017-18349
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2022-25845

Event History

Jan 9, 2026
CVE Published
via MITRE·06:43 AM
Data Sourced
via MITRE·06:43 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:02 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:31 AM
Data Sourced
via GitHub·09:31 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-70974?

CVE-2025-70974 is considered a critical vulnerability due to the potential for JNDI injection and the execution of arbitrary code.

2

How do I fix CVE-2025-70974?

To fix CVE-2025-70974, upgrade Fastjson to version 1.2.48 or later.

3

What versions of Fastjson are affected by CVE-2025-70974?

CVE-2025-70974 affects all versions of Fastjson prior to 1.2.48.

4

What types of applications are at risk from CVE-2025-70974?

Applications that utilize Fastjson for JSON processing and allow user-controlled JSON input are at risk from CVE-2025-70974.

5

What are the potential impacts of CVE-2025-70974?

The potential impacts of CVE-2025-70974 include unauthorized access, data manipulation, and execution of arbitrary code through remote code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203