|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46343 IPv6 address filter accepts invalid address
Submitted: 2008-10-20 11:10 UTC Modified: 2008-10-20 23:23 UTC
From: daan at react dot nl Assigned:
Status: Closed Package: Filter related
PHP Version: 5.2.6 OS: Debian
Private report: No CVE-ID:
 [2008-10-20 11:10 UTC] daan at react dot nl
The IPv6 address filter in the filter extension accepts invalid IPv6 address notations: `:1:2:3:4:5:6:7` and `1:2:3:4:5:6:7:`.
Relevant RFC:

Reproduce code:
var_dump(filter_var(':1:2:3:4:5:6:7', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-20 11:55 UTC] daan at react dot nl
A little correction: `1:2:3:4:5:6:7:` is in fact reported correctly as being invalid. (so only `:1:2:3:4:5:6:7` is faulty)
 [2008-10-20 23:23 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 06:01:48 2015 UTC