S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Dec 16, 2023

CVE-2019-5418 Scanner

CVE-2019-5418 scanner - File Content Disclosure vulnerability in Rails

Est. Time~15 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
2.2k
Times Used
continuous scan runs
4.7k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
🔴
CISA Known Exploited Vulnerability
This CVE is actively exploited in the wild. CISA mandates federal agencies to patch immediately.
CVECVE-2019-5418
7.5
CVSShigh
Exploitable remotely over the internet · no authentication required.

There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted accept headers can cause contents of arbitrary files on the target system's filesystem to be exposed.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
https://github.com/rails/railsby Rails
5.2.2.1
Updated Aug 21, 2026View on NVD →
Detail

Ruby on Rails, commonly known as Rails, is a web application framework written in the Ruby language. It is designed to make building web applications easier and faster by providing a set of tools and conventions for developers to follow. Rails is widely used by developers around the world to create scalable and robust web applications, including websites, e-commerce applications, and more. At its core, Rails provides a Model-View-Controller (MVC) architecture that separates business logic, database access, and user interface into distinct layers to improve code maintainability and testability. 

One of the vulnerabilities in Rails, CVE-2019-5418, poses a significant threat to the security of applications built on this framework. This vulnerability is caused by improperly handling user input in the "Accept" headers of HTTP requests, allowing malicious users to read arbitrary files from the server. This vulnerability affects Action View versions <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1, and v3. The vulnerability can be exploited by sending malicious requests to the server with crafted accept headers that include path traversal sequences, resulting in sensitive file contents being leaked to the attacker.

When exploited, the CVE-2019-5418 vulnerability can put sensitive information at risk, including user data, credentials, and system configuration files. Attackers can potentially read any files that the web server process has access to, including files outside of the web root directory. This can lead to a range of attacks, such as theft of user data, system takeover, or denial of service (DoS) attacks.

s4e.io is a platform that provides users with proactive monitoring and vulnerability management services for their digital assets. By using pro features of s4e.io, users can easily and quickly learn about vulnerabilities in their digital assets, including Rails applications. The platform provides proactive scanning and monitoring services that help users stay ahead of potential security threats and respond to them quickly. It offers real-time alerts, asset inventory, and risk management features that enable users to identify, track and remediate vulnerabilities in their digital assets. By using s4e.io, users can ensure that their digital assets are protected against potential security threats, including the CVE-2019-5418 vulnerability.

 

REFERENCES

Solution Advice

To protect against the CVE-2019-5418 vulnerability, developers must upgrade their Rails version to one that is not affected by the vulnerability. The following are some measures that can be taken to mitigate the risk posed by the vulnerability:

  • Upgrade to Rails 5.2.2.1 or later if using affected versions
  • Use a web application firewall to block malicious requests
  • Implement server-side request forgery (SSRF) protections
  • Limit access to sensitive directories on the server
  • Regularly monitor server logs for suspicious behavior

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2019-5418 scanner - File Content Disclosure vulnerability in Rails | S4E