Repository navigation
Implement null byte checks for hostnames and addresses - #24770
SleepTheGod wants to merge 1 commit into
Conversation
Added checks to reject hostnames and addresses containing null bytes to mitigate CVE-2025-1220.
|
all checks passed |
|
it would be nice to add a test that would trigger the issue without your fix ... if the issue still occur. |
nope I ran this on current master without the patch, and the null byte is already rejected everywhere: That's already fixed by 5ef0dc7 (GHSA-3cr5-j632-f35r = CVE-2025-1220). The new check in |
|
Thanks @ArtUkrainskiy and @devnexen — you're both right, and I want to be explicit about what's happening here so we don't merge dead code. The
The real fix is already in the callers. CVE-2025-1220 was fixed in I'm dropping that hunk from this PR. The one part of the patch that is not dead is the check in Force-pushed to remove the unreachable |
|
Pulling this back to what actually needs fixing in this PR, and what shouldn't be here at all. Keep — the
|
|
Done — switched to Thanks for the review, @TimWolla. |
Added checks to reject hostnames and addresses containing null bytes to mitigate CVE-2025-1220.