# CVE-2023-42278: hutool Buffer Overflow vulnerability

Source: https://junglewise.ai/threats/cve-2023-42278-hutool-buffer-overflow-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-09-09  
License: CC BY 4.0 with a link back

CVE-2023-42278 · Severity: low · CVSS 3.1 · Published 2023-09-09

hutool Buffer Overflow vulnerability

Technologies: [cn.hutool:hutool-core (Maven)](https://junglewise.ai/threats/technologies/cn-hutool-hutool-core), [cn.hutool:hutool-json (Maven)](https://junglewise.ai/threats/technologies/cn-hutool-hutool-json). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2023-42278 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-42278 being exploited in the wild.

**How severe is CVE-2023-42278?** Low severity, with a CVSS score of 3.1, published 9 September 2023.

**Which products and versions are affected?** cn.hutool:hutool-core (Maven) ECOSYSTEM:introduced=0,fixed=5.8.22; cn.hutool:hutool-json (Maven) ECOSYSTEM:introduced=0,fixed=5.8.22.

**Is there a fix for CVE-2023-42278?** Yes. cn.hutool:hutool-core (Maven): upgrade to 5.8.22 or later; cn.hutool:hutool-json (Maven): upgrade to 5.8.22 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-42278?** Check whether you run cn.hutool:hutool-core (Maven) or cn.hutool:hutool-json (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- cn.hutool:hutool-core (Maven): upgrade to 5.8.22 or later

  ```sh
  # set cn.hutool:hutool-core to 5.8.22 in your pom.xml or build.gradle
  ```

- cn.hutool:hutool-json (Maven): upgrade to 5.8.22 or later

  ```sh
  # set cn.hutool:hutool-json to 5.8.22 in your pom.xml or build.gradle
  ```


## Affected products

- cn.hutool:hutool-core (Maven) ECOSYSTEM:introduced=0,fixed=5.8.22
- cn.hutool:hutool-json (Maven) ECOSYSTEM:introduced=0,fixed=5.8.22

## Identifiers

- CVE-2023-42278
- GHSA-rr66-qh5m-w6mx

## Related threats

- [hutool-core was discovered to contain a stack overflow via NumberUtil.toBigDecimal method](https://junglewise.ai/threats/cve-2023-51080-hutool-core-was-discovered-to-contain-a-stack-overflow-via)
- [hutool-core discovered to contain an infinite loop in the StrSplitter.splitByRegex function](https://junglewise.ai/threats/cve-2023-51075-hutool-core-discovered-to-contain-an-infinite-loop-in-the)
- [hutool Buffer Overflow vulnerability](https://junglewise.ai/threats/cve-2023-42277-hutool-buffer-overflow-vulnerability)
- [hutool Buffer Overflow vulnerability](https://junglewise.ai/threats/cve-2023-42276-hutool-buffer-overflow-vulnerability)
- [HuTool XML parsing module has blind XXE vulnerability](https://junglewise.ai/threats/cve-2023-3276-hutool-xml-parsing-module-has-blind-xxe-vulnerability)
