# CVE-2025-11187: Improper validation of PBMAC1 parameters in PKCS\#12 MAC verification

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-787, CWE-476
- **Published:** 2026-01-27T15:59:41.681Z
- **Modified:** 2026-06-17T08:29:49.083Z

## Who should check

- Anyone running OpenSSL \>= 3.6.0, \< 3.6.1; \>= 3.5.0, \< 3.5.5; \>= 3.4.0, \< 3.4.4

## Description

Issue summary: PBMAC1 parameters in PKCS\#12 files are missing validation
which can trigger a stack-based buffer overflow, invalid pointer or NULL
pointer dereference during MAC verification.

Impact summary: The stack buffer overflow or NULL pointer dereference may
cause a crash leading to Denial of Service for an application that parses
untrusted PKCS\#12 files. The buffer overflow may also potentially enable
code execution depending on platform mitigations.

When verifying a PKCS\#12 file that uses PBMAC1 for the MAC, the PBKDF2
salt and keylength parameters from the file are used without validation.
If the value of keylength exceeds the size of the fixed stack buffer used
for the derived key (64 bytes), the key derivation will overflow the buffer.
The overflow length is attacker-controlled. Also, if the salt parameter is
not an OCTET STRING type this can lead to invalid or NULL pointer
dereference.

Exploiting this issue requires a user or application to process
a maliciously crafted PKCS\#12 file. It is uncommon to accept untrusted
PKCS\#12 files in applications as they are usually used to store private
keys which are trusted by definition. For this reason the issue was assessed
as Moderate severity.

The FIPS modules in 3.6, 3.5 and 3.4 are not affected by this issue, as
PKCS\#12 processing is outside the OpenSSL FIPS module boundary.

OpenSSL 3.6, 3.5 and 3.4 are vulnerable to this issue.

OpenSSL 3.3, 3.0, 1.1.1 and 1.0.2 are not affected by this issue as they do
not support PBMAC1 in PKCS\#12.

## Affected and fixed versions

- OpenSSL: \>= 3.6.0, \< 3.6.1; \>= 3.5.0, \< 3.5.5; \>= 3.4.0, \< 3.4.4 (cvelist)

## Mitigation

- Upgrade OpenSSL to 3.4.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-11187. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-11187.md
Affected: OpenSSL >= 3.6.0, < 3.6.1; >= 3.5.0, < 3.5.5; >= 3.4.0, < 3.4.4
Fixed in: OpenSSL 3.6.1, OpenSSL 3.5.5, OpenSSL 3.4.4

Steps:
1. Search this machine and project for OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-11187 being exploited?

There is no confirmed exploitation: CVE-2025-11187 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-11187?

Medium: CVSS 6.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-11187?

OpenSSL \>= 3.6.0, \< 3.6.1; \>= 3.5.0, \< 3.5.5; \>= 3.4.0, \< 3.4.4.

### Is there a fix for CVE-2025-11187?

Yes. Fixed in OpenSSL 3.6.1, OpenSSL 3.5.5, OpenSSL 3.4.4. Upgrade OpenSSL to 3.4.4 or later.

### How do I check if I'm affected by CVE-2025-11187?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://openssl-library.org/news/secadv/20260127.txt>
- patch: <https://github.com/openssl/openssl/commit/8caf359d6e46fb413e8f5f0df765d2e8a51df4e8>
- patch: <https://github.com/openssl/openssl/commit/e1079bc17ed93ff16f6b86f33a2fe3336e78817e>
- patch: <https://github.com/openssl/openssl/commit/205e3a55e16e4bd08c12fdbd3416ab829c0f6206>
- exploit: <https://github.com/metadust/CVE-2025-11187>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-11187>

HTML: <https://flawdb.com/CVE-2025-11187> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-11187>
