CVE & CISA-KEV Catalog

CVE-2021-39197

MEDIUM
6.3
CVSS v3
NVD

Description

better_errors is an open source replacement for the standard Rails error page with more information rich error pages. It is also usable outside of Rails in any Rack app as Rack middleware. better_errors prior to 2.8.0 did not implement CSRF protection for its internal requests. It also did not enforce the correct "Content-Type" header for these requests, which allowed a cross-origin "simple request" to be made without CORS protection. These together left an application with better_errors enabled open to cross-origin attacks. As a developer tool, better_errors documentation strongly recommends addition only to the `development` bundle group, so this vulnerability should only affect development environments. Please ensure that your project limits better_errors to the `development` group (or the non-Rails equivalent). Starting with release 2.8.x, CSRF protection is enforced. It is recommended that you upgrade to the latest release, or minimally to "~> 2.8.3". There are no known workarounds to mitigate the risk of using older releases of better_errors.

How to fix

Remediation Available
better errorsNVD
Affected:< 2.8.0Fixed in:2.8.0CVE-2021-39197derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeChanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

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

Exploit Intelligence

0.64%probability of exploitation in 30 days
46thpercentile

Moderate risk: more likely to be exploited than 46% of all known CVEs.

References

Third-Party Advisory2

Related Vulnerabilities

Other CWE-352 (Cross-Site Request Forgery) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2016-6277High8.8100%KEV-
CVE-2014-0054Medium6.891%-Fix
CVE-2013-6429Medium6.890%-Fix
CVE-2022-41622High8.888%--
CVE-2018-7700High8.875%--
CVE-2015-2295Medium6.866%--
Embed a live status badge for CVE-2021-39197
CVE-2021-39197 severity badge

Markdown

[![CVE-2021-39197](https://tridentstack.com/cve/badge/CVE-2021-39197.svg)](https://tridentstack.com/cve/CVE-2021-39197)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-39197"><img src="https://tridentstack.com/cve/badge/CVE-2021-39197.svg" alt="CVE-2021-39197"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.