LiveActive security incident?Get immediate response
CVE Record

CVE-2021-38241: Deserialization issue discovered in Ruoyi before 4.6.1 allows remote attackers to run arbitrary code via we...

Deserialization issue discovered in Ruoyi before 4.6.1 allows remote attackers to run arbitrary code via weak cipher in Shiro framework.

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2021-38241 is a critical Ruoyi issue reported in versions before 4.6.1. The source description says remote attackers can run arbitrary code through unsafe deserialization tied to a weak Shiro framework cipher. Treat exposed Ruoyi deployments as high business risk, but confirm product/version details because the structured affected metadata is incomplete.

Executive priority

Prioritize immediate inventory and remediation for any exposed Ruoyi instance. The business risk is severe because the CVE allows unauthenticated remote code execution, but active exploitation is not established by the provided sources.

Technical view

The CVE describes CWE-502 deserialization in Ruoyi before 4.6.1, reachable remotely with no authentication or user interaction according to CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N. Impact is rated high for confidentiality, integrity, and availability. The record attributes the issue to weak cipher use in Apache Shiro integration.

Likely exposure

Likely exposure is any Ruoyi deployment earlier than 4.6.1, especially internet-facing systems using the Shiro framework path described by the CVE. The bundle’s affected vendor/product fields are n/a, so asset owners should validate against installed Ruoyi versions rather than relying on CPE matching.

Exploitation context

The CVE is not listed as CISA KEV in the provided bundle. A public reference is cited, but the bundle does not prove active exploitation. Because the issue is unauthenticated remote code execution with a 9.8 CVSS score, exposure should still be treated as urgent.

Researcher notes

The strongest source facts are Ruoyi before 4.6.1, CWE-502, weak Shiro cipher, and CVSS 9.8. The bundle lacks detailed affected CPEs, vendor advisory text, and verified exploitation evidence, so avoid broad claims beyond Ruoyi version exposure.

Mitigation direction

  • Identify all Ruoyi deployments and record exact versions.
  • Upgrade Ruoyi versions before 4.6.1 to 4.6.1 or later.
  • Check Ruoyi and Shiro vendor guidance for configuration hardening.
  • Restrict external access to affected deployments until remediated.
  • Prioritize systems handling sensitive data or administrative workflows.

Validation and detection

  • Confirm no production Ruoyi instance runs a version before 4.6.1.
  • Verify internet-facing inventories include Ruoyi applications and related admin portals.
  • Review Shiro-related configuration against vendor guidance.
  • Check logs for unexplained execution, authentication, or deserialization errors.
  • Document remediation evidence for each affected deployment.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-502: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-38241 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2021-38241Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.