Skip to content
Fencer Intel
high 8.8

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 Fencer

Vendor 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 products
    not 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

References

Sources

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.