Skip to content
Fencer Vulns
medium 5.5

CVE-2022-48554 json

File before 5.43 has an stack-based buffer over-read in file_copystr in funcs.c.

published 2023-08-22 3 y ago modified 2026-06-17 4 mo ago also EUVD-2022-51250

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 52%
public exploits
0
none known

Summary

File before 5.43 has an stack-based buffer over-read in file_copystr in funcs.c. NOTE: "File" is the name of an Open Source project.

Patch / fix

  • file Debian 14, Debian 13, Debian 12 1:5.44-1

debian advisories DEBIAN-CVE-2022-48554

  • file Ubuntu 22.04 LTS 1:5.41-3ubuntu0.1

ubuntu advisories UBUNTU-CVE-2022-48554

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • file RHEL 9 5.39-16.el9
  • file-libs RHEL 9 5.39-16.el9
  • python3-file-magic RHEL 9 5.39-16.el9

red hat advisories RHSA-2024:2512

  • file AlmaLinux 9 5.39-16.el9
  • file-libs AlmaLinux 9 5.39-16.el9
  • python3-file-magic AlmaLinux 9 5.39-16.el9

almalinux advisories ALSA-2024:2512

  • file Rocky Linux 9 5.39-16.el9

rocky linux advisories RLSA-2024:2512

  • file CBL-Mariner 2.0 5.40-3

azure linux advisories AZL-28055

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

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-48554 updated cvss 5.5

file: stack-based buffer over-read in file_copystr in funcs.c

  • Red Hat Enterprise Linux 6 file, file-libs, python-magic Red Hat Enterprise Linux 7 file, file-libs, python-magic
    affected: workaround, no fix planned “Do not process untrusted files with the file program.”
  • Red Hat Enterprise Linux AppStream (v. 9) python3-file-magic 5.39-16.el9 Red Hat Enterprise Linux BaseOS (v. 9) file 5.39-16.el9, file-libs 5.39-16.el9 Red Hat Enterprise Linux CRB (v. 9) file-devel 5.39-16.el9, file-debuginfo 5.39-16.el9, file-debugsource 5.39-16.el9, file-libs-debuginfo 5.39-16.el9
    fixed: vendor fix “Do not process untrusted files with the file program.” RHSA-2024:2512
  • Red Hat Enterprise Linux 8 file, file-libs, python3-magic
    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

0.68% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • bugs.astron.com https://bugs.astron.com/view.php?id=310 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Classification

Weakness

References

Sources

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.