CVE-2022-40320 json
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
published 4y ago modified 4mo ago also EUVD-2022-43611
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
Patch / fix
- libconfuse Debian 14, Debian 13, Debian 12 3.3-3
debian advisories DEBIAN-CVE-2022-40320
- libconfuse0 SLE Module for Package Hub 15 SP4, SLE Module for Package Hub 15 SP3, SLE Module for HPC 15 SP3 +8 more 2.8-150000.3.3.1
- libconfuse0 SLE Module for HPC 12 2.8-3.6.1
suse advisories SUSE-SU-2022:3807-1SUSE-SU-2022:3331-1
- libconfuse CBL-Mariner 2.0, Azure Linux 3.0 3.3-2
azure linux advisories AZL-10925AZL-34910
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Is CVE-2022-40320 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-40320 updated cvss 9.1
libconfuse: heap-based buffer over-read
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.46% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/libconfuse/libconfuse/issues/163 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/libconfuse/libconfuse/issues/163
exploit, issue-tracking, patch, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/EDUT2V62V2XF2IT5TJFPB6P3EQ6X5VLL/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/BSAZK4KAWRWNAFUBBXOYU3PVNH3X7226/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FJKHAPJ6AUWVP4HDGKH4M5A2XXWQI73O/
vendor-advisory
Sources
- CVE List CVE-2022-40320
- NVD CVE-2022-40320
Fencer Intel 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.