Skip to main content
Public proof of conceptFix available

CVE-2022-31140

A public proof of concept exists; no exploitation attested.

  • Published2022-07-11
  • Fixed in0.12.0
  • WeaknessCWE-209

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-07-1120:15CVE publishedNVD

Versions per branch

NVD · OSV
Cuyz valinor
BranchAffectedFixed in
0.12< 0.12.00.12.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • CuyZ Valinor
    Affected
    • = < 0.12.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-07-11

Fix

  1. Update Cuyz valinor to 0.12.0

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-22
  • CNACVSS 3.17.5known since 2026-10-23
  • NVDCVSS 3.19.1read 2026-10-23
  • NVDCVSS 2.06.4read 2026-10-23
  • CNAweakness (CWE)CWE-209known since 2026-10-23
  • FIRST EPSSEPSS score1.5 %2026-11-13
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2022-07-12

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Published
2022-07-11
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-5pgm-3j3g-2rc7

Frequently asked questions

What is CVE-2022-31140?

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.

Is CVE-2022-31140 actively exploited?

A proof-of-concept exploit exists for CVE-2022-31140, but active exploitation has not been confirmed at this time.

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

CVE-2022-31140 has a CVSS v3 base score of 9.1 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.

Running cuyz/valinor? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record