Vulnerabilities in pkg:maven/org.jsonschema2pojo/jsonschema2pojo-core

PACKAGE
Advisory Identifier: GHSA-66rc-vg9f-48m7
Advisory Summary

CVE-2025-3588 is a MODERATE (CVSS 5.3) jsonschema2pojo has improper restriction of vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Jsonschema2pojo core libraries in the Maven ecosystem. The issue involves jsonschema2pojo has improper restriction of operations within the bounds of a memory buffer. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jsonschema2pojo/jsonschema2pojo-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.jsonschema2pojo/jsonschema2pojo-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-66rc-vg9f-48m7 CVE-2025-3588 MODERATE jsonschema2pojo has Improper Restriction of Operations within the Bounds of a Memory Buffer

CVE-2025-3588 at a Glance

CVE Identifier CVE-2025-3588
GHSA Identifier GHSA-66rc-vg9f-48m7
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Jsonschema2pojo core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-3588

To remediate this vulnerability, upgrade all affected Jsonschema2pojo core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jsonschema2pojo:jsonschema2pojo-core fixed: Latest secure release
<dependency>
    <groupId>org.jsonschema2pojo</groupId>
    <artifactId>jsonschema2pojo-core</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.jsonschema2pojo

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-3588, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jsonschema2pojo

Analyze the terminal output to locate any version of Jsonschema2pojo core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jsonschema2pojo command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Jsonschema2pojo core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability, which was classified as problematic, has been found in joelittlejohn jsonschema2pojo 1.2.2. This issue affects the function apply of the file org/jsonschema2pojo/rules/SchemaRule.java of the component JSON File Handler. The manipulation leads to stack-based buffer overflow. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

CVE-2025-3588 Affected Jsonschema2pojo core Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.jsonschema2pojo:jsonschema2pojo-core
Maven
≤ 1.2.2

References

Frequently Asked Questions

What is CVE-2025-3588?
CVE-2025-3588 is a security vulnerability in Jsonschema2pojo core involving jsonschema2pojo has Improper Restriction of Operations within the Bounds of a Memory Buffer under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Jsonschema2pojo core versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.jsonschema2pojo:jsonschema2pojo-core.
What version fixes CVE-2025-3588?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is jsonschema2pojo-core affected?
Yes, org.jsonschema2pojo:jsonschema2pojo-core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-3588?
CVE-2025-3588 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-3588?
CVE-2025-3588 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check Maven dependencies for CVE-2025-3588?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jsonschema2pojo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-66rc-vg9f-48m7",
  "modified" : "2025-04-14T22:59:04Z",
  "published" : "2025-04-14T21:32:24Z",
  "aliases" : [ "CVE-2025-3588" ],
  "summary" : "jsonschema2pojo has Improper Restriction of Operations within the Bounds of a Memory Buffer",
  "details" : "A vulnerability, which was classified as problematic, has been found in joelittlejohn jsonschema2pojo 1.2.2. This issue affects the function apply of the file org/jsonschema2pojo/rules/SchemaRule.java of the component JSON File Handler. The manipulation leads to stack-based buffer overflow. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jsonschema2pojo:jsonschema2pojo-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3588"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/joelittlejohn/jsonschema2pojo/issues/1672"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/joelittlejohn/jsonschema2pojo"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.304643"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.304643"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.550136"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-14T22:59:04Z",
    "nvd_published_at" : "2025-04-14T21:15:18Z"
  }
}