SCA: security update for codeigniter4/shield (GHSA-5hm8-vh6r-2cjq)

high Tenable Self-Hosted Container Security Plugin ID 410865

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Shield is an authentication and authorization framework for CodeIgniter 4. This vulnerability may allow
[SameSite Attackers](https://canitakeyoursubdomain.name/) to bypass the [CodeIgniter4 CSRF
protection](https://codeigniter4.github.io/userguide/libraries/security.html) mechanism with CodeIgniter
Shield. For this attack to succeed, the attacker must have direct (or indirect, e.g., XSS) control over a
subdomain site (e.g., `https://a.example.com/`) of the target site (e.g., `http://example.com/`). Upgrade
to **CodeIgniter v4.2.3 or later** and **Shield v1.0.0-beta.2 or later**. As a workaround: set
`Config\Security::$csrfProtection` to `'session,'`remove old session data right after login (immediately
after ID and password match) and regenerate CSRF token right after login (immediately after ID and
password match) (CVE-2022-35943)

See Also

https://github.com/advisories/GHSA-5hm8-vh6r-2cjq

Plugin Details

Severity: High

ID: 410865

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.15

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-35943

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/18/2022

Vulnerability Publication Date: 8/12/2022

Reference Information

CVE: CVE-2022-35943

cwe: CWE-352