Skip to content
Noroxi
CVE-2022-48554· NVD / CVE Program· CNA mitre

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

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.

MediumCVSS 5.5 · v3.1—No exploit Fix available
Published
Aug 22, 2023
Updated
Jun 17, 2026
EPSS
0.7% · 50th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

22

Monitor

Low priority for now.

CVSS
22 / 40 · 5.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.7%

Affected systems

VendorProduct
file projectfile
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux11.0
  • file project file5.41

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:9filebefore 5.39-16.el95.39-16.el9
AlmaLinux:9file-develbefore 5.39-16.el95.39-16.el9
AlmaLinux:9file-libsbefore 5.39-16.el95.39-16.el9
AlmaLinux:9python3-file-magicbefore 5.39-16.el95.39-16.el9
Debian:11filebefore 1:5.39-3+deb11u11:5.39-3+deb11u1
Debian:12filebefore 1:5.44-11:5.44-1
Red Hat:enterprise_linux:9::appstreampython3-file-magicbefore 0:5.39-16.el90:5.39-16.el9
Red Hat:enterprise_linux:9::baseosfilebefore 0:5.39-16.el90:5.39-16.el9
Red Hat:enterprise_linux:9::baseosfile-debuginfobefore 0:5.39-16.el90:5.39-16.el9
Red Hat:enterprise_linux:9::baseosfile-debugsourcebefore 0:5.39-16.el90:5.39-16.el9
Red Hat:enterprise_linux:9::baseosfile-libsbefore 0:5.39-16.el90:5.39-16.el9
Red Hat:enterprise_linux:9::baseosfile-libs-debuginfobefore 0:5.39-16.el90:5.39-16.el9
Red Hat:enterprise_linux:9::crbfile-develbefore 0:5.39-16.el90:5.39-16.el9
Rocky Linux:9filebefore 0:5.39-16.el90:5.39-16.el9

Other highest-scoring records for the same primary product.

  • CVE-2019-8907do_core_note in readelf.c in libmagic.a in file 5.35 allows remote attackers to cause a denial of service (stack corruption and application
    36Monitor
  • CVE-2019-8904do_bid_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_printf and file_vprintf.
    36Monitor
  • CVE-2019-18218cdf_read_property_info in cdf.c in file through 5.37 does not restrict the number of CDF_VECTOR elements, which allows a heap-based buffer o
    32Monitor
  • CVE-2018-10360The do_core_note function in readelf.c in libmagic.a in file 5.33 allows remote attackers to cause a denial of service (out-of-bounds read a
    27Monitor
  • CVE-2017-1000249An issue in file() was introduced in commit 9611f31313a93aa036389c5f3b15eea53510d4d1 (Oct 2016) lets an attacker overwrite a fixed 20 bytes
    22Monitor
  • CVE-2014-8117softmagic.c in file before 5.21 does not properly limit recursion, which allows remote attackers to cause a denial of service (CPU consumpti
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:file5.39-16.el9 · AlmaLinux:9Package registry (OSV)
almalinux:file-devel5.39-16.el9 · AlmaLinux:9Package registry (OSV)
almalinux:file-libs5.39-16.el9 · AlmaLinux:9Package registry (OSV)
almalinux:python3-file-magic5.39-16.el9 · AlmaLinux:9Package registry (OSV)
debian:file1:5.44-1 · Debian:12Package registry (OSV)
red hat:file0:5.39-16.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:file-debuginfo0:5.39-16.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:file-debugsource0:5.39-16.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:file-devel0:5.39-16.el9 · Red Hat:enterprise_linux:9::crbPackage registry (OSV)
red hat:file-libs0:5.39-16.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:file-libs-debuginfo0:5.39-16.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:python3-file-magic0:5.39-16.el9 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
rocky linux:file0:5.39-16.el9 · Rocky Linux:9Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

Weakness class (CWE)

CWE-125 · Out-of-bounds Read

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

ATT&CK techniques

—

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records