Sweet-CMS: Improper Output Neutralization for Logs
CVE-2024-8334 is a high-severity improper output neutralization for logs vulnerability in Sweet-CMS from Master-nan, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. Affected Sweet-CMS versions: 5f441e022b8876f07cde709c77b5be6d2f262e3f. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.48% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update sweetcms to 5f441e022b8876f07cde709c77b5be6d2f262e3f or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Master-nan | Sweet-CMS | 5f441e022b8876f07cde709c77b5be6d2f262e3f | Not stated |
| Sweetcms | sweetcms | before 5f441e022b8876f07cde709c77b5be6d2f262e3f | 5f441e022b8876f07cde709c77b5be6d2f262e3f |
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
- LowA basic user account is enough.
- 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
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 4.0 | 5.3 | Medium | CNA (vuldb.com) |
| CVSS 3.1 | 4.3 | Medium | CNA (vuldb.com) |
| CVSS 3.1 | 8.1 | High | NVD |
| CVSS 2.0 | 4.0 | Medium | CNA (vuldb.com) |
Official description
A vulnerability was found in master-nan Sweet-CMS up to 5f441e022b8876f07cde709c77b5be6d2f262e3f. It has been rated as problematic. This issue affects the function LogHandler of the file middleware/log.go. The manipulation leads to improper output neutralization for logs. The attack may be initiated remotely. This product takes the approach of rolling releases to provide continious delivery. Therefore, version details for affected and updated releases are not available. The identifier of the patch is 2024c370e6c78b07b358c9d4257fa5d1be732c38. It is recommended to apply a patch to fix this issue.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Output Neutralization for Logs
The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.
How developers prevent this class of flaw
- Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
More Improper Output Neutralization for Logs vulnerabilities (CWE-117)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
Third-party and government advisories
- vuldb.com/?ctiid.276209Permissions Required, Third Party Advisory
- vuldb.com/?id.276209Third Party Advisory
- vuldb.com/?submit.398805Third Party Advisory
Other references
- github.com/master-nan/sweet-cms/issues/3Issue Tracking
- github.com/master-nan/sweet-cms/issues/3#issuecomment-2314447003Issue Tracking
Other vulnerabilities in Sweet-CMS
- 9.8 Critical severity
Recent Improper Output Neutralization for Logs vulnerabilities
- 7.2 High severity
- 8.6 High severity
- 9.8 Critical severity
- 9.8 Critical severity
Spotted an error? Tell us.