CVE-2021-26084 in atlassian confluence data center
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
In affected versions of Confluence Server and Data Center, an OGNL injection vulnerability exists that would allow an unauthenticated attacker to execute arbitrary code on a Confluence Server or Data Center instance. The affected versions are before version 6.13.23, from version 6.14.0 before 7.4.11, from version 7.5.0 before 7.11.6, and from version 7.12.0 before 7.12.5.
Affected software: atlassian confluence data center, atlassian confluence server
Scores
- CVSS: 9.8 (critical)
- EPSS: 100.00% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2021-11-03, used in ransomware
- Published: 2021-08-30
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): Yes, published
- Mitigation: Yes, see below
How to mitigate it
Upgrade Confluence Server/Data Center to a version fixed for CVE-2021-26084
Patch or upgrade. Upgrade Confluence to 6.13.23, 7.4.11, 7.11.6, 7.12.5, 7.13.0 or later. These versions remove the Webwork OGNL injection, which lets an unauthenticated attacker run code on the server and is being exploited in the wild.
Applies to: Confluence Server and Data Center before 6.13.23, 6.14.0 to before 7.4.11, 7.5.0 to before 7.11.6, and 7.12.0 to before 7.12.5. Confluence Cloud is not affected.
- Find the Confluence version: in Confluence go to Administration (cog) > General Configuration > System Information, or check the confluence-<version>.jar file name in <install>/confluence/WEB-INF/lib.
- If the version is below 6.13.23, from 6.14.0 to below 7.4.11, from 7.5.0 to below 7.11.6, or from 7.12.0 to below 7.12.5, the server is vulnerable.
- Back up the Confluence home directory, the installation directory and the database.
- Download a fixed release from https://www.atlassian.com/software/confluence/download-archives. Pick 7.13.0 or later, the latest LTS (preferred), or the fixed version in your branch: 6.13.23, 7.4.11, 7.11.6 or 7.12.5.
- Run the installer in upgrade mode, or follow the manual upgrade guide. For Data Center, upgrade every node.
- If you cannot upgrade right away, apply Atlassian's temporary workaround script (cve-2021-26084-update.sh on Linux, cve-2021-26084-update.ps1 on Windows) from the Confluence security advisory 2021-08-25, then restart Confluence. Upgrade as soon as possible after that.
- Because this vulnerability was widely exploited, check servers that were exposed for compromise: look for unknown processes run by the Confluence user, crypto miners, web shells and new admin accounts.
- Confirm the new version under System Information, and check that the LogPulse sensor and vulnerability scans no longer report CVE-2021-26084.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.