CVE-2023-32692: Remote Code Execution Vulnerability in Validation Placeholders in CodeIgniter4

Published May 22, 2023
·
Updated

Impact This vulnerability allows attackers to execute arbitrary code when you use Validation Placeholders.

The vulnerability exists in the Validation library, and validation methods in the controller and in-model validation are also vulnerable because they use the Validation library internally.

Patches Upgrade to v4.3.5 or later.

Workarounds Setting validation rules with an array.

E.g.: php $validation->setRules([ 'email' => ['required', 'validemail, 'isunique[users.email,id,{id}]'], ]);

References - https://codeigniter4.github.io/userguide/libraries/validation.html#validation-placeholders - https://codeigniter4.github.io/userguide/incoming/controllers.html#validating-data - https://codeigniter4.github.io/userguide/models/model.html#in-model-validation

For more information If you have any questions or comments about this advisory: Open an issue in codeigniter4/CodeIgniter4 Email us at SECURITY.md

Other sources

CodeIgniter is a PHP full-stack web framework. This vulnerability allows attackers to execute arbitrary code when you use Validation Placeholders. The vulnerability exists in the Validation library, and validation methods in the controller and in-model validation are also vulnerable because they use the Validation library internally. This issue is patched in version 4.3.5.

Remote Code Execution Vulnerability in Validation Placeholders in CodeIgniter4

— Packagist

Affected Software

3 affected componentsFixes available
composer/codeigniter4/framework<4.3.5
4.3.5
CodeIgniter Codeigniter<4.3.5
composer/codeigniter4/framework<4.3.5
4.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/codeigniter4/framework to a version that resolves this vulnerability.

    Fixed in 4.3.5
  2. Upgrade

    Upgrade CodeIgniter4 to a version that resolves this vulnerability.

    Fixed in 4.3.5

Event History

May 22, 2023
Advisory Published
07:49 PM
Data Sourced
via GitHub·07:49 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·07:49 PM
DescriptionSeverityAffected Software
May 30, 2023
CVE Published
via MITRE·03:15 AM
Data Sourced
via MITRE·03:15 AM
DescriptionSeverityWeakness
Data Sourced
04:15 AM
Description
Data Sourced
via NVD·04:15 AM
DescriptionSeverityWeaknessAffected Software
May 19, 2026
Exploit Published
via GitHub·08:08 AM

Frequently Asked Questions

1

What is the impact of CVE-2023-32692?

This vulnerability allows attackers to execute arbitrary code when using Validation Placeholders in CodeIgniter.

2

Which software is affected by CVE-2023-32692?

CodeIgniter versions up to and including 4.3.5 are affected.

3

How can I fix CVE-2023-32692?

Update CodeIgniter to version 4.3.6 or higher to fix this vulnerability.

4

Where can I find more information about CVE-2023-32692?

You can find more information about this vulnerability on the GitHub security advisory page.

5

What is the CWE ID for CVE-2023-32692?

The CWE ID for this vulnerability is 94.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203