Description
Jinjava before 2.5.4 allow access to arbitrary classes by calling Java methods on objects passed into a Jinjava context. This could allow for abuse of the application class loader, including Arbitrary File Disclosure.
Remediation
References
https://github.com/HubSpot/jinjava/pull/435/commits/1b9aaa4b420c58b4a301cf4b7d26207f1c8d1165
https://securitylab.github.com/advisories/GHSL-2020-072-hubspot_jinjava
https://github.com/HubSpot/jinjava/pull/426/commits/5dfa5b87318744a4d020b66d5f7747acc36b213b
https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.5.4
https://github.com/HubSpot/jinjava/compare/jinjava-2.5.3...jinjava-2.5.4
Related Vulnerabilities
CVE-2021-39150 Vulnerability in maven package com.thoughtworks.xstream:xstream
CVE-2022-39251 Vulnerability in npm package matrix-js-sdk
CVE-2022-36915 Vulnerability in maven package org.jenkins-ci.plugins:android-signing
CVE-2021-21422 Vulnerability in npm package mongo-express
CVE-2022-23539 Vulnerability in maven package org.webjars.npm:jsonwebtoken