Attacker Value
Low
(1 user assessed)
Exploitability
Very High
(1 user assessed)
User Interaction
Unknown
Privileges Required
Unknown
Attack Vector
Unknown
1

CVE-2024-21683

Disclosure Date: May 21, 2024
Add MITRE ATT&CK tactics and techniques that apply to this CVE.

Description

Rejected reason: This CVE’s publication may have been a false positive or a mistake. As a result, we have rejected this record.

Add Assessment

4
Ratings
Technical Analysis

This vulnerability can be leveraged by an authenticated attacker to execute OS commands within the context of the Confluence application server. The authenticated user must have the “Confluence Administrator” global permission. By default, this permission is only granted to the confluence-administrators group.

To leverage this vulnerability, the user would login to Confluence, then:

  1. Navigate to General Configuration > Configure Code Macro
  2. Select “Add a new language”
  3. Provide a javascript file to execute, using java.lang.ProcessBuilder to run an arbitrary command
  4. Specify an arbitrary language name
  5. Press the “Add” button

Once the “Add” button is pressed, there will likely be an error message displayed in the UI stating that the uploaded language file is invalid. Despite this error message, the Javascript code is executed. The language fails to be added so there is no language to clean up.

exploit.js
The following exploit.js source file will echo the current user information to /tmp/output.

new java.lang.ProcessBuilder["(java.lang.String[])"](["/usr/bin/sh", "-c", "echo $(id) > /tmp/output"]).start()

Original source from: https://github.com/W01fh4cker/CVE-2024-21683-RCE/blob/main/exploit.js

CVSS V3 Severity and Metrics
Base Score:
None
Impact Score:
Unknown
Exploitability Score:
Unknown
Vector:
Unknown
Attack Vector (AV):
Unknown
Attack Complexity (AC):
Unknown
Privileges Required (PR):
Unknown
User Interaction (UI):
Unknown
Scope (S):
Unknown
Confidentiality (C):
Unknown
Integrity (I):
Unknown
Availability (A):
Unknown

General Information

Additional Info

Technical Analysis