CVE catalog

CVE-2018-5382

bouncycastle: CVE-2018-5382

[CVE catalog]

Severity
Medium · CVSS 5.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.26% · Oct 27, 2026

The default BKS keystore use an HMAC that is only 16 bits long, which can allow an attacker to compromise the integrity of a BKS keystore. Bouncy Castle release 1.47 changes the BKS format to a format which uses a 160 bit HMAC instead. This applies to any BKS keystore generated prior to BC 1.47. For situations where people need to create the files for legacy reasons a specific keystore type "BKS-V1" was introduced in 1.49. It should be noted that the use of "BKS-V1" is discouraged by the library authors and should only be used where it is otherwise safe to do so, as in where the use of a 16 bit checksum for the file integrity check is not going to cause a security issue in itself.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianbouncycastlesid1.86.2-1fixed
Debianbouncycastleforky1.86-1fixed
Debianbouncycastletrixie1.80-3fixed
Debianbouncycastlebookworm1.72-2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianbouncycastlesourcesid1.48+dfsg-2not yet assignedNot reportedNot reported
Debianbouncycastlesourceforky1.48+dfsg-2not yet assignedNot reportedNot reported
Debianbouncycastlesourcetrixie1.48+dfsg-2not yet assignedNot reportedNot reported
Debianbouncycastlesourcebookworm1.48+dfsg-2not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

  • Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

  • Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

  • Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

  • Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

  • Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

  • Source package: [bouncycastle]

    Details (2)
    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

    • 1.72-2 · all · bookworm

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12

[Debian 13 (Trixie)]

  • Source package: [bouncycastle]

    Details (2)
    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

  • Source package: [bouncycastle]

    Details (2)
    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

  • Source package: [bouncycastle]

    Details (2)
    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

  • Source package: [bouncycastle]

    Details (2)
    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

  • Source package: [bouncycastle]

    Details (2)
    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

  • Source package: [bouncycastle]

    Details (2)
    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

  • Source package: [bouncycastle]

    Details (2)
    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

    • 1.80-3 · all · trixie

      Fixed · Fixed: 1.48+dfsg-2

      dsa · bouncycastle · debian · 13

Observed:

References