CVE-2022-31140 json
Valinor error messages leading to potential data exfiltration
published 2022-07-11 4 y ago modified 2026-06-17 4 mo ago also GHSA-5pgm-3j3g-2rc7 , EUVD-2022-6251
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist cuyz/valinor 0.12.0
- cuyz valinor 0.12.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.49% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/CuyZ/Valinor/security/advisories/GHSA-5pgm-3j3g-2rc7 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | cuyz/valinor | <0.12.0 |
0.12.0 |
Affected products
- CuyZ Valinor
Classification
References
-
github.com
/CuyZ/Valinor/security/advisories/GHSA-5pgm-3j3g-2rc7
web, exploit, third-party-advisory
-
github.com
/CuyZ/Valinor/releases/tag/0.12.0
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31140
advisory
-
github.com
/CuyZ/Valinor
package
Sources
- CVE List CVE-2022-31140
- GitHub Advisory GHSA-5pgm-3j3g-2rc7
- NVD CVE-2022-31140
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.