CVE Tools

CVE-2020-5267

Possible XSS vulnerability in ActionView

CVE-2020-5267 is an XSS in Rails Actionview (CVSS 4.0, Medium).

Public exploit available. Not confirmed exploited in the wild yet. Fixed in 5.2.4.2.

Check it yourself

OpenVAS · 24 checks

e.g. OID 1.3.6.1.4.1.25623.1.0.853159

Run the check

Published Updated Sources: CVE.org, NVD, GitHub, BDU

What to do

Find your product and version, then upgrade to the build on the right.

  • Rails ActionviewAffected: < 5.2.4.2Upgrade to: not statedAffected: >= 6.0.0, < 6.0.2.2Upgrade to: not statedStated by: CVE record
  • RubyGems actionviewAffected: < 5.2.4.2Upgrade to: 5.2.4.2Stated by: GitHub advisory
  • Rubyonrails ActionviewAffected: < 5.2.4.2Upgrade to: 5.2.4.2Stated by: NVD
  • Open-source community Debian GNU/LinuxAffected: 9Upgrade to: not statedStated by: BDU
  • RusBITech-Astra Astra Linux Special EditionAffected: 1.6 «Smolensk»Upgrade to: not statedStated by: BDU

Versions as the sources state them. 3 more products have version data. Full version matrix after sign-in

What it is

From the CVE record

In ActionView before versions 6.0.2.2 and 5.2.4.2, there is a possible XSS vulnerability in ActionView's JavaScript literal escape helpers. Views that use the `j` or `escape_javascript` methods may be susceptible to XSS attacks. The issue is fixed in versions 6.0.2.2 and 5.2.4.2.

In plain language

No plain-language summary for this CVE yet.

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS75th
Public exploit
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

1 source with a proof of concept or module.

Exploit links, PoCs and Metasploit modules after sign-in
EPSS

1.5% chance of exploitation activity in the next 30 days, which ranks it in the 75th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

The patch came 471 days before any public exploit.

  1. OpenVAS check added
  2. Public exploit / PoCsource: github-poc
  3. Patch availablerecord updated
  4. Publishedweakness classified, att&ck mapped

Affected products

Technical detail

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

Scored 4.0 by NVD.

How it is reached

  • Attack Vector NetworkExploitable remotely over the network without any special conditions
  • Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
  • Privileges Required HighRequires admin or elevated privileges
  • User Interaction RequiredA user must click a link, open a file, or perform some action

Scope

  • Scope ChangedThe exploit can affect other components (e.g. sandbox escape, host compromise from VM)

Impact if exploited

  • Confidentiality LowSome restricted information is disclosed, but limited in scope
  • Integrity LowData modification is possible but limited in scope or consequence
  • Availability NoneNo availability impact

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2020-5267

Is CVE-2020-5267 being exploited?
Not confirmed. Public exploit code exists (1 source), but CVE-2020-5267 is not in CISA KEV. EPSS puts the chance of exploitation in the next 30 days at 1.5%.
Which versions are affected by CVE-2020-5267?
Actionview: < 5.2.4.2; >= 6.0.0, < 6.0.2.2. Actionview: < 5.2.4.2. Actionview: < 5.2.4.2. 5 more products are listed in the record.
How do I fix or mitigate CVE-2020-5267?
Upgrade to 5.2.4.2 or later. The advisory is on github.com.

Last updated

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Actionview, not every advisory. This one: public exploit.