Security readout for executives and security teams
Plain-English summary
This Ruby flaw can let an application read or interact with a different directory than intended when unsafe path input reaches certain Dir methods. Business risk depends on whether vulnerable Ruby versions process user-controlled directory paths. The public sources name fixed Ruby releases, but provide no CVSS score or confirmed active exploitation.
Executive priority
Treat this as a targeted maintenance priority for systems still running old Ruby. It is not supported here as an emergency exploitation event, but directory traversal can become serious in applications that expose filesystem features.
Technical view
Ruby Dir.open, Dir.new, Dir.entries, and Dir.empty? failed to check NULL characters in affected releases. Ruby describes this as a poisoned NUL byte issue that may cause unintended directory traversal. Fixed versions include 2.2.10, 2.3.7, 2.4.4, and 2.5.1; 2.6.0-preview1 is affected.
Likely exposure
Exposure is most likely in Ruby applications on pre-fixed interpreters that pass externally influenced paths into affected Dir methods. Packaged Ruby from Linux distributions may also be affected until the relevant vendor security update is applied.
Exploitation context
The provided bundle does not show CISA KEV listing or confirmed active exploitation. Public sources establish the vulnerability and vendor updates, but do not provide exploit prevalence or a complete severity score.
Researcher notes
Focus analysis on NULL-byte handling and data flow into Ruby directory APIs. Evidence is strong for affected versions and fixed releases, but incomplete for CVSS, CWE, exploit activity, and application-level impact.
Mitigation direction
- Upgrade Ruby to the fixed release for the deployed branch.
- Apply vendor security updates from the operating system distribution.
- Reject or normalize unsafe path input before directory operations.
- Review vendor guidance for unsupported Ruby branches and packaged runtimes.
- Constrain application filesystem permissions to reduce traversal impact.
Validation and detection
- Inventory Ruby versions across production, CI, and build images.
- Confirm patched package versions from Ruby or distribution advisories.
- Search code for affected Dir methods receiving external path input.
- Review file upload, archive, and browsing features for path handling.
- Record compensating controls where immediate upgrade is not possible.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
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.
File access behavior lookup
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
Open ATT&CK lookupCVE-2018-8780 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Unknown
- CVSS
- Not scored
- Known Exploited
- No
- Published
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.
CVSS and timeline data
No CVSS vectors or timeline events were available in the normalized CVE source material.
Source materials
- CVE List V5 sourceCVE List V5
- https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/CVE reference · x_refsource_CONFIRM
- RHSA-2018:3729CVE reference · vendor-advisory, x_refsource_REDHAT
- USN-3626-1CVE reference · vendor-advisory, x_refsource_UBUNTU
- RHSA-2018:3730CVE reference · vendor-advisory, x_refsource_REDHAT
- [debian-lts-announce] 20180423 [SECURITY] [DLA 1358-1] ruby1.9.1 security updateCVE reference · mailing-list, x_refsource_MLIST
- RHSA-2018:3731CVE reference · vendor-advisory, x_refsource_REDHAT
- https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/CVE reference · x_refsource_CONFIRM
- https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-dir-cve-2018-8780/CVE reference · x_refsource_CONFIRM
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security updateCVE reference · mailing-list, x_refsource_MLIST
- https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/CVE reference · x_refsource_CONFIRM
- DSA-4259CVE reference · vendor-advisory, x_refsource_DEBIAN
- https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/CVE reference · x_refsource_CONFIRM
- [debian-lts-announce] 20180423 [SECURITY] [DLA 1359-1] ruby1.8 security updateCVE reference · mailing-list, x_refsource_MLIST
- RHSA-2019:2028CVE reference · vendor-advisory, x_refsource_REDHAT
- RHSA-2020:0542CVE reference · vendor-advisory, x_refsource_REDHAT
- RHSA-2020:0591CVE reference · vendor-advisory, x_refsource_REDHAT
- RHSA-2020:0663CVE reference · vendor-advisory, x_refsource_REDHAT
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
