---
id: CVE-2026-85532
title: >-
  Apache WSS4J accepted attacker-controlled derived-key lengths and offsets
  without adequate bounds
summary: >-
  Apache WSS4J accepted attacker-controlled derived-key lengths and offsets
  without adequate bounds. This could permit cryptographically weak keys or
  excessive CPU and memory consumption when processing crafted WS-Security
  messages. The fi…
severity: none
cwe:
  - CWE-20
vendor: Apache Software Foundation
product: 'org.apache.wss4j:wss4j-ws-security-common'
affected:
  - 'org.apache.wss4j:wss4j-ws-security-common >= 4.0.0 < 4.0.2'
  - 'org.apache.wss4j:wss4j-ws-security-common >= 3.0.0 < 3.0.6'
  - 'org.apache.wss4j:wss4j-ws-security-common < 2.4.4'
published: '2026-09-30'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T13:17:20.717'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85532'
references:
  - url: 'https://lists.apache.org/thread.html/7jllcpbf4nbzhdp2vchz5yplnl5w6vd6'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/09/30/8'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-30T12:02:58.584Z'
---

## Overview

Apache WSS4J accepted attacker-controlled derived-key lengths and offsets without adequate bounds. This could permit cryptographically weak keys or excessive CPU and memory consumption when processing crafted WS-Security messages. The fixes enforce a minimum key length of 16 bytes, a maximum length of 512 bytes, and a maximum offset of 4096 bytes.
Users are recommended to upgrade to versions 4.0.2 or 3.0.6 or 2.4.4, which fix this issue.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
