CVE-2022-44940
Patchelf out-of-bounds read
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.1
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
CVE-2022-44940- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List
9.1
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
CVE-2022-44940- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2022-0404
9.1
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
EUVD-2022-0404- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-5pcj-3m26-w633
8.8
Patchelf out-of-bounds read
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
GHSA-5pcj-3m26-w633- CVSS 4.0
- 8.8 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
9.1
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
CVE-2022-44940- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-44940
9.1
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
DEBIAN-CVE-2022-44940- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-03
Show 7 moreShow less
OSVGHSA-5pcj-3m26-w633
8.8
Patchelf out-of-bounds read
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
GHSA-5pcj-3m26-w633- CVSS 4.0
- 8.8 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVOESA-2023-1001
9.1
patchelf security update
PatchELF is a simple utility for modifying an existing ELF executable or library. It can change the dynamic loader ("ELF interpreter") of an executable and change the RPATH of an executable or library.
Security Fix(es):
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.(CVE-2022-44940)
- Record
OESA-2023-1001- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVPYSEC-2022-43144
9.1
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
PYSEC-2022-43144- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVPYSEC-2022-43151
9.1
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
PYSEC-2022-43151- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-44940
9.1
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.
- Record
UBUNTU-CVE-2022-44940- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2023-0179 No score
Updated patchelf packages fix security vulnerability
Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc. (CVE-2022-44940)
- Record
MGASA-2023-0179- Updated
- 2026-11-02
OSVUSN-6036-1 No score
patchelf vulnerability
It was discovered that PatchELF was not properly performing bounds checks, which could lead to an out-of-bounds read via a specially crafted file. An attacker could possibly use this issue to cause a denial of service or to expose sensitive information. (CVE-2022-44940)
- Record
USN-6036-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
patchelfPyPI |
before 0.16.1.0 | 0.16.1.0 |
patchelfDebian:12 |
All versions, plus listed versions 0.14.3-10.18.0-10.18.0-1.10.18.0-1.20.18.0-1.30.18.0-1.4 |
None known |
patchelfDebian:13 |
All versions, plus listed versions 0.18.0-1.4 |
None known |
patchelfDebian:14 |
All versions, plus listed versions 0.18.0-1.4 |
None known |
patchelfPyPI |
before 0.16.1.0, plus listed versions 0.11.0.00.12.0.00.13.0.00.13.1.00.14.0.0 Show 7 moreShow less0.14.1.00.14.2.00.14.3.00.14.5.00.15.0.00.15.2.00.15.5.0 |
0.16.1.0 |
patchelfMageia:8 |
before 0.16.1-1.mga8 | 0.16.1-1.mga8 |
patchelfopenEuler:22.03-LTS |
before 0.16.0-1.oe2203sp1 | 0.16.0-1.oe2203sp1 |
patchelfopenEuler:22.03-LTS-SP1 |
before 0.16.0-1.oe2203sp1 | 0.16.0-1.oe2203sp1 |
patchelfPyPI |
before 0.16.1.0, plus listed versions 0.11.0.00.12.0.00.13.0.00.13.1.00.14.0.0 Show 5 moreShow less0.14.1.00.14.2.00.14.3.00.14.5.00.15.0.0 |
0.16.1.0 |
pypatchelfPyPI |
All versions, plus listed versions 0.80.9 |
None known |
Show 4 moreShow less
| Package | Affected | Fixed |
|---|---|---|
patchelfUbuntu:16.04:LTS |
All versions, plus listed versions 0.8-20.8-30.8-40.9-1~ubuntu16.04.10.9-1~ubuntu16.04.3 |
None known |
patchelfUbuntu:18.04:LTS |
All versions, plus listed versions 0.9-1 |
None known |
patchelfUbuntu:20.04:LTS |
All versions, plus listed versions 0.10-20.10-2build1 |
None known |
patchelfUbuntu:Pro:22.04:LTS |
before 0.14.3-1ubuntu0.1~esm1, plus listed versions 0.12-10.14.3-1 |
0.14.3-1ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-44940 is a critical vulnerability (CVSS 9.1) in Patchelf Project Patchelf, published December 19, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.09%, the 65th percentile. Fixed in patchelf 0.16.1.0.
References
github.com/NixOS/patchelf/pull/419
nvd.nist.gov/vuln/detail/CVE-2022-44940
github.com/pypa/advisory-database/tree/main/vulns/patchelf/PYSEC-2022-43144.yaml
github.com/pypa/advisory-database/tree/main/vulns/pypatchelf/PYSEC-2022-43151.yaml
github.com/advisories/GHSA-5pcj-3m26-w633
github.com/CVEProject/cvelistV5/tree/main/cves/2022/44xxx/CVE-2022-44940.json
Show 7 moreShow less
security-tracker.debian.org/tracker/CVE-2022-44940
advisories.mageia.org/MGASA-2023-0179.html
bugs.mageia.org/show_bug.cgi?id=31880
ubuntu.com/security/notices/USN-6036-1
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1001
ubuntu.com/security/CVE-2022-44940
cve.org/CVERecord?id=CVE-2022-44940