CVE-2026-24819: Weixin4j base Weixin4j Has Improperly Controlled Sequential Vulnerability
MODERATECVE-2026-24819 is a MODERATE weixin4j has improperly controlled sequential vulnerability (CWE-1325: Improperly Controlled Sequential Memory Allocation) affecting Weixin4j base libraries in the Maven ecosystem. The issue involves weixin4j has improperly controlled sequential memory allocation. Remediation is available in the latest vendor maintenance releases.
CVE-2026-24819 at a Glance
How to Fix CVE-2026-24819
To remediate this vulnerability, upgrade all affected Weixin4j base dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-base</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.foxinmy
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-24819, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.foxinmy
Analyze the terminal output to locate any version of Weixin4j base in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.foxinmy command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1325: Improperly Controlled Sequential Memory Allocation, where the product manages a group of objects or resources and performs a separate memory allocation for each object, but it does not properly limit the total amount of memory that is consumed by all of the combined objects. In Weixin4j base, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-24819 Affected Weixin4j base Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.foxinmy:weixin4j-base
|
Maven |
≤ 1.10.2
|
|
References
Frequently Asked Questions
What is CVE-2026-24819?
Which Weixin4j base versions are affected?
What version fixes CVE-2026-24819?
Is weixin4j-base affected?
What CWE is associated with CVE-2026-24819?
How can I check Maven dependencies for CVE-2026-24819?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-444m-px7r-qpvv",
"modified" : "2026-01-28T16:01:17Z",
"published" : "2026-01-27T09:30:30Z",
"aliases" : [ "CVE-2026-24819" ],
"summary" : "weixin4j has Improperly Controlled Sequential Memory Allocation ",
"details" : "Improperly Controlled Sequential Memory Allocation vulnerability in foxinmy weixin4j (weixin4j-base/src/main/java/com/foxinmy/weixin4j/util modules). This vulnerability is associated with program files CharArrayBuffer.Java, ClassUtil.Java.\n\nThis issue affects all versions of weixin4j. A path is available: [d1c8258](https://github.com/foxinmy/weixin4j/commit/4b7ad14df6567064b468b4c9cb7a8bfeff48c8bd)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/AU:Y/R:A/V:D/RE:M/U:Amber"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.foxinmy:weixin4j-base"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.10.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24819"
}, {
"type" : "WEB",
"url" : "https://github.com/foxinmy/weixin4j/pull/229"
}, {
"type" : "WEB",
"url" : "https://github.com/foxinmy/weixin4j/commit/d1c825835802cd3a0c04772be1220ff4476ea27c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/foxinmy/weixin4j"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1325" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-28T16:01:17Z",
"nvd_published_at" : "2026-01-27T09:15:52Z"
}
}