FILTER_VALIDATE_URL accepts URLs with invalid userinfo (PHP Group PHP)
En bref
- Source
- NVD
- EPSS
- EPSS 2.90 % · centile 87 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- php
- Statut NVD
- Modified
Description
In PHP versions 7.3.x below 7.3.26, 7.4.x below 7.4.14 and 8.0.0, when validating URL with functions like filter_var($url, FILTER_VALIDATE_URL), PHP will accept an URL with invalid password as valid URL. This may lead to functions that rely on URL being valid to mis-parse the URL and produce wrong data as components of the URL.
Faiblesses (CWE)
- CWE-20 — Validation d'entrée incorrecte
Références
- https://bugs.php.net/bug.php?id=77423
- https://www.debian.org/security/2021/dsa-4856
- https://security.gentoo.org/glsa/202105-23
- https://lists.debian.org/debian-lts-announce/2021/07/msg00008.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.tenable.com/security/tns-2021-14
- https://security.netapp.com/advisory/ntap-20210312-0005/
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | php |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | NVD · security@php.net (Secondary) |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N | NVD · nvd@nist.gov (Primary) |
Références européennes
- ENISA EUVD · EUVD-2020-28205
- GCVE · GCVE-0-2020-7071
Avis du CERT-FR
- CERTFR-2023-AVI-0537 — Multiples vulnérabilités dans les produits Juniper · cert.ssi.gouv.fr
- CERTFR-2021-AVI-571 — Multiples vulnérabilités dans Tenable · cert.ssi.gouv.fr
- CERTFR-2021-AVI-009 — Vulnérabilité dans PHP · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 7.3.0 < 7.3.26cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 7.4.0 < 7.4.14cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.0.0 < 8.0.1cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*cpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:*
Produits affectés
| Produit | Versions |
|---|---|
| PHP Group · PHP | affected 7.3.x < 7.3.26 ; affected 7.4.x < 7.4.14 ; affected 8.0.X < 8.0.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |