CVE-2022-31140
PHP vulnerability analysis and mitigation

Overview

Valinor, a PHP library for mapping input into strongly-typed value object structures, was found to have a security vulnerability (CVE-2022-31140) prior to version 0.12.0. The vulnerability involved improper handling of exception messages, where the library would use Throwable#getMessage() without proper permission checks (NIST, GitHub Advisory).

Technical details

The vulnerability stems from the library's exception handling mechanism where it would automatically expose exception messages without proper filtering. This could lead to exposure of sensitive information contained within exception messages, such as SQL query snippets, database connection details (IP addresses, usernames, passwords), or system resource information. The issue was particularly concerning in cases where exceptions contained sensitive application data (GitHub Advisory).

Impact

The vulnerability could potentially lead to various security issues including data exfiltration, where sensitive information from exception messages could be exposed to attackers. Additionally, the exposure of system resource information could facilitate denial of service (DDoS) attacks and enable enumeration attacks against the system (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in Valinor version 0.12.0. The fix introduced a new method MapperBuilder::filterExceptions() that allows developers to explicitly define which exceptions should be considered safe to expose. Users are advised to upgrade to version 0.12.0 or later. The new version requires explicit configuration to handle exception messages, preventing automatic exposure of potentially sensitive information (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2026-23493HIGH8.6
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026
CVE-2026-23495MEDIUM4.3
  • PHPPHP
  • pimcore/admin-ui-classic-bundle
NoYesJan 15, 2026
CVE-2026-23494MEDIUM4.3
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management