CyberSecBulletin
CVE-2024-8334NVD status: Analyzed

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.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update sweetcms to 5f441e022b8876f07cde709c77b5be6d2f262e3f or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
Master-nanSweet-CMS5f441e022b8876f07cde709c77b5be6d2f262e3fNot stated
Sweetcmssweetcmsbefore 5f441e022b8876f07cde709c77b5be6d2f262e3f5f441e022b8876f07cde709c77b5be6d2f262e3f

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 systemScoreSeverityScored by
CVSS 4.05.3MediumCNA (vuldb.com)
CVSS 3.14.3MediumCNA (vuldb.com)
CVSS 3.18.1HighNVD
CVSS 2.04.0MediumCNA (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

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: poc, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in Sweet-CMS

All Sweet-CMS vulnerabilities

Recent Improper Output Neutralization for Logs vulnerabilities

Spotted an error? Tell us.