Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-16254

Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows HTTP Response Splitting. If a program using WEBrick inserts untrusted input into the response header, an attacker can exploit it to insert a newline character to split a header, and inject malicious content to deceive clients. NOTE: this issue exists because of an incomplete fix for CVE-2017-17742, which addressed the CRLF vector, but did not address an isolated CR or an isolated LF.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-16254
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:01 UTC · Revision 1

Source evidence

CVE-2019-16254

core-osv · Original source

Published 26 Nov 2019, 18:15 UTC

Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows HTTP Response Splitting. If a program using WEBrick inserts untrusted input into the response header, an attacker can exploit it to insert a newline character to split a header, and inject malicious content to deceive clients. NOTE: this issue exists because of an incomplete fix for CVE-2017-17742, which addressed the CRLF vector, but did not address an isolated CR or an isolated LF.

osv:CVE-2019-16254
Complete source record
{
  "id": "47627c0603ca11c4702d0221f43bc7707d7ab9855380d6264b98bccf736c5534",
  "url": "https://osv.dev/vulnerability/CVE-2019-16254",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-16254",
    "summary": "Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows HTTP Response Splitting. If a program using WEBrick inserts untrusted input into the response header, an attacker can exploit it to insert a newline character to split a header, and inject malicious content to deceive clients. NOTE: this issue exists because of an incomplete fix for CVE-2017-17742, which addressed the CRLF vector, but did not address an isolated CR or an isolated LF.",
    "evidence": "osv:CVE-2019-16254",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2019-16254",
      "aliases": [
        "CVE-2019-16254"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ruby/ruby",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "d40ea2afa6ff5a6e5befcf342fb7b6dc58796b20"
                },
                {
                  "introduced": "d4bb726b713658f56e630b6cf817a0155b6f390e"
                },
                {
                  "last_affected": "c91478058505cd8cae5160c1056bcde65af5a78b"
                },
                {
                  "introduced": "4e0a512972cdcbfcd5279f1a2a81ba342ed75b6e"
                },
                {
                  "last_affected": "189a36cfabfc30e785cece0692c802be87ebd9cf"
                },
                {
                  "introduced": "c1af7b1e1d408f9796a5f46c9ed36bc5adea4aa2"
                },
                {
                  "last_affected": "6315e42c222d5484004494950c7524a85acadb20"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.3.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0"
                      },
                      {
                        "last_affected": "2.4.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.5.0"
                      },
                      {
                        "last_affected": "2.5.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.6.0"
                      },
                      {
                        "last_affected": "2.6.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2_6_4",
            "v2_5_6",
            "v2_4_7",
            "v2_3_0",
            "v1_0_r2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-16254.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:23.899573603Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html",
        "https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html",
        "https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html",
        "https://seclists.org/bugtraq/2019/Dec/31",
        "https://seclists.org/bugtraq/2019/Dec/32",
        "https://www.oracle.com/security-alerts/cpujan2020.html",
        "https://hackerone.com/reports/331984",
        "https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html",
        "https://security.gentoo.org/glsa/202003-06",
        "https://www.debian.org/security/2019/dsa-4586",
        "https://www.debian.org/security/2019/dsa-4587",
        "https://www.ruby-lang.org/ja/news/2019/10/01/http-response-splitting-in-webrick-cve-2019-16254/",
        "https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/",
        "https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/",
        "https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-16254",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 431033,
  "published_at": "2019-11-26T18:15:15.21+00:00"
}