Skip to content

CVE-2026-80213 (UNKNOWN): detected in Lambda Docker Images. #678

Description

@the-lambda-watchdog

CVE Details

CVE ID Severity Affected Package Installed Version Fixed Version Date Published Date of Scan
CVE-2026-80213 UNKNOWN resolv 0.7.0 ~> 0.3.2, >= 0.7.2 2026-08-27T17:20:51.037Z 2026-08-30T10:18:58.876659704Z

Affected Docker Images

Image Name SHA
public.ecr.aws/lambda/ruby:latest public.ecr.aws/lambda/ruby@sha256:5da74922095128746fcf77ffc5d182c1dc516a6476ad3f93c14741e60d40fd9b
public.ecr.aws/lambda/ruby:4.0 public.ecr.aws/lambda/ruby@sha256:5da74922095128746fcf77ffc5d182c1dc516a6476ad3f93c14741e60d40fd9b
public.ecr.aws/lambda/ruby:3.4 public.ecr.aws/lambda/ruby@sha256:f800eeccd3ab5f91733e134395a614eb462f33d9563b97481e122f91faac5dad
public.ecr.aws/lambda/ruby:3.3 public.ecr.aws/lambda/ruby@sha256:fa243b9c09faed0430521b19767b02bd7a06c0cad85cc26fe432d9cfee4cbfd7

Description

An issue was discovered in the resolv gem before 0.7.2 for Ruby. Resolv::DNS::MessageEncoder wrote a DNS label's length into a single octet without checking its range. A label longer than 255 octets had its length stored modulo 256 but the label data was written unchanged, and thus the bytes on the wire described a different name than the one the application asked to encode. RFC 1035 section 2.3.4 limits a label to 63 octets, and the two high bits of the length octet are reserved for compression pointers. put_string packed the length with put_pack("C", d.length) and put_label used it for labels, and thus any value from 0 to 255 could end up as a label length octet, including the reserved 0x40-0xBF range and the 0xC0-0xFF pointer range. Resolv::DNS::Name.create did not check per-label or total name length either, and thus an attacker-controlled hostname reached the encoder unchanged. An application that resolves an attacker-controlled hostname sends a query whose wire bytes name a domain the attacker chose. A hostname suffix that the application validates against an allowlist becomes padding that never appears on the wire, and thus allowlist and egress checks can be bypassed. The recursive resolver caches the response under the attacker's name, and DNS logs record that name rather than the one the application asked for. A label length whose low octet lands in the 0xC0-0xFF range produces a length octet that conforming parsers read as the start of a compression pointer, with the following attacker-controlled byte as the offset.


Remediation Steps

  • Update the affected package resolv from version 0.7.0 to ~> 0.3.2, >= 0.7.2.

About this issue

  • This issue may not contain all the information about the CVE nor the images it affects.
  • This issue will not be updated with new information and the list of affected images may have changed since the creation of this issue.
  • For more, visit Lambda Watchdog.
  • This issue was created automatically by Lambda Watchdog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions