CVE-2022-36799
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThis issue exists to document that a security improvement in the way that Jira Server and Data Center use templates has been implemented. Affected versions of Atlassian Jira Server and Data Center allowed remote attackers with system administrator permissions to execute arbitrary code via Template Injection leading to Remote Code Execution (RCE) in the Email Templates feature. In this case the security improvement was to protect against using the XStream library to be able to execute arbitrary code in velocity templates. The affected versions are before version 8.13.19, from version 8.14.0 before 8.20.7, and from version 8.21.0 before 8.22.1.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceTemplate injection vulnerability in Jira Server and Data Center's Email Templates feature allowed remote attackers with system administrator permissions to execute arbitrary code via XStream library exploitation in velocity templates, leading to Remote Code Execution (RCE).
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 8.13.19>= 8.14.0, < 8.20.7>= 8.21.0, < 8.22.1< 8.13.19>= 8.14.0, < 8.20.7>= 8.21.0, < 8.22.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check Jira installation versionNavigate to Jira Administration > System > System Info or run the command: /rest/api/2/healthcheck or check the atlassian-jira/WEB-INF/atlassian-bundled-plugins.properties or the jira-application.properties file for the version numberAffected if The installed version falls within any of these ranges: < 8.13.19, >= 8.14.0 and < 8.20.7, or >= 8.21.0 and < 8.22.1
-
Verify Email Templates feature accessibilityLog in as a system administrator and navigate to Jira Administration > System > Email > Email Templates. Confirm the Email Templates configuration page loads successfully.Affected if The Email Templates feature is present and accessible to system administrators in the affected version range
-
Confirm XStream library is in useInspect the Jira installation directory for the XStream JAR file in the lib or WEB-INF/lib folder, or check the classpath for XStream deserialization handlers.Affected if XStream library is present in the Jira installation and the version is vulnerable to the deserialization gadget chain used in this template injection
-
Check for system administrator accountsReview Jira user directory for accounts with Jira System Administrator global permission. This permission grants access to the Email Templates feature.Affected if Any user account possesses system administrator permissions, enabling access to the vulnerable Email Templates configuration area
-
Inspect velocity template processingReview Jira logs for any custom velocity template modifications in the email-templates directory or look for recent changes to template files under the Jira home directory.Affected if Custom velocity templates are in use or have been modified, which could indicate attempted exploitation of the template injection vector
A user is affected if their Jira Server or Data Center version is below 8.13.19, between 8.14.0-8.20.6, or between 8.21.0-8.22.0 AND the Email Templates feature is accessible to system administrators with XStream library present.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped8.13.198.20.78.22.1
Upgrade Jira to version 8.13.19, 8.20.7, 8.22.1 or later to patch the template injection vulnerability in the Email Templates feature.
Upgrade to Jira 8.13.19 (if on <8.14.0), 8.20.7 (if on 8.14.0-8.20.x), or 8.22.1 (if on 8.21.0-8.22.0)
- 1. Identify current Jira version by navigating to Jira Administration > System > System Info
- 2. Based on current version, determine upgrade target: if < 8.13.19 upgrade to 8.13.19; if >= 8.14.0 and < 8.20.7 upgrade to 8.20.7; if >= 8.21.0 and < 8.22.1 upgrade to 8.22.1
- 3. Review Atlassian upgrade documentation and release notes for the target version
- 4. Perform a full backup of Jira database and home directory before upgrading
- 5. Download the target version from Atlassian official downloads page
- 6. Stop Jira application services
- 7. Run the installer or deploy the new version following standard Jira upgrade procedures
- 8. Start Jira and verify the upgrade completed successfully
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,328.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2022-36799 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2022-36799 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data