Skip to main content
MEDIUM

CVE-2022-31629

CVSS v3

6.5

MEDIUM

EPSS Score

49.6 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for php.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • phpBitnamiall versions · fixed in 7.4.31and 2 other packages
  • apcu-panelAlmaLinux:8all versions · fixed in 5.1.18-1.module_el8.6.0+2750+78feabcband 1 other package
  • libzipAlmaLinux:8all versions · fixed in 1.6.1-1.module_el8.10.0+3935+28808425and 1 other package
  • libzip-develAlmaLinux:8all versions · fixed in 1.6.1-1.module_el8.6.0+3239+bedf0508
  • phpAlmaLinux:9all versions · fixed in 8.1.30-1.module_el9.5.0+131+62ecd687and 24 other packages
  • phpAlmaLinux:8all versions · fixed in 7.4.33-2.module_el8.10.0+3935+28808425and 26 other packages
  • php-pearAlmaLinux:8all versions · fixed in 1:1.10.13-1.module_el8.10.0+3935+28808425
  • php-pecl-apcuAlmaLinux:9all versions · fixed in 5.1.21-1.module_el9.1.0+15+94ba28e4and 2 other packages

8 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-31629 Red Hat Product Security1,045 products fixed · 84 known affected

    php: standard insecure cookie could be treated as a '__Host-' or '__Secure-' cookie by PHP applications

    php as a component of Red Hat Enterprise Linux 6 · php-bcmath as a component of Red Hat Enterprise Linux 6 · php-cli as a component of Red Hat Enterprise Linux 6

  • ICSA-26-027-02 CISA1 known affected

    Festo Didactic SE MES PC

    Festo Didactic SE MES PC shipped with Windows 10

  • RHSA-2023:2903 Red Hat Product Security301 products fixed

    Red Hat Security Advisory: php:7.4 security update

  • RHSA-2023:2417 Red Hat Product Security258 products fixed

    Red Hat Security Advisory: php:8.1 security update

  • RHSA-2023:0965 Red Hat Product Security201 products fixed

    Red Hat Security Advisory: php security update

  • RHSA-2023:0848 Red Hat Product Security285 products fixed

    Red Hat Security Advisory: php:8.0 security update

Full record on NVD

Description

In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the vulnerability enables network and same-site attackers to set a standard insecure cookie in the victim's browser which is treated as a `__Host-` or `__Secure-` cookie by PHP applications.

Technical details

Published
2022-09-28

Frequently asked questions

What is CVE-2022-31629?

In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the vulnerability enables network and same-site attackers to set a standard insecure cookie in the victim's browser which is treated as a `__Host-` or `__Secure-` cookie by PHP applications.

Is CVE-2022-31629 actively exploited?

Active exploitation of CVE-2022-31629 has not been confirmed. Its EPSS score was 49.6% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-31629?

CVE-2022-31629 has a CVSS v3 base score of 6.5 (MEDIUM severity).

Running php? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month