Atlassian Confluence Server and Data Center Remote Code Execution
CVE-2022-26134 is a critical-severity improper neutralization of special elements used in an expression language statement vulnerability in Confluence Data Center from Atlassian, 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. The record lists versions 7.4.17, 7.13.7, 7.14.3 as the first without the flaw, so updating Confluence Data Center to one of those releases or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on June 2, 2022, which means attacks have been observed in the wild, including in ransomware campaigns.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Confluence Data Center to 7.4.17 or 7.13.7 or 7.14.3 or 7.15.2, whichever matches your release line, or a later version.
- Update Confluence Server to 7.4.17 or 7.13.7 or 7.14.3 or 7.15.2, whichever matches your release line, or a later version.
- CISA's required action: Immediately block all internet traffic to and from affected products AND apply the update per vendor instructions [https://confluence.atlassian.com/doc/confluence-security-advisory-2022-06-02-1130377146.html] OR remove the affected products by the due date on the right. Note: Once the update is successfully deployed, agencies can reassess the internet blocking rules.
- Read the advisory on confluence.atlassian.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 |
|---|---|---|---|
| Atlassian | Confluence Data Center | next of 1.3.0; before 7.4.17; 7.13.0; before 7.13.7; 7.14.0; before 7.14.3; 7.15.0; before 7.15.2; and 6 more ranges | 7.4.17, 7.13.7, 7.14.3, 7.15.2, 7.16.4, 7.17.4 |
| Atlassian | Confluence Server | next of 1.3.0; before 7.4.17; 7.13.0; before 7.13.7; 7.14.0; before 7.14.3; 7.15.0; before 7.15.2; and 6 more ranges | 7.4.17, 7.13.7, 7.14.3, 7.15.2, 7.16.4, 7.17.4 |
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 3.1 | 9.8 | Critical | NVD |
| CVSS 3.1 | 9.8 | Critical | CISA (ADP) |
| CVSS 2.0 | 7.5 | High | NVD |
Official description
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 from 1.3.0 before 7.4.17, from 7.13.0 before 7.13.7, from 7.14.0 before 7.14.3, from 7.15.0 before 7.15.2, from 7.16.0 before 7.16.4, from 7.17.0 before 7.17.4, and from 7.18.0 before 7.18.1.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Neutralization of Special Elements used in an Expression Language Statement
The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.
How developers prevent this class of flaw
- Avoid adding user-controlled data into an expression interpreter when possible.
- If user-controlled data must be added to an expression interpreter, one or more of the following should be performed: Validate that the user input will not evaluate as an expression Encode the user input in a way that ensures it is not evaluated as an expression
- The framework or tooling might allow the developer to disable or deactivate the processing of EL expressions, such as setting the isELIgnored attribute for a JSP page to true.
Timeline
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- CVE record published.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Third-party and government advisories
- packetstormsecurity.com/files/167431/Through-The-Wire-CVE-2022-26134-Confluence-Proof-Of-Concept.htmlThird Party Advisory, VDB Entry
- packetstormsecurity.com/files/167432/Confluence-OGNL-Injection-Proof-Of-Concept.htmlThird Party Advisory, VDB Entry
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-26134US Government Resource
Technical write-ups (may include proof of concept)
- packetstormsecurity.com/files/167430/Confluence-OGNL-Injection-Remote-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/167449/Atlassian-Confluence-Namespace-OGNL-Injection.htmlExploit, Third Party Advisory, VDB Entry
Other vulnerabilities in Confluence Data Center
- 7.5 High severity
- 7.1 High severity
- 7.1 High severity
- 9.3 Critical severity
- 7.5 High severity
- 7.5 High severity
Recent Improper Neutralization of Special Elements used in an Expression Language Statement vulnerabilities
- 8.8 High severity
- 7.2 High severity
- 7.2 High severity
- 9.8 Critical severity
- 10.0 Critical severity
- 9.0 Critical severity
Spotted an error? Tell us.