# CVE-2022-40159: Stack Overflow in JXPath

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.46%, higher than 74% of CVEs (2026-12-01)
- Published: 2022-10-06T00:00:00.000Z
- Modified: 2026-09-10T03:49:46.364Z
- Also known as: GHSA-99jc-v8qm-wjvv
- Weaknesses: CWE-121, CWE-787
- Assigned by: apache

## Description

** DISPUTED ** This record was originally reported by the oss-fuzz project who failed to consider the security context in which JXPath is intended to be used and failed to contact the JXPath maintainers prior to requesting the CVE allocation. The CVE was then allocated by Google in breach of the CNA rules. After review by the JXPath maintainers, the original report was found to be invalid.

(As written by CVE List.)

## Affected

- jxpath jxpath: from unspecified up to 1.3
- commons-jxpath:commons-jxpath (Maven): up to 1.3
- apache commons_jxpath: up to 1.3

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47057> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-40159> (advisory)
- <https://github.com/apache/commons-jxpath> (package)

## Sources

- CVE List: [CVE-2022-40159](https://www.cve.org/CVERecord?id=CVE-2022-40159), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-99jc-v8qm-wjvv](https://github.com/advisories/GHSA-99jc-v8qm-wjvv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-40159](https://nvd.nist.gov/vuln/detail/CVE-2022-40159), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-40159 · Whole record: https://cve.day/CVE-2022-40159.json · Rebuilt by cve.day 2026-11-25T22:58:15.436Z
