# CVE-2020-29362: Memory corruption in n/a

> A heap-based buffer over-read in p11-kit allows attackers to read up to 4 bytes of memory past the allocation via RPC calls.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 16 Dec 2020
- **Updated:** 14 Oct 2026
- **Also known as:** ALPINE-CVE-2020-29362, DEBIAN-CVE-2020-29362, GHSA-5wpq-43j2-6qwc, SUSE-SU-2022:2405-1, SUSE-SU-2022:2405-2, SUSE-SU-2022:2871-1, UBUNTU-CVE-2020-29362

## What is CVE-2020-29362?

CVE-2020-29362 is a medium-severity memory corruption vulnerability in n/a, published on 16 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An issue was discovered in p11-kit 0.21.1 through 0.23.21. A heap-based buffer over-read has been discovered in the RPC protocol used by thep11-kit server/remote commands and the client library. When the remote entity supplies a byte array through a serialized PKCS#11 function call, the receiving entity may allow the reading of up to 4 bytes of memory past the heap allocation.

Weakness: CWE-125 (Out-of-bounds Read)

## Which versions are affected by CVE-2020-29362?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `p11-kit` | SUSE:Linux Enterprise Micro 5.1 | All versions | 0.23.2-150000.4.16.1 |
| `p11-kit` | SUSE:Linux Enterprise Micro 5.2 | All versions | 0.23.2-150000.4.16.1 |
| `p11-kit` | SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 0.23.2-150000.4.16.1 |
| `p11-kit` | SUSE:Linux Enterprise Module for Package Hub 15 SP3 | All versions | 0.23.2-150000.4.16.1 |
| `p11-kit` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 0.23.2-8.10.1 |
| `p11-kit` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 0.23.2-8.10.1 |
| `p11-kit` | SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 0.23.2-8.10.1 |
| `p11-kit` | openSUSE:Leap 15.3 | All versions | 0.23.2-150000.4.16.1 |
| `p11-kit` | openSUSE:Leap Micro 5.2 | All versions | 0.23.2-150000.4.16.1 |

Products: P11-Kit Project P11-Kit.

## How do I fix CVE-2020-29362?

Upgrade to a fixed version.

## Is CVE-2020-29362 being exploited?

There is no known exploitation of CVE-2020-29362 in the wild and no public exploit code.

## Other vulnerabilities in n/a

- [CVE-2026-13757](https://insights.sbomify.com/CVE-2026-13757/): P11-kit: stack exhaustion via unbounded recursion in rpc attribute parsing (medium 6.2)
- [CVE-2026-2100](https://insights.sbomify.com/CVE-2026-2100/): P11-kit: null dereference via c_derivekey with specific null parameters (medium 5.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-29362 and fix it if it is affected.

What it is: CVE-2020-29362 is a medium-severity memory corruption vulnerability in n/a, published on 16 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2020-29362 in the wild and no public exploit code.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2020-29362/ (Markdown: https://insights.sbomify.com/CVE-2020-29362/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2020-29362
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2020-29362
- OSV: https://osv.dev/vulnerability/CVE-2020-29362

---
From sbomify Insights: https://insights.sbomify.com/CVE-2020-29362/
Summaries are generated and may contain mistakes; the official description above is the record.
