Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling
        
  Moderate severity
        
          GitHub Reviewed
      
        Published
          Jun 26, 2025 
          to the GitHub Advisory Database
          •
          Updated Jun 30, 2025 
      
  
Description
        Published by the National Vulnerability Database
      Jun 25, 2025 
    
  
        Published to the GitHub Advisory Database
      Jun 26, 2025 
    
  
        Reviewed
      Jun 27, 2025 
    
  
        Last updated
      Jun 30, 2025 
    
  
Ruby WEBrick read_header HTTP Request Smuggling Vulnerability. This vulnerability allows remote attackers to smuggle arbitrary HTTP requests on affected installations of Ruby WEBrick. This issue is exploitable when the product is deployed behind an HTTP proxy that fulfills specific conditions.
The specific flaw exists within the read_headers method. The issue results from the inconsistent parsing of terminators of HTTP headers. An attacker can leverage this vulnerability to smuggle arbitrary HTTP requests. Was ZDI-CAN-21876.
References