CVE-2025-59043 OpenBao vulnerable to denial of service via malicious JSON request processing
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
OpenBao is an open source identity-based secrets management system. In OpenBao versions prior to 2.4.1, JSON objects after decoding may use significantly more memory than their serialized version. It is possible to craft a JSON payload to maximize the factor between serialized memory usage and deserialized memory usage, similar to a zip bomb, with factors reaching approximately 35. This can be used to circumvent the max_request_size configuration parameter which is intended to protect against denial of service attacks. The request body is parsed into a map very early in the request handling chain before authentication, which means an unauthenticated attacker can send a specifically crafted JSON object and cause an out-of-memory crash. Additionally, for requests with large numbers of strings, the audit subsystem can consume large quantities of CPU. The vulnerability is fixed in version 2.4.1.
Upgrade path
5 packages: 4 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| openbao(Go) | < 2.4.1; <= 2.4.0; All versions | 2.4.1 | Partially fixed |
| alpine/openbao(Alpine v3.22) | < 2.4.1-r0 | 2.4.1-r0 | Fixed |
| alpine/openbao(Alpine v3.23) | < 2.4.1-r0 | 2.4.1-r0 | Fixed |
| alpine/openbao(Alpine v3.24) | < 2.4.1-r0 | 2.4.1-r0 | Fixed |
| openbao | < 2.4.1; = < 2.4.1 | 2.4.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openbao(Go) | < 2.4.1 | 2.4.1 |
| openbao(Go) | All versions | No fix listed |
| openbao(Go) | <= 2.4.0 | No fix listed |
| openbao | = < 2.4.1 | No fix listed |
| alpine/openbao(Alpine:v3.22) | < 2.4.1-r0 | 2.4.1-r0 |
| alpine/openbao(Alpine:v3.23) | < 2.4.1-r0 | 2.4.1-r0 |
| alpine/openbao(Alpine:v3.24) | < 2.4.1-r0 | 2.4.1-r0 |
| openbao | < 2.4.1 | 2.4.1 |
References
- https://github.com/openbao/openbao/security/advisories/GHSA-g46h-2rq9-gw5m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/openbao/openbao/pull/1756 issue-tracking patch
- https://github.com/openbao/openbao/commit/d418f238bc99adc72c73109faf574cc2b672880c patch
- discuss.hashicorp.com
- github.com product
- https://github.com/openbao/openbao/blob/788536bd3e10818a7b4fb00aac6affc23388e5a9/http/logical.go#L50 product
- github.com
- security.alpinelinux.org vendor-advisory