litemall: Use of Hard-coded Password
CVE-2025-8974 is a critical-severity use of hard-coded password vulnerability in litemall from Linlinjava, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected litemall versions: 1.0; 1.1; 1.2, and others listed below. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.58% chance of exploitation within 30 days, which is low compared with other CVEs.
Critical severity: a successful attack would have severe impact.
What to do
- Check which version of litemall you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linlinjava | litemall | 1.0; 1.1; 1.2; 1.3; 1.4; 1.5; 1.6; 1.7; and 1 more ranges | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 4.0 | 2.9 | Low | CNA (vuldb.com) |
| CVSS 3.1 | 3.7 | Low | CNA (vuldb.com) |
| CVSS 3.1 | 9.8 | Critical | NVD |
| CVSS 2.0 | 2.6 | Low | CNA (vuldb.com) |
Official description
A vulnerability was determined in linlinjava litemall up to 1.8.0. Affected by this issue is some unknown functionality of the file litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/util/JwtHelper.java of the component JSON Web Token Handler. The manipulation of the argument SECRET with the input X-Litemall-Token leads to hard-coded credentials. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use of Hard-coded Password
The product contains a hard-coded password, which it uses for its own inbound authentication or for outbound authentication to external components.
How developers prevent this class of flaw
- For outbound authentication: store passwords outside of the code in a strongly-protected, encrypted configuration file or database that is protected from access by all outsiders, including other local users on the same system. Properly protect the key (CWE-320). If you cannot use encryption to protect the file, then make sure that the permissions are as restrictive as possible.
- For inbound authentication: Rather than hard-code a default username and password for first time logins, utilize a first login mode that requires the user to enter a unique strong password.
- Perform access control checks and limit which entities can access the feature that requires the hard-coded password. For example, a feature might only be enabled through the system console instead of through a network connection.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/linlinjava/litemall/issues/568Exploit, Issue Tracking
- github.com/linlinjava/litemall/issues/568#issue-3289860066Exploit, Issue Tracking
Third-party and government advisories
- vuldb.com/?id.319970Third Party Advisory, VDB Entry
- vuldb.com/?submit.628233Third Party Advisory, VDB Entry
Other references
- vuldb.com/?ctiid.319970Permissions Required, VDB Entry
Other vulnerabilities in litemall
- 7.3 High severity
- 8.8 High severity
- 8.8 High severity
- 8.8 High severity
Recent Use of Hard-coded Password vulnerabilities
- 9.8 Critical severity
- 7.8 High severity
- 8.5 High severity
- 9.8 Critical severity
- 8.6 High severity
- 9.8 Critical severity
Spotted an error? Tell us.