{
  "id": "CVE-2025-59340",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-59340",
  "published_at": "2025-09-17T20:01:55.788Z",
  "title": "jinjava Sandbox Bypass via JavaType-Based Deserialization",
  "vendor": "HubSpot",
  "product": "jinjava",
  "cvss": {
    "score": 10,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "jinjava is a Java-based template engine based on django template syntax, adapted to render jinja templates. Priori to 2.8.1, by using mapper.getTypeFactory().constructFromCanonical(), it is possible to instruct the underlying ObjectMapper to deserialize attacker-controlled input into arbitrary classes. This enables the creation of semi-arbitrary class instances without directly invoking restricted methods or class literals. As a result, an attacker can escape the sandbox and instantiate classes such as java.net.URL, opening up the ability to access local files and URLs(e.g., file:///etc/passwd). With further chaining, this primitive can potentially lead to remote code execution (RCE). This vulnerability is fixed in 2.8.1.",
  "cwe": "CWE-1336",
  "cpes": [
    "cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8,
    "nvd": 10
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "HubSpot",
        "product": "jinjava",
        "ranges": [
          "\u003c 2.8.1"
        ],
        "fixed_in": [
          "2.8.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade jinjava to 2.8.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
