LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31140: Valinor error messages leading to potential data exfiltration

Valinor is a PHP library that helps to map any input into a strongly-typed value object structure. Prior to version 0.12.0, Valinor can use `Throwable#getMessage()` when it should not have permission to do so. This is a problem with cases such as an SQL exception showing an SQL snippet, a database connection exception showing database IP address/username/password, or a timeout detail / out of memory detail. Attackers could use this information for potential data exfiltration, denial of service attacks, enumeration attacks, etc. Version 0.12.0 contains a patch for this vulnerability.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2022-31140 affects CuyZ Valinor, a PHP input-mapping library. Before version 0.12.0, it could expose internal exception messages to callers. Those messages may contain database details, credentials, SQL snippets, or resource failure details, creating confidentiality risk when exposed through application errors.

Executive priority

Treat this as a high-priority dependency update where Valinor is internet-facing or processes untrusted input. The main business risk is sensitive data disclosure, not system takeover, but leaked credentials or infrastructure details can enable follow-on compromise.

Technical view

Valinor versions before 0.12.0 could use Throwable#getMessage() in contexts where that message should not be exposed. The issue maps to CWE-209 and has CVSS 7.5 because remote unauthenticated attackers may obtain sensitive information if application error handling surfaces these messages.

Likely exposure

Exposure is limited to applications using CuyZ Valinor before 0.12.0, especially where mapping or validation errors are returned to users, APIs, logs accessible to users, or monitoring systems outside trusted operations teams.

Exploitation context

The provided sources do not show active exploitation, and the CVE is not listed as KEV. Practical impact depends on whether an application exposes Valinor error output and what sensitive data upstream exceptions include.

Researcher notes

Evidence supports affected versions before 0.12.0 and a vendor patch in 0.12.0. No source in the bundle confirms exploitation in the wild. Validation should focus on dependency inventory, application error handling, and whether sensitive Throwable messages can cross trust boundaries.

Mitigation direction

  • Upgrade CuyZ Valinor to version 0.12.0 or later.
  • Review vendor advisory and release notes before rollout.
  • Ensure application responses do not expose internal exception messages.
  • Restrict access to logs that may contain historical sensitive error output.
  • Rotate credentials if exposed error messages may have included secrets.

Validation and detection

  • Identify all applications depending on CuyZ Valinor.
  • Confirm affected deployments are not using versions before 0.12.0.
  • Review user-facing error responses from Valinor mapping failures.
  • Check logs and error aggregation for leaked SQL, hostnames, usernames, or passwords.
  • Verify tests cover redaction of internal exception details.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-209: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

Database behavior lookup

The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31140 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2022-31140Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
CuyZValinor< 0.12.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-209 · source CWE mapping

Generation of Error Message Containing Sensitive Information

Generation of Error Message Containing Sensitive Information represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.