CVE-2022-40320
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
CVE-2022-40320- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
CVE-2022-40320- Updated
- 2026-11-02
EUVDEUVD-2022-43611 No score
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
EUVD-2022-43611- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4f2q-2458-j6j8
8.8
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
GHSA-4f2q-2458-j6j8- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVAZL-10925
8.8
CVE-2022-40320 affecting package libconfuse for versions less than 3.3-2
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
AZL-10925- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-34910
8.8
CVE-2022-40320 affecting package libconfuse for versions less than 3.3-2
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
AZL-34910- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-05
Show 8 moreShow less
OSVDEBIAN-CVE-2022-40320
8.8
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
DEBIAN-CVE-2022-40320- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVOESA-2022-1928
8.8
libconfuse security update
libConfuse is a configuration file parser library, licensed under the terms of the ISC license, and written in C. It supports sections and (lists of) values (strings, integers, floats, booleans or other sections), as well as some other features (such as single/double-quoted strings, environment variable expansion, functions and nested include statements). It makes it very easy to add configuration file capability to a program using a simple API. The goal of libConfuse is not to be the configuration file parser library with a gazillion of features. Instead, it aims to be easy to use and quick to integrate with your code.
Security Fix(es):
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.(CVE-2022-40320)
- Record
OESA-2022-1928- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-40320
8.8
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
UBUNTU-CVE-2022-40320- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV No score
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read.
- Record
CVE-2022-40320- Updated
- 2026-11-02
OSVMGASA-2022-0387 No score
Updated libconfuse packages fix security vulnerability
cfg_tilde_expand in confuse.c in libConfuse 3.3 has a heap-based buffer over-read. (CVE-2022-40320)
- Record
MGASA-2022-0387- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12324-1 No score
libconfuse-devel-3.3-2.1 on GA media
These are all security issues fixed in the libconfuse-devel-3.3-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12324-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:3331-1 No score
Security update for libconfuse0
This update for libconfuse0 fixes the following issues:
- CVE-2022-40320: Fixed a heap-based buffer over-read in cfg_tilde_expand in confuse.c (bsc#1203326).
- Record
SUSE-SU-2022:3331-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:3807-1 No score
Security update for libconfuse0
This update for libconfuse0 fixes the following issues:
- CVE-2022-40320: Fixed a heap-based buffer over-read in cfg_tilde_expand in confuse.c (bsc#1203326).
- Record
SUSE-SU-2022:3807-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libconfuseAzure Linux:2 |
before 3.3-2 | 3.3-2 |
libconfuseAzure Linux:3 |
before 3.3-2 | 3.3-2 |
libconfuseDebian:12 |
before 3.3-3 | 3.3-3 |
libconfuseDebian:13 |
before 3.3-3 | 3.3-3 |
libconfuseDebian:14 |
before 3.3-3 | 3.3-3 |
libconfuseMageia:8 |
before 3.3-1.1.mga8 | 3.3-1.1.mga8 |
libconfuseopenEuler:20.03-LTS-SP1 |
before 3.3-2.oe1 | 3.3-2.oe1 |
libconfuseopenEuler:20.03-LTS-SP3 |
before 3.3-2.oe1 | 3.3-2.oe1 |
libconfuseopenEuler:22.03-LTS |
before 3.3-2.oe2203 | 3.3-2.oe2203 |
libconfuse0SUSE:Linux Enterprise Module for HPC 12 |
before 2.8-3.6.1 | 2.8-3.6.1 |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libconfuse0SUSE:Linux Enterprise Module for HPC 15 SP3 |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0SUSE:Linux Enterprise Module for Package Hub 15 SP3 |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0SUSE:Linux Enterprise Module for Package Hub 15 SP4 |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0SUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0SUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0openSUSE:Leap 15.3 |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuse0openSUSE:Leap 15.4 |
before 2.8-150000.3.3.1 | 2.8-150000.3.3.1 |
libconfuseUbuntu:22.04:LTS |
All versions, plus listed versions 3.3-2 |
None known |
libconfuseUbuntu:24.04:LTS |
All versions, plus listed versions 3.3-33.3-3build1 |
None known |
libconfuseUbuntu:25.10 |
All versions, plus listed versions 3.3-3build13.3-4 |
None known |
libconfuseUbuntu:26.10 |
All versions, plus listed versions 3.3-4build13.4-1 |
None known |
libconfuseUbuntu:26.04:LTS |
All versions, plus listed versions 3.3-43.3-4build1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-40320 is a high vulnerability (CVSS 8.8) in Libconfuse Project Libconfuse, published September 9, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.46%, the 73rd percentile. Fixed in libconfuse 3.3-2.
References
github.com/libconfuse/libconfuse/issues/163
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EDUT2V62V2XF2IT5TJFPB6P3EQ6X5VLL
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BSAZK4KAWRWNAFUBBXOYU3PVNH3X7226
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJKHAPJ6AUWVP4HDGKH4M5A2XXWQI73O
nvd.nist.gov/vuln/detail/CVE-2022-40320
lists.fedoraproject.org/archives/list/[email protected]/message/BSAZK4KAWRWNAFUBBXOYU3PVNH3X7226
Show 15 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/EDUT2V62V2XF2IT5TJFPB6P3EQ6X5VLL
lists.fedoraproject.org/archives/list/[email protected]/message/FJKHAPJ6AUWVP4HDGKH4M5A2XXWQI73O
github.com/advisories/GHSA-4f2q-2458-j6j8
github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40320.json
security-tracker.debian.org/tracker/CVE-2022-40320
advisories.mageia.org/MGASA-2022-0387.html
bugs.mageia.org/show_bug.cgi?id=30856
lists.fedoraproject.org/archives/list/[email protected]/thread/EDUT2V62V2XF2IT5TJFPB6P3EQ6X5VLL
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1928
suse.com/support/update/announcement/2022/suse-su-20223331-1
bugzilla.suse.com/1203326
suse.com/security/cve/CVE-2022-40320
suse.com/support/update/announcement/2022/suse-su-20223807-1
ubuntu.com/security/CVE-2022-40320
cve.org/CVERecord?id=CVE-2022-40320