CVE-2025-54981
Java vulnerability analysis and mitigation

Overview

CVE-2025-54981 is a weak encryption algorithm vulnerability in Apache StreamPark affecting versions 2.0.0 through 2.1.6. The flaw involves the use of AES in ECB (Electronic Codebook) mode combined with a weak random number generator to encrypt sensitive data, including JWT tokens, potentially exposing sensitive authentication credentials to attackers. It was disclosed on December 12, 2025, by researcher omkar parkhe and reported via the Apache Software Foundation mailing list. The vulnerability carries a CVSS v3.1 base score of 7.5 (High) and a CVSS v4.0 score of 8.7 (High) (Github Advisory, Openwall OSS-Sec).

Technical details

The root cause is classified as CWE-327 (Use of a Broken or Risky Cryptographic Algorithm). AES in ECB mode is deterministic and does not use an initialization vector, meaning identical plaintext blocks always produce identical ciphertext blocks — making it vulnerable to pattern analysis and replay attacks. Combined with a weak (non-cryptographically secure) random number generator for key or token generation, an attacker could potentially predict or reconstruct JWT tokens and other authentication secrets without requiring any prior authentication. The fix is available in commit 39034db in the Apache StreamPark repository (Github Advisory, Apache Mailing List).

Impact

Successful exploitation could allow a remote, unauthenticated attacker to decrypt or forge JWT tokens and other sensitive authentication data used by Apache StreamPark. This primarily impacts confidentiality — integrity and availability are not directly affected. Compromised authentication tokens could enable unauthorized access to the StreamPark platform, potentially allowing an attacker to impersonate legitimate users, access stream processing job configurations, and pivot to connected data infrastructure (Github Advisory, Feedly).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Apache StreamPark instances running versions 2.0.0 through 2.1.6 using tools like Shodan or Censys, or by inspecting Maven dependency manifests (org.apache.streampark:streampark).
  2. Obtain encrypted token material: Intercept network traffic or access stored/transmitted JWT tokens from the StreamPark application (e.g., via network sniffing on unencrypted channels or by accessing exposed API responses).
  3. Exploit ECB mode weakness: Because AES-ECB produces identical ciphertext for identical plaintext blocks, analyze captured ciphertext for repeating patterns to infer plaintext structure or perform block-level manipulation (cut-and-paste attacks).
  4. Exploit weak RNG: If the random number generator used for key or token generation is predictable (e.g., seeded with a timestamp or low-entropy source), attempt to brute-force or predict the key/seed using cryptanalysis tools.
  5. Forge or decrypt authentication tokens: Use the recovered or predicted key to decrypt existing JWT tokens or forge new ones, gaining unauthorized access to the StreamPark platform as any user, including administrators (Github Advisory, Openwall OSS-Sec).

Indicators of compromise

  • Network: Unusual or repeated authentication attempts using JWT tokens that do not correspond to active user sessions; unexpected API calls from unfamiliar IP addresses using valid tokens.
  • Logs: StreamPark access logs showing successful authentication from unexpected source IPs or at unusual times; multiple sessions active for the same user account simultaneously.
  • Application: Presence of forged or structurally anomalous JWT tokens in application logs (e.g., tokens with unexpected claims or expiry values); authentication events for accounts that have not recently logged in.
  • File System: No specific file artifacts are known at this time, as exploitation is primarily cryptographic in nature.

Mitigation and workarounds

The primary remediation is to upgrade Apache StreamPark to version 2.1.7, which replaces AES-ECB mode with a more secure cipher mode and addresses the weak random number generator (Github Advisory, Apache Mailing List). After upgrading, administrators should audit and rotate all existing JWT tokens and authentication credentials that may have been generated under the vulnerable configuration. As an interim measure if immediate upgrade is not possible, restrict network access to StreamPark instances and ensure all traffic is encrypted in transit to limit token interception opportunities.

Community reactions

The vulnerability was disclosed via the Apache Software Foundation mailing list and the oss-security list on December 12, 2025, with credit given to researcher omkar parkhe as the finder (Openwall OSS-Sec). Security news outlet SecurityOnline.info covered the flaw, highlighting the risks of data decryption and token forgery via the hard-coded key and AES-ECB mode. Community reaction has been moderate, with the vulnerability noted in security aggregators and Bluesky infosec community posts, but no major controversy or widespread alarm given the absence of active exploitation.

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-p279-2cqp-84jgCRITICAL9.6
  • Java logoJava
  • org.openidentityplatform.opendj:opendj-server-legacy
NoYesJul 24, 2026
GHSA-fp43-vj7g-pg92HIGH7.5
  • Java logoJava
  • org.omnifaces:omnifaces
NoYesJul 24, 2026
GHSA-7ppr-r889-mcf2HIGH7.5
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.12
NoYesJul 24, 2026
GHSA-mhvj-jhpq-885vHIGH7.4
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.13
NoYesJul 24, 2026
GHSA-46q4-43ph-c6frHIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.12
NoYesJul 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management