Vulnerability in ruby1.8 - security update

ruby1.8 Updated 02 Oct 2025

Summary

23/04/2018
N/A
Yes i
Unrated
Not published

DLA-1359-1: ruby1.8 - security update. Affects ruby1.8 versions < 1.8.7.358-7.1+deb7u6. Fixed in 1.8.7.358-7.1+deb7u6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Ruby is an interpreted, high-level, general-purpose programming language. It is known for its simplicity and productivity. Ruby1.8 is a specific version of Ruby that is vulnerable to multiple security issues.

Vulnerability Detail

The vulnerabilities in ruby1.8 include:

  1. HTTP response splitting vulnerability in WEBrick: This vulnerability allows an attacker to inject fake HTTP responses if a script accepts external input and outputs it without modifications.

  2. Directory traversal vulnerability in Dir.mktmpdir: Attackers can create arbitrary directories or files by using a '..' (dot dot) in the prefix argument.

  3. Out-of-memory DoS vulnerability in WEBrick: A large request can cause a denial-of-service (DoS) attack by consuming excessive memory.

  4. Buffer under-read vulnerability in String#unpack: If a big number is passed with the specifier '@', it is treated as a negative value, leading to an out-of-buffer read. Attackers can read data on heaps if a script accepts external input as the argument of String#unpack.

  5. Unintentional socket creation and access in UNIXServer.open and UNIXSocket.open: The methods of the socket library bundled with Ruby do not check for NUL bytes in the path argument, making them vulnerable to unintentional socket creation and access.

  6. Unintentional directory traversal in some methods in Dir: The lack of checking for NUL bytes in the parameter of certain methods in Dir allows for unintentional directory traversal.

How To Fix

Minimum fixed version

1.8.7.358-7.1+deb7u6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ruby1.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

Upgrading to the fixed version of ruby1.8 is crucial to mitigate these vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ruby1.8 →

Share this vulnerability

FAQ

The HTTP response splitting vulnerability allows an attacker to inject fake HTTP responses, potentially leading to various attacks such as cross-site scripting (XSS) or session hijacking.

By using the '..' (dot dot) in the prefix argument, an attacker can create arbitrary directories or files outside of the intended directory structure, potentially leading to unauthorized access or code execution.

An attacker can send a large request to consume excessive memory, causing the server to become unresponsive and potentially impacting the availability of the system.

By passing a big number with the specifier '@', an attacker can read data on heaps, potentially exposing sensitive information or causing memory corruption.

These vulnerabilities can lead to unintended socket creation, which may allow an attacker to establish unauthorized network connections or manipulate existing connections.

Related vulnerabilities

Recent vulnerabilities recorded for ruby1.8.

How To Fix

Minimum fixed version

1.8.7.358-7.1+deb7u6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ruby1.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback