---
id: CVE-2023-0567
title: >-
  In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3,
  password_verify() function may accept some invalid Blowfish hashes as valid
summary: >-
  In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3,
  password_verify() function may accept some invalid Blowfish hashes as valid.
  If such invalid hash ever ends up in the password database, it may lead to an
  applicatio…
severity: high
cvss: 7.7
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-916
  - CWE-916
vendor: php
product: php
affected:
  - 'php >= 8.0.0, < 8.0.28'
  - 'php >= 8.1.0, < 8.1.16'
  - 'php >= 8.2.0, < 8.2.3'
patched:
  - php 8.2.3
published: '2023-03-01'
updated: '2026-07-15'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-0567'
references:
  - url: 'https://bugs.php.net/bug.php?id=81744'
    label: security@php.net
  - url: 'https://github.com/php/php-src/security/advisories/GHSA-7fj2-8x79-rjf4'
    label: security@php.net
  - url: 'https://bugs.php.net/bug.php?id=81744'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/php/php-src/security/advisories/GHSA-7fj2-8x79-rjf4'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20230331-0008/'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00947
epssPercentile: 0.59681
ingestedAt: '2026-07-15T19:45:40.625Z'
---

## Overview

In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, password_verify() function may accept some invalid Blowfish hashes as valid. If such invalid hash ever ends up in the password database, it may lead to an application allowing any password for this entry as valid.

## Affected

- `php >= 8.0.0, < 8.0.28`
- `php >= 8.1.0, < 8.1.16`
- `php >= 8.2.0, < 8.2.3`

## Remediation

Upgrade past the affected range:

- `php 8.2.3`
