GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Netty strips NUL bytes from method names · Issue #15047 · netty/netty

Netty strips NUL bytes from method names #15047

New issue
Copy link
New issue
Copy link
Closed
#16723
Closed
Netty strips NUL bytes from method names#15047
#16723
Copy link

Description

@kenballus
kenballus
opened on Apr 18, 2025
Issue body actions

When Netty parses a method name beginning or ending with a NUL, it strips the NUL before processing the method, instead of rejecting the request.

For example, if you send a request with a method of \x00GET\x00, it is interpreted as a GET request.

To confirm this,

  1. Run this Netty-based HTTP server.
  2. Send it a request with a method prefixed and suffixed with null bytes, and observe that Netty stripped the null bytes before interpreting the method:
printf '\x00GET\x00 / HTTP/1.1\r\n\r\n' | ncat localhost 80 | grep "method" | jq .method | xargs echo | base64 -d | xxd
00000000: 4745 54                                  GET

Activity

  1. daguimu
    added a commit that references this issue on May 11, 2026

    Reject control characters at the boundary of HTTP method names

    This issue will close once commit 1eb1375 is merged into the '4.1' branch.
    1eb1375
  2. chrisvest
    closed this as completedin #16723on Jun 9, 2026
  3. chrisvest
    added 2 commits that reference this issue on Jun 9, 2026

    Reject control characters at the boundary of HTTP method names (#16723)

    6ad888e

    Auto-port 5.0: Reject control characters at the boundary of HTTP meth…

    fc4be74
  4. normanmaurer
    added a commit that references this issue on Jun 11, 2026

    Reject control characters at the boundary of HTTP method names (#16723)…

    e45c3cf
  5. chrisvest
    added a commit that references this issue on Jun 23, 2026

    Reject control characters at the boundary of the HTTP version token (#…

    69b7851
  6. normanmaurer
    added 2 commits that reference this issue on Jun 24, 2026

    Auto-port 5.0: Reject control characters at the boundary of the HTTP …

    87b6af4

    Reject control characters at the boundary of the HTTP version token (#…

    df54c37
  7. lltopk
    added 2 commits that reference this issue on Oct 24, 2026

    Reject control characters at the boundary of HTTP method names (netty…

    58d786e

    Reject control characters at the boundary of the HTTP version token (n…

    9d54b1a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.